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:
blankie 2022-10-03 21:56:17 +07:00
parent 2a56107e97
commit fbfff373c6
Signed by: blankie
GPG key ID: CC15FC822C7F61F5

View file

@ -166,7 +166,8 @@
(λ (v)
(and (config-true? 'strict_proxy)
(eq? element-type 'a)
(has-class? "image-thumbnail" v)))
(or (has-class? "image-thumbnail" v)
(has-class? "image"))))
(λ (v) (attribute-maybe-update 'href u-proxy-url v)))
; proxy images from src attributes
(curry attribute-maybe-update 'src u-proxy-url)