fix blacklist

This commit is contained in:
Gabe
2025-10-13 23:46:04 +08:00
parent 8a5ef441f9
commit dd395e668f
2 changed files with 10 additions and 12 deletions

View File

@@ -26,10 +26,8 @@ export const DEFAULT_BLACKLIST = [
"https://fishjar.github.io/kiss-translator/options.html",
"https://translate.google.com",
"https://www.deepl.com/translator",
"oapi.dingtalk.com",
"login.dingtalk.com",
]; // 禁用翻译名单
export const DEFAULT_CSPLIST = ["https://github.com"]; // 禁用CSP名单
export const DEFAULT_CSPLIST = []; // 禁用CSP名单
export const DEFAULT_ORILIST = ["https://dict.youdao.com"]; // 移除Origin名单
// 同步设置

View File

@@ -382,6 +382,15 @@ export default function Settings() {
{isExt ? (
<>
<TextField
size="small"
label={i18n("disabled_orilist")}
helperText={i18n("pattern_helper")}
name="orilist"
value={orilist}
onChange={handleChange}
multiline
/>
<TextField
select
fullWidth
@@ -411,15 +420,6 @@ export default function Settings() {
onChange={handleChange}
multiline
/>
<TextField
size="small"
label={i18n("disabled_orilist")}
helperText={i18n("pattern_helper")}
name="orilist"
value={orilist}
onChange={handleChange}
multiline
/>
</>
) : (
<>