diff --git a/Image Loader Placeholder Remover.user.js b/Image Loader Placeholder Remover.user.js index adcc8f0..7430529 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.0 +// @version 1.15.1 // @author blankie // @run-at document-end // @description Removes image loading placeholders @@ -116,7 +116,7 @@ function getLazyloaderClasses(element) { // - https://theconversation.com // - https://theconversation.com/yall-that-most-southern-of-southernisms-is-going-mainstream-and-its-about-time-193265 if (className.includes("loading") || className.includes("lazy") || className.includes("responsive") || className.includes("preload") || className.includes("placeholder")) { - classes.push(className);; + classes.push(className); } } @@ -134,7 +134,7 @@ function removePlaceholder(img) { // - https://www.wired.com/ // - https://www.wired.com/story/researcher-fooled-a-google-ai-into-thinking-a-rifle-was-a-helicopter/ let lazyLoaderClasses = getLazyloaderClasses(parentElement); - if (lazyLoaderClasses) { + if (lazyLoaderClasses.length !== 0) { unhideElement(parentElement); // Examples of pages with a blur applied to lazyloader classes: // - https://restofworld.org/