Minor fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name EH Gallery Script
|
// @name EH Gallery Script
|
||||||
// @namespace https://github.com/lifegpc/userscript
|
// @namespace https://github.com/lifegpc/userscript
|
||||||
// @version 0.1.9
|
// @version 0.1.10
|
||||||
// @description :(
|
// @description :(
|
||||||
// @author lifegpc
|
// @author lifegpc
|
||||||
// @match https://*.e-hentai.org/g/*/*
|
// @match https://*.e-hentai.org/g/*/*
|
||||||
@@ -405,6 +405,7 @@ GM_addStyle(`
|
|||||||
.egs__msg-err{background:#c33}
|
.egs__msg-err{background:#c33}
|
||||||
.egs__msg-warn{background:#FF9900}
|
.egs__msg-warn{background:#FF9900}
|
||||||
td.tc{text-wrap:nowrap}
|
td.tc{text-wrap:nowrap}
|
||||||
|
.tippy-content p{white-space:break-spaces;color:black!important}
|
||||||
`)
|
`)
|
||||||
GM_addStyle(GM_getResourceText("s"));
|
GM_addStyle(GM_getResourceText("s"));
|
||||||
/**
|
/**
|
||||||
@@ -630,7 +631,7 @@ async function handle_tags() {
|
|||||||
if (enableTagTranslation) {
|
if (enableTagTranslation) {
|
||||||
let otag = i.getAttribute('otag');
|
let otag = i.getAttribute('otag');
|
||||||
if (otag) continue;
|
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;
|
if (!t) continue;
|
||||||
const value = await get_tag(t);
|
const value = await get_tag(t);
|
||||||
i.setAttribute('otag', t);
|
i.setAttribute('otag', t);
|
||||||
|
|||||||
Reference in New Issue
Block a user