From 868c06677df50d903b1521e69c55290386ac1cc1 Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 7 Aug 2023 20:26:11 +1000 Subject: [PATCH] Update Image Loader Placeholder Remover to 1.16.0 - Add support for www.makeuseof.com --- Image Loader Placeholder Remover.user.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Image Loader Placeholder Remover.user.js b/Image Loader Placeholder Remover.user.js index 9783a9b..2164efc 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.15.2 +// @version 1.16.0 // @author blankie // @run-at document-end // @description Removes image loading placeholders @@ -55,7 +55,9 @@ function findUrl(element) { // Examples of original: // - https://www.pcgamer.com/ // - https://www.pcgamer.com/windows-95-theme-for-windows-10/ - if (!attr.name.includes("lazy") && !(attr.name.includes("src") && attr.name !== "src") && !attr.name.includes("loading") && !attr.name.includes("original")) { + // Example of img-url: + // - https://www.makeuseof.com/windows-11-resize-taskbar/ + if (!attr.name.includes("lazy") && !(attr.name.includes("src") && attr.name !== "src") && !attr.name.includes("loading") && !attr.name.includes("original") && !attr.name.includes("img-url")) { continue; } if (!isUrlLike(attr.value)) { @@ -88,6 +90,11 @@ function unhideElement(element) { if (style.display === "none") { element.style.display = "block"; } + + // Example: https://www.makeuseof.com/windows-11-resize-taskbar/ + if (window.location.host === "www.makeuseof.com") { + element.style.paddingBottom = 0; + } } function getLazyloaderClasses(element) {