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:
parent
d8b7be45b5
commit
9a64f71505
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue