mirror of
https://github.com/XIU2/UserScript.git
synced 2026-10-07 15:54:20 +00:00
优化 [屏蔽指定关键词(标题)] 功能
This commit is contained in:
@@ -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(); // 重新注册脚本菜单
|
||||
|
||||
Reference in New Issue
Block a user