Bitcoin Forum
September 18, 2020, 02:34:31 PM *
News: Latest Bitcoin Core release: 0.20.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 »  All
  Print  
Author Topic: [Updated September 12 LoyceV's Trust list viewer - Create your own Trust list!  (Read 13087 times)
LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
June 20, 2020, 06:29:22 AM
 #321

Update:

Weekly starting point to avoid loading the large index page (use Firefox!):
Trust list for: suchmoon (Trust: +15 / =0 / -0) (DT1! (33) 4214 Merit earned) (Trust list) (BPIP)
For easy navigation, you can also use BPIP (I expect it to update it's link to my Trust list viewer soon).

As always, the top-navigation-bar takes a few hours to update on all 900,000 pages.

1600439671
Hero Member
*
Offline Offline

Posts: 1600439671

View Profile Personal Message (Offline)

Ignore
1600439671
Reply with quote  #2

1600439671
Report to moderator
LEADING CRYPTO SPORTSBOOK & CASINO F U N . F A S T . F A I R . PROUD
PARTNER
OF
CRYPTO
EXCLUSIVE
CLUBHOUSE
FAST &
SECURE PAYMENTS
20+ DAILY
PRICE
BOOSTS
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1600439671
Hero Member
*
Offline Offline

Posts: 1600439671

View Profile Personal Message (Offline)

Ignore
1600439671
Reply with quote  #2

1600439671
Report to moderator
1600439671
Hero Member
*
Offline Offline

Posts: 1600439671

View Profile Personal Message (Offline)

Ignore
1600439671
Reply with quote  #2

1600439671
Report to moderator
LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
June 27, 2020, 06:53:45 AM
 #322

Update:
Starting point of the week to avoid loading the large index page: Trust list for: TECSHARE (Trust: +37 / =6 / -2) (913 Merit earned) (Trust list) (BPIP).
The top-navigation-bar will take several hours to update. BPIP has updated it's link to my Trust list viewer already.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 04, 2020, 07:50:29 AM
Last edit: July 04, 2020, 04:54:54 PM by LoyceV
 #323

Update:
Historic overview (the last entry is most recent)
77. http://loyce.club/trust/2020-07-04_Sat_05.03h

Weekly starter to avoid loading the long index file: Trust list for: The Pharmacist (Trust: +27 / =2 / -0) (2532 Merit earned) (Trust list) (BPIP)
BPIP has updated it's links already, and the top-navigation-bar is updated for the last few weeks already too. In the coming hours it will work it's way back through the earlier weeks.
Update: due to a blown fuse, updating the top-navigation-bar failed for "week 7". Since you can reach week 77 from any other week, I won't fix it until next week's update.

Timelord2o67
Member
**
Offline Offline

Activity: 265
Merit: 18

Ditty! £ $ ₹ € ¥ ¢ ≠ ÷ ™


View Profile
July 04, 2020, 01:54:45 PM
 #324

Just a thought bubble question...

Would it be possible to have a Firefox add-on button similar to the BPIP one on a user's profile page that takes you to the corresponding trust page for that week?

TryNinja
Legendary
*
Offline Offline

Activity: 1498
Merit: 2704


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
July 04, 2020, 02:10:05 PM
 #325

Can you implement HTTPS in your website? It can be done for free and quickly with https://letsencrypt.org

That would make it possible to do things like what Timelord2o67 said above (getting the latest list from /trust/latestversion.txt). Right now, you can't make unsecure non-https requests to the browser from an https website (like Bitcointalk).

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 04, 2020, 04:57:13 PM
Last edit: July 05, 2020, 09:19:36 AM by LoyceV
 #326

Would it be possible to have a Firefox add-on button similar to the BPIP one on a user's profile page that takes you to the corresponding trust page for that week?
It would be great if the BPIP extension can include this. I suggest you suggest it in that topic Smiley

Can you implement HTTPS in your website?
I've had the suggestion before, but never got the time (or motivation) to implement it. I was hoping to have some time today, but things turned out differently.
Update: Done! I have installed certbot.

Loyce.club now redirects to https://loyce.club/ !

TryNinja
Legendary
*
Offline Offline

Activity: 1498
Merit: 2704


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
July 08, 2020, 02:46:10 PM
Last edit: July 08, 2020, 05:41:09 PM by TryNinja
Merited by LoyceV (8)
 #327

Update: Done! I have installed certbot.
Thank you. But now I have another request. Cheesy

I still can't make requests to your website from a browser because of CORS.

Code:
Access to fetch at 'https://loyce.club/trust/latestversion.txt' from origin 'https://bitcointalk.org' has been blocked by
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your
needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

It's also a simple fix, but I'm not sure what do you use for your website. Other than that, I have already created a script (with a lot of copy pasting from BPIP's extension) that adds a button to your Trust List on everyone's profile/posts.

edit:

For now, I made so the requests go through my proxy server, which makes the request to your page, bypassing CORS. It also needs a cool icon. Right now, I'm using one I downloaded from google after searching for "trust favicon". Big credits to BPIP's extension and their coders, since I just took a big chunk of code from their extension.

The "latestversion" link is cached for 1 hour to avoid making a new request for every page refresh.

Code:
// ==UserScript==
// @name         Loyce Trust List Viewer Button
// @version      0.1
// @description  adds a button under each user's profile with the latest link to Loyce's Trust Viewer list.
// @author       TryNinja
// @match        https://bitcointalk.org/index.php?topic=*
// @match        https://bitcointalk.org/index.php?action=profile;u=*
// @grant        none
// @credits      A big part of the code was taken (copy-pasted and modified) from BPIP's extension. https://bitcointalk.org/index.php?topic=5224821.0
// ==/UserScript==

(function() {
    const MAX_VALID_USER_ID = 1500000000;
    const PROFILE_URL_PREFIX = "https://bitcointalk.org/index.php?action=profile;u=";
    const LOYCE_TRUST_LAST_VERSION_URL = "https://loyce.club/trust/latestversion.txt";

    let LOYCE_TRUST_URL;
    let LOYCE_TRUST_URL_PROFILE;
    let LOYCE_TRUST_PROFILE_BUTTON_HTML;

    function injectLoyceTrustButtons() {
        LOYCE_TRUST_URL_PROFILE = LOYCE_TRUST_URL + "%%USERID%%.html";
        LOYCE_TRUST_PROFILE_BUTTON_HTML = '<a href="' + LOYCE_TRUST_URL_PROFILE + '" target="_blank"><img src="https://i.imgur.com/2Gfqvto.png" style="width: 16px; height: 16px;" title="Loyce\'s Trust Viewer" /></a>';

        if (window.location.href.startsWith(PROFILE_URL_PREFIX)) {
            const user_id = window.location.href.replace(PROFILE_URL_PREFIX, "");
            const user_name_cell = document.querySelector("tr.titlebg ~ tr td.windowbg table tr").lastElementChild;
            LOYCE_TRUST_PROFILE_BUTTON_HTML = LOYCE_TRUST_PROFILE_BUTTON_HTML.replace("%%USERID%%", user_id);
            setTimeout(() => {
                user_name_cell.innerHTML = user_name_cell.innerHTML + " " + LOYCE_TRUST_PROFILE_BUTTON_HTML;
            }, 50)
        } else {
            document.querySelectorAll("img[title='View Profile']")
                .forEach(img => {
                    let profile_box = img.parentElement.parentElement.parentElement;
                    let user_name_link = profile_box.querySelector("b > a");
                    let profile_link = profile_box.querySelector("div.smalltext a[href*='action=profile']");
                    if (user_name_link && profile_link) {
                        let user_id = user_name_link.getAttribute("href")
                            .replace(PROFILE_URL_PREFIX, "");
                        if (user_id > MAX_VALID_USER_ID) {
                            return;
                        }
                        const loyceTrustProfileFullURL = LOYCE_TRUST_URL_PROFILE.replace("%%USERID%%", user_id);

                        const loyceTrustButtonElement = document.createElement("a");
                        loyceTrustButtonElement.setAttribute('href', loyceTrustProfileFullURL);
                        loyceTrustButtonElement.setAttribute('target', '_blank');

                        const loyceTrustButtonImageElement = document.createElement("img");
                        loyceTrustButtonImageElement.setAttribute('src', 'https://i.imgur.com/2Gfqvto.png');
                        loyceTrustButtonImageElement.setAttribute('style', 'width: 16px; height: 16px;');
                        loyceTrustButtonImageElement.setAttribute('title', 'Loyce\'s Trust Viewer');

                        loyceTrustButtonElement.appendChild(loyceTrustButtonImageElement);
                        profile_link.before(loyceTrustButtonElement);
                    }
                });
        }
    }

    function getLatestLoyceTrustURL() {
        let cached = JSON.parse(localStorage.getItem('@btt-ninja-cache/loyce-trust-link'));

        if (!cached) {
            fetch(LOYCE_TRUST_LAST_VERSION_URL)
                .then((response) => response.text())
                .then(data => {
                    LOYCE_TRUST_URL = data;
                    cached = {
                        last_url: data,
                        time: Date.now()
                    };
                    localStorage.setItem('@btt-ninja-cache/loyce-trust-link', JSON.stringify(cached));
                    injectLoyceTrustButtons();
                });
        } else {
            LOYCE_TRUST_URL = cached.last_url;
            const oneHourAgo = Date.now() - 1000 * 60 * 60;

            if (cached.time < oneHourAgo) {
                localStorage.setItem('@btt-ninja-cache/loyce-trust-link', null);
            }

            injectLoyceTrustButtons();
        }
    }

    getLatestLoyceTrustURL();
})();

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 08, 2020, 04:05:52 PM
 #328

I still can't make requests to your website from a browser because of CORS.

Code:
Access to fetch at 'https://loyce.club/trust/latestversion.txt' from origin 'https://bitcointalk.org' has been blocked by
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have no idea what any of this means

Quote
It's also a simple fix, but I'm not sure what do you use for your website.
I'm using standard Apache2. It's a text-file, I don't need headers Smiley

Quote
Other than that, I have already created a script (with a lot of copy pasting from BPIP's extension) that adds a button to your Trust List on everyone's profile/posts.
I don't think I'll ever install a browser extension, but this is cool Smiley
Since more than 99% of the users don't have a custom Trust list (and aren't mentioned on someone else's list): can you exclude those? Each week (starting Feb 8 this year) I've added a list of all profiles in it's subdirectory. Example: user_ids.txt. Further reading: this started around here.
The latest version doesn't include users who used to be on a custom Trust list but aren't no longer on it.

suchmoon
Legendary
*
Offline Offline

Activity: 2436
Merit: 5580


https://bpip.org


View Profile WWW
July 08, 2020, 04:27:32 PM
Merited by LoyceV (4)
 #329

I'm using standard Apache2. It's a text-file, I don't need headers Smiley

Try something like this:

Code:
<Files "latestversion.txt">
  Header set Access-Control-Allow-Origin "https://bitcointalk.org"
</Files>

In apache configuration.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 08, 2020, 04:54:02 PM
 #330

Code:
<Files "latestversion.txt">
  Header set Access-Control-Allow-Origin "https://bitcointalk.org"
</Files>
I've added only the second line to .htaccess (as described here). @TryNinja: does it work now?

TryNinja
Legendary
*
Offline Offline

Activity: 1498
Merit: 2704


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
July 08, 2020, 05:04:58 PM
 #331

@TryNinja: does it work now?
No. I still get the same error.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 08, 2020, 05:10:38 PM
 #332

No. I still get the same error.
Try again: I've added suchmoon's exact code to apache2.conf.

I can also add just add this instead:
Code:
  Header set Access-Control-Allow-Origin "*"

TryNinja
Legendary
*
Offline Offline

Activity: 1498
Merit: 2704


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
July 08, 2020, 05:17:51 PM
 #333

Try again: I've added suchmoon's exact code to apache2.conf.
Nope. Tongue

Edit: It worked now. Maybe it was a cache issue? I will update the script with your website url.

suchmoon
Legendary
*
Offline Offline

Activity: 2436
Merit: 5580


https://bpip.org


View Profile WWW
July 08, 2020, 05:27:41 PM
 #334

Try again: I've added suchmoon's exact code to apache2.conf.
Nope. Tongue

I just tried and it does return the correct header:

Loading...

Edit to your edit:

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 11, 2020, 08:12:47 AM
 #335

Update:
Historic overview (the last entry is most recent)
78. https://loyce.club/trust/2020-07-11_Sat_05.05h
Profile of the week to avoid loading the large (use Firefox!) index file: Trust list for: DarkStar_ (Trust: +52 / =1 / -0) (1375 Merit earned) (Trust list) (BPIP)
BPIP is updated already, and the top-navigation-bar works for the most recent couple of weeks. Navigation for older weeks still take a few hours to update.

Thanks to more data being available, I've been able to mark much more banned users this week:
I added OmegaStarScream's list to my list of banned users. Most of them have probably been banned for years already, I just didn't know about them until last week.

Quote
Last week, 1019 users on my Trust list viewer were marked as banned. This week, it's 2122 users.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 18, 2020, 12:31:52 PM
 #336

Update:
The update has been online for hours already, but I didn't have time to post yet.
Starting point of the week to avoid loading the big index page: Trust list for: Hhampuz (Trust: +84 / =3 / -0) (2042 Merit earned) (Trust list) (BPIP)

The top-navigation-bar is updated on half of the latest weeks (the rest follows the coming hours), and BPIP has been updated already too.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 25, 2020, 08:09:20 AM
 #337

Update:
Starting point of the week to avoid loading the large index file: Trust list for: funchiestz (Trust: #  +0 / =0 / -8) (92 Merit earned) (Trust list) (BPIP)
BPIP's link isn't updated yet, and my top-navigation-bar takes a few hours (I messed up this morning).

Timelord2067
Legendary
*
Offline Offline

Activity: 2338
Merit: 1490


Witty! £ $ ₹ € ¥ ¢ ≠ ÷ ™


View Profile WWW
July 31, 2020, 01:12:19 AM
 #338

I can't recall which thread covers this, but does this link https://loyce.club/trust/selfscratchers/131361.html update, or was it a one off?  I'd actually forgotten I had it bookmarked and just came across it again.  The Trust list link is for week 18, so I'd say it hasn't been viewed for over a year.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
July 31, 2020, 07:36:12 AM
 #339

I can't recall which thread covers this, but does this link https://loyce.club/trust/selfscratchers/131361.html update, or was it a one off?
You're looking for Trust Selfscratchers: who scratched his own back the most?. I locked it because I didn't want to implement the Trust-changes.

LoyceV
Legendary
*
Online Online

Activity: 1974
Merit: 6952


Thick-Skinned Gang Leader


View Profile WWW
August 01, 2020, 06:58:58 AM
 #340

Update:
Starting point of the week to avoid loading the large index page: Trust list for: DarkStar_ (Trust: +53 / =1 / -0) (1395 Merit earned) (Trust list) (BPIP)

BPIP hasn't updated it's links yet (the scheduler should work again).

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!