fix: Some element tagnames are lowercase. (#377)
This commit is contained in:
@@ -118,6 +118,10 @@ async function getFavWords(rule) {
|
||||
*/
|
||||
export async function run(isUserscript = false) {
|
||||
try {
|
||||
if (document?.documentElement?.tagName?.toUpperCase() !== "HTML") {
|
||||
return;
|
||||
}
|
||||
|
||||
// 读取设置信息
|
||||
const setting = await getSettingWithDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user