fix blacklist
This commit is contained in:
@@ -26,10 +26,8 @@ export const DEFAULT_BLACKLIST = [
|
|||||||
"https://fishjar.github.io/kiss-translator/options.html",
|
"https://fishjar.github.io/kiss-translator/options.html",
|
||||||
"https://translate.google.com",
|
"https://translate.google.com",
|
||||||
"https://www.deepl.com/translator",
|
"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名单
|
export const DEFAULT_ORILIST = ["https://dict.youdao.com"]; // 移除Origin名单
|
||||||
|
|
||||||
// 同步设置
|
// 同步设置
|
||||||
|
|||||||
@@ -382,6 +382,15 @@ export default function Settings() {
|
|||||||
|
|
||||||
{isExt ? (
|
{isExt ? (
|
||||||
<>
|
<>
|
||||||
|
<TextField
|
||||||
|
size="small"
|
||||||
|
label={i18n("disabled_orilist")}
|
||||||
|
helperText={i18n("pattern_helper")}
|
||||||
|
name="orilist"
|
||||||
|
value={orilist}
|
||||||
|
onChange={handleChange}
|
||||||
|
multiline
|
||||||
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
select
|
select
|
||||||
fullWidth
|
fullWidth
|
||||||
@@ -411,15 +420,6 @@ export default function Settings() {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
multiline
|
multiline
|
||||||
/>
|
/>
|
||||||
<TextField
|
|
||||||
size="small"
|
|
||||||
label={i18n("disabled_orilist")}
|
|
||||||
helperText={i18n("pattern_helper")}
|
|
||||||
name="orilist"
|
|
||||||
value={orilist}
|
|
||||||
onChange={handleChange}
|
|
||||||
multiline
|
|
||||||
/>
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user