From 7bffd7ae9b03d92afb967d83e7dbe9efbc040c1d Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 30 Oct 2022 22:21:41 +0700 Subject: [PATCH] Update Image Loader Placeholder Remover to version 1.5 - Added support for www.theautopian.com --- Image Loader Placeholder Remover.user.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Image Loader Placeholder Remover.user.js b/Image Loader Placeholder Remover.user.js index 556d2e8..548a901 100644 --- a/Image Loader Placeholder Remover.user.js +++ b/Image Loader Placeholder Remover.user.js @@ -3,7 +3,7 @@ // @namespace blankie-scripts // @match http*://*/* // @grant none -// @version 1.4 +// @version 1.5 // @author blankie // @run-at document-end // @description Removes image loading placeholders @@ -129,11 +129,24 @@ function wired() { 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) { case "closeronline.co.uk": closeronline(); break; case "www.indiatoday.in": indiatoday(); break; case "www.vice.com": vice(); break; case "www.pcgamer.com": pcgamer(); break; case "www.wired.com": wired(); break; + case "www.theautopian.com": theautopian(); break; default: wordpress(); break; }; \ No newline at end of file