From d4e4384b91c67550e73e6168bdd209564679659f Mon Sep 17 00:00:00 2001 From: Pacalini <141402887+Pacalini@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:18:13 +0800 Subject: [PATCH] ehentai: handle thumbnail labeling again --- ehentai.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ehentai.js b/ehentai.js index 37305ee..a783961 100644 --- a/ehentai.js +++ b/ehentai.js @@ -700,7 +700,8 @@ class Ehentai extends ComicSource { }); images.push(...document.querySelectorAll("div.gdtl > a > img").map((e) => e.attributes["src"])) if(images.length === 0) { - for(let e of document.querySelectorAll("div.gt100 > a > div")) { + for(let e of document.querySelectorAll("div.gt100 > a > div") + .map(e => e.children.length === 0 ? e : e.children[0])) { let style = e.attributes['style']; let r = style.split("background:transparent url(")[1] let url = r.split(")")[0]