Update Image Loader Placeholder Remover to version 1.5

- Added support for www.theautopian.com
This commit is contained in:
blankie 2022-10-30 22:21:41 +07:00
parent 1e7479439a
commit 7bffd7ae9b
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 14 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// @namespace blankie-scripts // @namespace blankie-scripts
// @match http*://*/* // @match http*://*/*
// @grant none // @grant none
// @version 1.4 // @version 1.5
// @author blankie // @author blankie
// @run-at document-end // @run-at document-end
// @description Removes image loading placeholders // @description Removes image loading placeholders
@ -129,11 +129,24 @@ function wired() {
document.head.appendChild(style); document.head.appendChild(style);
} }
// https://www.theautopian.com/
// https://www.theautopian.com/nobody-wants-touch-screen-glove-box-latches-and-it-needs-to-stop-now/
function theautopian() {
for (element of document.querySelectorAll("img[data-jzl-lazy-src]")) {
let originalUrl = element.getAttribute("data-jzl-lazy-src");
if (originalUrl === null) {
continue;
}
element.src = originalUrl;
}
}
switch (location.host) { switch (location.host) {
case "closeronline.co.uk": closeronline(); break; case "closeronline.co.uk": closeronline(); break;
case "www.indiatoday.in": indiatoday(); break; case "www.indiatoday.in": indiatoday(); break;
case "www.vice.com": vice(); break; case "www.vice.com": vice(); break;
case "www.pcgamer.com": pcgamer(); break; case "www.pcgamer.com": pcgamer(); break;
case "www.wired.com": wired(); break; case "www.wired.com": wired(); break;
case "www.theautopian.com": theautopian(); break;
default: wordpress(); break; default: wordpress(); break;
}; };