feat: support AI terms

This commit is contained in:
Gabe
2025-10-01 16:18:19 +08:00
parent 261bb7aa6f
commit 3c5ffc045f
8 changed files with 91 additions and 74 deletions

View File

@@ -52,6 +52,7 @@ export const matchRule = async (href, { injectRules, subrulesList }) => {
"rootsSelector",
"ignoreSelector",
"terms",
"aiTerms",
"selectStyle",
"parentStyle",
"injectJs",
@@ -134,6 +135,7 @@ export const checkRules = (rules) => {
rootsSelector,
ignoreSelector,
terms,
aiTerms,
selectStyle,
parentStyle,
injectJs,
@@ -166,6 +168,7 @@ export const checkRules = (rules) => {
rootsSelector: type(rootsSelector) === "string" ? rootsSelector : "",
ignoreSelector: type(ignoreSelector) === "string" ? ignoreSelector : "",
terms: type(terms) === "string" ? terms : "",
aiTerms: type(aiTerms) === "string" ? aiTerms : "",
selectStyle: type(selectStyle) === "string" ? selectStyle : "",
parentStyle: type(parentStyle) === "string" ? parentStyle : "",
injectJs: type(injectJs) === "string" ? injectJs : "",