fix: Some element tagnames are lowercase. (#377)
This commit is contained in:
@@ -118,7 +118,10 @@ async function getFavWords(rule) {
|
|||||||
*/
|
*/
|
||||||
export async function run(isUserscript = false) {
|
export async function run(isUserscript = false) {
|
||||||
try {
|
try {
|
||||||
if (document?.documentElement?.tagName?.toUpperCase() !== "HTML") {
|
// if (document?.documentElement?.tagName?.toUpperCase() !== "HTML") {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
if (!document?.contentType?.includes("html")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user