forked from cadence/breezewiki
		
	Proxy links with class image
Some images don't have an image-thumbnail class, for example: https://breezewiki.pussthecat.org/minecraft/wiki/Enchanting%20Table#Usage
This commit is contained in:
		
							parent
							
								
									5b4efdd292
								
							
						
					
					
						commit
						2e6fa6088b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -188,7 +188,8 @@ | ||||||
|                        (λ (v) |                        (λ (v) | ||||||
|                          (and (config-true? 'strict_proxy) |                          (and (config-true? 'strict_proxy) | ||||||
|                               (eq? element-type 'a) |                               (eq? element-type 'a) | ||||||
|                               (has-class? "image-thumbnail" v))) |                               (or (has-class? "image-thumbnail" v) | ||||||
|  |                                   (has-class? "image" v)))) | ||||||
|                        (λ (v) (attribute-maybe-update 'href u-proxy-url v))) |                        (λ (v) (attribute-maybe-update 'href u-proxy-url v))) | ||||||
|                 ; proxy images from src attributes, if strict_proxy is set |                 ; proxy images from src attributes, if strict_proxy is set | ||||||
|                 (curry u |                 (curry u | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue