Update Image Loader Placeholder Remover to 1.15.1
- Properly check whether or not to unhide lazyloader parents
This commit is contained in:
		
							parent
							
								
									c4716c3373
								
							
						
					
					
						commit
						cadc19f469
					
				|  | @ -3,7 +3,7 @@ | |||
| // @namespace   blankie-scripts
 | ||||
| // @match       http*://*/*
 | ||||
| // @grant       none
 | ||||
| // @version     1.15.0
 | ||||
| // @version     1.15.1
 | ||||
| // @author      blankie
 | ||||
| // @run-at      document-end
 | ||||
| // @description Removes image loading placeholders
 | ||||
|  | @ -116,7 +116,7 @@ function getLazyloaderClasses(element) { | |||
|         // - https://theconversation.com
 | ||||
|         // - https://theconversation.com/yall-that-most-southern-of-southernisms-is-going-mainstream-and-its-about-time-193265
 | ||||
|         if (className.includes("loading") || className.includes("lazy") || className.includes("responsive") || className.includes("preload") || className.includes("placeholder")) { | ||||
|             classes.push(className);; | ||||
|             classes.push(className); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | @ -134,7 +134,7 @@ function removePlaceholder(img) { | |||
|         // - https://www.wired.com/
 | ||||
|         // - https://www.wired.com/story/researcher-fooled-a-google-ai-into-thinking-a-rifle-was-a-helicopter/
 | ||||
|         let lazyLoaderClasses = getLazyloaderClasses(parentElement); | ||||
|         if (lazyLoaderClasses) { | ||||
|         if (lazyLoaderClasses.length !== 0) { | ||||
|             unhideElement(parentElement); | ||||
|             // Examples of pages with a blur applied to lazyloader classes:
 | ||||
|             // - https://restofworld.org/
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue