Update Image Loader Placeholder Remover to 1.19.1
- Fix unblurring images on Bloomberg
This commit is contained in:
parent
bc12b1f378
commit
b2e2d21c09
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue