Update Image Loader Placeholder Remover to 1.17.1
- Fix oversensitive image URL finder
This commit is contained in:
parent
ee2cd8a08e
commit
a91831ee70
|
@ -3,7 +3,7 @@
|
||||||
// @namespace blankie-scripts
|
// @namespace blankie-scripts
|
||||||
// @match http*://*/*
|
// @match http*://*/*
|
||||||
// @grant none
|
// @grant none
|
||||||
// @version 1.17.0
|
// @version 1.17.1
|
||||||
// @author blankie
|
// @author blankie
|
||||||
// @run-at document-end
|
// @run-at document-end
|
||||||
// @description Removes image loading placeholders
|
// @description Removes image loading placeholders
|
||||||
|
@ -59,7 +59,7 @@ function findUrl(element) {
|
||||||
// - https://www.pcgamer.com/windows-95-theme-for-windows-10/
|
// - https://www.pcgamer.com/windows-95-theme-for-windows-10/
|
||||||
// Example of img-url:
|
// Example of img-url:
|
||||||
// - https://www.makeuseof.com/windows-11-resize-taskbar/
|
// - https://www.makeuseof.com/windows-11-resize-taskbar/
|
||||||
if (/lazy|src|loading|original|img-url/.test(attr.name) && attr.name !== "src") {
|
if (!/lazy|src|loading|original|img-url/.test(attr.name) || attr.name === "src") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!isUrlLike(attr.value)) {
|
if (!isUrlLike(attr.value)) {
|
||||||
|
|
Loading…
Reference in New Issue