feat: inject user js/css

This commit is contained in:
Gabe Yuan
2024-03-14 18:06:28 +08:00
parent 9d4c596b4b
commit 2eabb7d5ac
10 changed files with 213 additions and 7 deletions

View File

@@ -66,6 +66,8 @@ export const MSG_TRANS_PUTRULE = "trans_putrule";
export const MSG_TRANS_CURRULE = "trans_currule";
export const MSG_CONTEXT_MENUS = "context_menus";
export const MSG_COMMAND_SHORTCUTS = "command_shortcuts";
export const MSG_INJECT_JS = "inject_js";
export const MSG_INJECT_CSS = "inject_css";
export const THEME_LIGHT = "light";
export const THEME_DARK = "dark";
@@ -335,6 +337,10 @@ export const GLOBLA_RULE = {
transOpen: "false",
bgColor: "",
textDiyStyle: "",
selectStyle: "-webkit-line-clamp: unset; max-height: none; height: auto;",
parentStyle: "-webkit-line-clamp: unset; max-height: none; height: auto;",
injectJs: "",
injectCss: "",
};
// 输入框翻译