From 24369e2581bc932efee8be1360d4e66bcfb2aa03 Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 5 Nov 2025 21:41:18 +0800 Subject: [PATCH] fix: Some element tagnames are lowercase. (#377) --- src/common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index ab92551..d54a242 100644 --- a/src/common.js +++ b/src/common.js @@ -118,7 +118,10 @@ async function getFavWords(rule) { */ export async function run(isUserscript = false) { try { - if (document?.documentElement?.tagName?.toUpperCase() !== "HTML") { + // if (document?.documentElement?.tagName?.toUpperCase() !== "HTML") { + // return; + // } + if (!document?.contentType?.includes("html")) { return; }