LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
June 20, 2020, 06:29:22 AM |
|
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.
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
June 27, 2020, 06:53:45 AM |
|
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 (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 04, 2020, 07:50:29 AM Last edit: July 04, 2020, 04:54:54 PM by LoyceV |
|
Update: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
Activity: 382
Merit: 40
Ditty! £ $ ₹ € ¥ ¢ ≠ ÷ ™
|
|
July 04, 2020, 01:54:45 PM |
|
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
Activity: 2968
Merit: 7379
|
|
July 04, 2020, 02:10:05 PM |
|
Can you implement HTTPS in your website? It can be done for free and quickly with https://letsencrypt.orgThat 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 (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 04, 2020, 04:57:13 PM Last edit: July 05, 2020, 09:19:36 AM by LoyceV |
|
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 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
Activity: 2968
Merit: 7379
|
|
July 08, 2020, 02:46:10 PM Last edit: May 14, 2023, 02:50:36 AM by TryNinja |
|
Update: Done! I have installed certbot. Thank you. But now I have another request. I still can't make requests to your website from a browser because of CORS. 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. // ==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://talkimg.com/images/2023/05/14/blobf2a1ef7d63fd727a.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://talkimg.com/images/2023/05/14/blobf2a1ef7d63fd727a.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 (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 08, 2020, 04:05:52 PM |
|
I still can't make requests to your website from a browser because of CORS. 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 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 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 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
Activity: 3808
Merit: 9021
https://bpip.org
|
|
July 08, 2020, 04:27:32 PM |
|
I'm using standard Apache2. It's a text-file, I don't need headers Try something like this: <Files "latestversion.txt"> Header set Access-Control-Allow-Origin "https://bitcointalk.org" </Files>
In apache configuration.
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 08, 2020, 04:54:02 PM |
|
<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
Activity: 2968
Merit: 7379
|
|
July 08, 2020, 05:04:58 PM |
|
@TryNinja: does it work now?
No. I still get the same error.
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 08, 2020, 05:10:38 PM |
|
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: Header set Access-Control-Allow-Origin "*"
|
|
|
|
TryNinja
Legendary
Offline
Activity: 2968
Merit: 7379
|
|
July 08, 2020, 05:17:51 PM |
|
Try again: I've added suchmoon's exact code to apache2.conf.
Nope. Edit: It worked now. Maybe it was a cache issue? I will update the script with your website url.
|
|
|
|
suchmoon
Legendary
Offline
Activity: 3808
Merit: 9021
https://bpip.org
|
|
July 08, 2020, 05:27:41 PM Last edit: November 30, 2020, 03:59:59 AM by suchmoon |
|
Try again: I've added suchmoon's exact code to apache2.conf.
Nope. I just tried and it does return the correct header: Edited 2020-11-30 to fix a broken imageEdit to your edit:
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 11, 2020, 08:12:47 AM |
|
Update: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:
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 18, 2020, 12:31:52 PM |
|
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 (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
July 25, 2020, 08:09:20 AM |
|
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
Activity: 3808
Merit: 2235
💲🏎️💨🚓
|
|
July 31, 2020, 01:12:19 AM |
|
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.
|
|
|
|
|
LoyceV (OP)
Legendary
Offline
Activity: 3444
Merit: 17398
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
August 01, 2020, 06:58:58 AM |
|
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).
|
|
|
|
|