Update Image Loader Placeholder Remover to 1.19.1

- Fix unblurring images on Bloomberg
This commit is contained in:
blankie 2023-09-08 21:08:02 +10:00
parent bc12b1f378
commit b2e2d21c09
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}