From b2e2d21c09e4163006929019f5b90a93424dd624 Mon Sep 17 00:00:00 2001 From: blankie Date: Fri, 8 Sep 2023 21:08:02 +1000 Subject: [PATCH] Update Image Loader Placeholder Remover to 1.19.1 - Fix unblurring images on Bloomberg --- Image Loader Placeholder Remover.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Image Loader Placeholder Remover.user.js b/Image Loader Placeholder Remover.user.js index 211a5cc..28b2b77 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.19.0 +// @version 1.19.1 // @author blankie // @run-at document-end // @description Removes image loading placeholders @@ -111,10 +111,12 @@ function getLazyloaderAttributes(element) { let attributes = []; for (let attr of element.attributes) { - // Examples of loading: + // Examples of loading in name: // - https://blog.google/ // - https://blog.google/threat-analysis-group/active-north-korean-campaign-targeting-security-researchers/ - if (/loading/.test(attr.name)) { + // Example of img in value: + // https://www.bloomberg.com/news/features/2023-05-11/the-plot-to-steal-the-secret-coke-can-liner-formula + if (/loading/.test(attr.name) || /img/.test(attr.value)) { attributes.push(attr); } }