From c8e7af5f160cb7dfdb646b3c88682b4193b5f7ae Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 9 Mar 2024 15:16:41 +0800 Subject: [PATCH] Minor fix --- eh_gallery_script.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eh_gallery_script.user.js b/eh_gallery_script.user.js index 6aa5db6..3987f9d 100644 --- a/eh_gallery_script.user.js +++ b/eh_gallery_script.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name EH Gallery Script // @namespace https://github.com/lifegpc/userscript -// @version 0.1.9 +// @version 0.1.10 // @description :( // @author lifegpc // @match https://*.e-hentai.org/g/*/* @@ -405,6 +405,7 @@ GM_addStyle(` .egs__msg-err{background:#c33} .egs__msg-warn{background:#FF9900} td.tc{text-wrap:nowrap} +.tippy-content p{white-space:break-spaces;color:black!important} `) GM_addStyle(GM_getResourceText("s")); /** @@ -630,7 +631,7 @@ async function handle_tags() { if (enableTagTranslation) { let otag = i.getAttribute('otag'); if (otag) continue; - const t = i.id ? replaceAll(e.id.split("td_")[1], '_', ' ') : i.title; + const t = i.id ? replaceAll(i.id.split("td_")[1], '_', ' ') : i.title; if (!t) continue; const value = await get_tag(t); i.setAttribute('otag', t);