feat: terms style

This commit is contained in:
Gabe
2025-10-16 20:16:03 +08:00
parent a8965a01e3
commit 56d4733e2a
5 changed files with 29 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ export const matchRule = async (href, { injectRules, subrulesList }) => {
"ignoreSelector",
"terms",
"aiTerms",
"termsStyle",
"selectStyle",
"parentStyle",
"grandStyle",
@@ -136,6 +137,7 @@ export const checkRules = (rules) => {
ignoreSelector,
terms,
aiTerms,
termsStyle,
selectStyle,
parentStyle,
grandStyle,
@@ -170,6 +172,7 @@ export const checkRules = (rules) => {
ignoreSelector: type(ignoreSelector) === "string" ? ignoreSelector : "",
terms: type(terms) === "string" ? terms : "",
aiTerms: type(aiTerms) === "string" ? aiTerms : "",
termsStyle: type(termsStyle) === "string" ? termsStyle : "",
selectStyle: type(selectStyle) === "string" ? selectStyle : "",
parentStyle: type(parentStyle) === "string" ? parentStyle : "",
grandStyle: type(grandStyle) === "string" ? grandStyle : "",