Update Image Loader Placeholder Remover to 1.17.1

- Fix oversensitive image URL finder
This commit is contained in:
blankie 2023-08-28 22:22:52 +10:00
parent ee2cd8a08e
commit a91831ee70
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// @namespace blankie-scripts
// @match http*://*/*
// @grant none
// @version 1.17.0
// @version 1.17.1
// @author blankie
// @run-at document-end
// @description Removes image loading placeholders
@ -59,7 +59,7 @@ function findUrl(element) {
// - https://www.pcgamer.com/windows-95-theme-for-windows-10/
// Example of img-url:
// - 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;
}
if (!isUrlLike(attr.value)) {