e621: don't hang on thumbnails with data-id="0"
This commit is contained in:
parent
612af87d16
commit
e4014be077
1 changed files with 2 additions and 2 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue