Skip to content

Commit d6043b1

Browse files
committed
优化 代码
1 parent ccef91b commit d6043b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Hostloc-Enhanced.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
function customBlockKeywords() {
269269
let nowBlockKeywords = '';
270270
GM_getValue('menu_customBlockKeywords').forEach(function(item){nowBlockKeywords = nowBlockKeywords + '|' + item})
271-
let newBlockKeywords = prompt('编辑 [自定义屏蔽关键词],刷新网页后生效\n(不同关键词之间使用 "|" 分隔,\n(例如:嘿嘿|呵呵|嘎嘎,如果只有一个就不需要 "|" 了。', nowBlockKeywords.replace('|',''));
271+
let newBlockKeywords = prompt('编辑 [自定义屏蔽关键词],刷新网页后生效\n(不同关键词之间使用 "|" 分隔,\n(例如:助力|互助|互点,如果只有一个就不需要 "|" 了。', nowBlockKeywords.replace('|',''));
272272
if (newBlockKeywords === '') {
273273
GM_setValue('menu_customBlockKeywords', []);
274274
registerMenuCommand(); // 重新注册脚本菜单

0 commit comments

Comments
 (0)