Update Image Loader Placeholder Remover to 1.23.1

- Fix freezing on some pages (example:
https://breezewiki.zangetsu.kaizoku.cyou/hollowknight/wiki/zote)
This commit is contained in:
blankie 2023-11-13 23:45:30 +11:00
parent d8b7be45b5
commit 9a64f71505
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
// @match http*://*/* // @match http*://*/*
// @exclude-match http*://solar.lowtechmagazine.com/* // @exclude-match http*://solar.lowtechmagazine.com/*
// @grant none // @grant none
// @version 1.23.0 // @version 1.23.1
// @author blankie // @author blankie
// @run-at document-end // @run-at document-end
// @description Removes image loading placeholders // @description Removes image loading placeholders
@ -351,12 +351,12 @@ function removePlaceholder(img) {
for (let img of document.querySelectorAll("img")) { for (let img of Array.from(document.querySelectorAll("img"))) {
removePlaceholder(img); removePlaceholder(img);
} }
// the reason we reunhide images after 1s after the page loads is because of <noscript> elements being faked by umatrix // the reason we reunhide images after 1s after the page loads is because of <noscript> elements being faked by umatrix
setTimeout(function() { setTimeout(function() {
for (let img of document.querySelectorAll("img")) { for (let img of Array.from(document.querySelectorAll("img")) {
removePlaceholder(img); removePlaceholder(img);
} }
}, 1000); }, 1000);