Compare commits

...

1 commit

Author SHA1 Message Date
2c24dde5c6
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
2022-10-03 22:02:56 +07:00

View file

@ -166,7 +166,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 ; proxy images from src attributes
(curry attribute-maybe-update 'src u-proxy-url) (curry attribute-maybe-update 'src u-proxy-url)