fix userscript selector in firfox

This commit is contained in:
Gabe Yuan
2023-08-06 23:42:06 +08:00
parent 5afb816648
commit c7d8769143
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
const els = `li, p, h1, h2, h3, h4, h5, h6, dd`;
export const DEFAULT_SELECTOR =
process.env.REACT_APP_CLIENT === "firefox"
process.env.REACT_APP_CLIENT === "firefox" ||
process.env.REACT_APP_CLIENT === "userscript"
? `:is(${els})`
: `:is(${els}):not(:has(:is(${els})))`;