1
Fork 0

e621: fix fetching thumbnails in wiki articles

This commit is contained in:
Conduitry 2022-04-24 13:05:06 -04:00
parent 1fb99e841a
commit 2cf3ee82f4
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
// @description A script to make browsing e621.net while not signed in more convenient, and to work around the global blacklist forced on anonymous users.
// @match https://e621.net/*
// @icon https://e621.net/favicon.ico
// @version 2022.04.18.225242
// @version 2022.04.24.170506
// ==/UserScript==
// wrapper around URLSearchParams to simplify creating search queries
@ -176,8 +176,8 @@ const augment_results = (container, posts, link_params) => {
}
// fetch avatars and thumbnails in comments blocked by global blacklist
while (document.querySelector('#comments .post-thumb.placeholder:not([data-id="0"]), #comments .dtext-post-id-link')) {
// fetch avatars and thumbnails in comments and wiki articles blocked by global blacklist
while (document.querySelector('#comments .post-thumb.placeholder:not([data-id="0"]), #comments .dtext-post-id-link, #wiki-page-body .dtext-post-id-link')) {
await new Promise(res => setTimeout(res, 100));
}
for (const el of document.querySelectorAll('.post-thumbnail[data-id]:not([data-flags=deleted]):not([data-md5]) img')) {