From 69f914a1a29400106686c27c3c9829aa833e5840 Mon Sep 17 00:00:00 2001 From: Pacalini <141402887+Pacalini@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:45:20 +0800 Subject: [PATCH] eh: tags parsing --- ehentai.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ehentai.js b/ehentai.js index cbdd740..3e143a4 100644 --- a/ehentai.js +++ b/ehentai.js @@ -606,7 +606,12 @@ class Ehentai extends ComicSource { for(let tr of document.querySelectorAll("div#taglist > table > tbody > tr")) { tags.set( tr.children[0].text.substring(0, tr.children[0].text.length - 1), - tr.children[1].children.map((e) => e.children[0].text) + tr.children[1].children.map((e) => + e.children[0] + .attributes["onclick"] + .split(":")[1] + .split("'")[0] + ) ) }