优化 [屏蔽指定关键词(标题)] 功能

This commit is contained in:
xiu2
2021-06-16 21:05:53 +08:00
parent ae63aea475
commit 97d91cb7f7
+1 -1
View File
@@ -355,7 +355,7 @@ function blockUsers(type) {
function customBlockKeywords() {
let nowBlockKeywords = '';
menu_value('menu_customBlockKeywords').forEach(function(item){nowBlockKeywords = nowBlockKeywords + '|' + item})
let newBlockKeywords = prompt('编辑 [自定义屏蔽关键词]\n(不同关键词之间使用 "|" 分隔,例如:关键词A|关键词B|关键词C )', nowBlockKeywords.replace('|',''));
let newBlockKeywords = prompt('编辑 [自定义屏蔽关键词]\n(不同关键词之间使用 "|" 分隔,例如:关键词A|关键词B|关键词C \n(关键词不区分大小写', nowBlockKeywords.replace('|',''));
if (newBlockKeywords === '') {
GM_setValue('menu_customBlockKeywords', []);
registerMenuCommand(); // 重新注册脚本菜单