Pages:
Author

Topic: [130 weeks] [Updated Jul 10] LoyceV's Trust list viewer - Create your own! - page 19. (Read 24076 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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.
legendary
Activity: 2758
Merit: 6830
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 = '';

        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();
})();
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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/ !
legendary
Activity: 2758
Merit: 6830
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).
member
Activity: 388
Merit: 40
Ditty! £ $ ₹ € ¥ ¢ ≠ ÷ ™
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?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Update:
As always, the top-navigation-bar will be updated the coming hours.

To avoid loading the large index file (use Firefox for it!), here's the Trust list of the week: Trust list for: gmaxwell.
BPIP hasn't updated it's link to my Trust list viewer yet. I expect it soon.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
It seems peloso's been busy. Does he really expect that trusting people who distrust him is going make them stop distrusting him, or does he have some even more convoluted motive? Huh
I was just wondering the same thing in another topic.
legendary
Activity: 4551
Merit: 3445
Vile Vixen and Miss Bitcointalk 2021-2023
It seems peloso's been busy. Does he really expect that trusting people who distrust him is going make them stop distrusting him, or does he have some even more convoluted motive? Huh
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Update:
Historic overview (the last entry is most recent)
73. http://loyce.club/trust/2020-06-06_Sat_05.05h
To avoid loading this large page, you can use either BPIP or my Trust list as a starting point.

The top-navigation-bar will be updated in the coming hours.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Full disclosure: I found an inaccuracy in my own profile:
Quote
Trust list for: LoyceV (Trust: +20 / =2 / -0) (DT1! (48) 3365 Merit earned) (Trust list) (BPIP) (created 2019-08-10_Sat_06.04h)
Back to index
I have only one neutral feedback rating from a DT-member, but since I left myself neutral feedback from "LoyceBot" (which I use for scraping), loyce.club shows 2 of them.
It took me long enough to think about this, but the fix is very easy: I just added ";dt" to each profile URL Smiley
Starting next Saturday, "LoyceV" should show with the correct amount of neutral feedback in my Trust list viewer.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Update:
Today's delay is caused by a username change that messed things up.

Shortcut to avoid loading the large index page: LoyceV's Trust list. Or use BPIP.



I noticed something slightly off:
Quote
Trust list for: LoyceV (Trust: +29 / =2 / -0) (DT1! (57) 5343 Merit earned) (Trust list) (BPIP) (created 2020-05-30_Sat_12.05h)
Trust list for: theymos (Trust: +30 / =1 / -0) (DT1! (57) 6814 Merit earned) (Trust list) (BPIP) (created 2020-05-30_Sat_12.05h)
In reality, theymos' DT1-strength is 58, and mine is 58 too. According to BPIP, there were no changes since the data dump. It turns out this is caused by another name change, I forgot to add TheBeardedBaby to my DT1-list. I'll run another update, the links above will be deleted in a couple of hours.
Update: it's fixed Smiley The top-navigation-bar will be updated in the coming hours.



@theymos: using usernames instead of userIDs in your weekly trust data dump is such a pain to deal with!
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Update:
(large pages work better in Firefox than Chrome)

Starter to avoid loading this large index: hilariousandco's Trust list.

The top-navigation-bar wil be updated over the next hours.



I've updated my Personal Full Trust Depth viewer for all users (with last week's data). This is a great way to see the recursive implications of your Trust inclusions.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
If you set your default Trust Depth to more than 2, it may not load anymore.

I've had it 3. I've changed it to 2 now.

Quote
And I think that creating a huge amount of extra data would not be the good direction. This would be more like "on the fly" data / response created from what you already have.
That's what the forum does, but there's just too much data to do it on the fly.


Hmm, I guess you're right.
However, I've changed to 2 and the Trust Depth could be of help next time.

Thank you.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I don't know, that btalk feature doesn't work for me.
Do you get a timeout on https://bitcointalk.org/index.php?action=trust;full? For me, it takes a long time to load, but it works. If you set your default Trust Depth to more than 2, it may not load anymore.

Quote
And I think that creating a huge amount of extra data would not be the good direction. This would be more like "on the fly" data / response created from what you already have.
That's what the forum does, but there's just too much data to do it on the fly.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
I've also made Personal Full Trust Depth viewer for all users a year ago, and last updated it half a year ago. I'm currently running an update, if my script still works it will probably take 2 days to generate a few GB of data.

I don't know, that btalk feature doesn't work for me.
And your list, although comprehensive, doesn't help me much (I just extracted now a name from there for an example). The last version from http://loyce.club/trust/ is already the real thing.
And I think that creating a huge amount of extra data would not be the good direction. This would be more like "on the fly" data / response created from what you already have.

I will give you an example from my list.

Problem: why do I trust moe7865? (not a real problem, just an example)
What I do: going to http://loyce.club/trust/2020-05-16_Sat_05.03h/, searching for the user, see who is trusting him, so:
. . . . . . . . . moe7865
. . . . . . . . . wlefever
worthyou - donalddraper - icon73
mickelody - . . . . . . .  . . - buckrogers

and in buckrogers' list I see yogg, which I know he's in my trust list.

So NeuroticFish - yogg - buckrogers - icon73 - wlefever - moe7865 is one chain.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
So, back to the idea: it's not easy to go on the trust "tree" and pinpoint the possible weak links = people who most probably you would not actually trust, but they are trusted (also indirectly) by people added to your trust list.
Aren't you just looking for your Trust list - Hierarchical view?
I've also made Personal Full Trust Depth viewer for all users a year ago, and last updated it half a year ago. I'm currently running an update, if my script still works it will probably take 2 days to generate a few GB of data.
Update: update done!

Trust lists quickly get very big because of this:
Custom Trust lists have large recursive implications because the users you trust directly (Depth 0) make you trust the ones they trust (Depth 1), and the users they trust (Depth 2)
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
I don't know if this was discussed until now, I've found myself already a couple of times surfing your lists to find out why I do (indirectly) trust this or that user (usually long gone users!).

It's clearly not a feature request, since last time I asked for WO "last week" viewer and I am sad (ashamed) to hear I am the only one using it now and then; so it's up to you if you find it worthy and add it or not.

So, back to the idea: it's not easy to go on the trust "tree" and pinpoint the possible weak links = people who most probably you would not actually trust, but they are trusted (also indirectly) by people added to your trust list. However, if the software knows who are you and who is the culprit, it should not be hard to find the "lines" of interest (not sure though how that could be displayed).
Pages:
Jump to: