diff --git a/Image Loader Placeholder Remover.user.js b/Image Loader Placeholder Remover.user.js index a44920b..3f799f7 100644 --- a/Image Loader Placeholder Remover.user.js +++ b/Image Loader Placeholder Remover.user.js @@ -1,11 +1,9 @@ // ==UserScript== // @name Image Loader Placeholder Remover // @namespace blankie-scripts -// @match http*://closeronline.co.uk/* -// @match http*://www.indiatoday.in/* -// @match http*://www.vice.com/* +// @match http*://*/* // @grant none -// @version 1.1 +// @version 1.2 // @author blankie // @run-at document-end // @description Removes image loading placeholders @@ -98,8 +96,21 @@ function vice() { } } +// https://daramiblog.com/ +// https://daramiblog.com/how-to-group-irregular-verbs-for-more-efficient-learning/ +function wordpress() { + for (element of document.querySelectorAll("img.lazyload.wp-post-image")) { + if (element.attributes["data-src"] === undefined || element.attributes["data-src"].value.length <= 0) { + continue; + } + element.src = element.attributes["data-src"].value; + element.style.opacity = 100; + } +} + switch (location.host) { case "closeronline.co.uk": closeronline(); break; case "www.indiatoday.in": indiatoday(); break; case "www.vice.com": vice(); break; + default: wordpress(); break; }; \ No newline at end of file