1
Fork 0

e621: don't hang on thumbnails with data-id="0"

This commit is contained in:
Conduitry 2020-08-28 08:52:42 -04:00
parent 612af87d16
commit e4014be077
1 changed files with 2 additions and 2 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 2020.08.24.161748
// @version 2020.08.28.125242
// ==/UserScript==
// wrapper around URLSearchParams to simplify creating search queries
@ -175,7 +175,7 @@ const augment_results = (container, posts, link_params) => {
}
// fetch avatars and thumbnails in comments blocked by global blacklist
while (document.querySelector('.post-thumb.placeholder')) {
while (document.querySelector('.post-thumb.placeholder:not([data-id="0"])')) {
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')) {