From 2c24dde5c6b90f8f9075dbcdbbfdaccbd7975229 Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 3 Oct 2022 21:56:17 +0700 Subject: [PATCH] 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 --- src/page-wiki.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/page-wiki.rkt b/src/page-wiki.rkt index 96410d0..d003cff 100644 --- a/src/page-wiki.rkt +++ b/src/page-wiki.rkt @@ -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)))) (λ (v) (attribute-maybe-update 'href u-proxy-url v))) ; proxy images from src attributes (curry attribute-maybe-update 'src u-proxy-url)