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
 | 
			
		||||
// @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)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue