From fbd4a31a9c499a1895350f13ac16d8451c88f560 Mon Sep 17 00:00:00 2001 From: Gabe Date: Mon, 27 Oct 2025 20:00:05 +0800 Subject: [PATCH] fix: ignore script ellement --- src/libs/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/translator.js b/src/libs/translator.js index a568d12..08898ea 100644 --- a/src/libs/translator.js +++ b/src/libs/translator.js @@ -1298,7 +1298,7 @@ export class Translator { (this.#rule.hasRichText === "true" && Translator.TAGS.REPLACE.has(node.tagName)) || node.matches(this.#rule.keepSelector) || - node.matches(this.#ignoreSelector) || + // node.matches(this.#ignoreSelector) || !node.textContent.trim() ) { if (node.tagName === "IMG" || node.tagName === "SVG") {