File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 全球主机交流论坛增强
3- // @version 1.4.8
3+ // @version 1.4.9
44// @author X.I.U
55// @description 自动签到(访问空间 +22 积分)、屏蔽用户(黑名单)、屏蔽关键词(帖子标题)、回帖小尾巴、自动无缝翻页、快捷回到顶部(右键网页两侧空白处)、收起预览帖子(左键网页两侧空白处)、屏蔽投票贴、快速添加链接、屏蔽阅读权限 255 帖子、预览帖子快速回复带签名、显示是否在线、显示帖子内隐藏回复
66// @match *://hostloc.com/*
332332 document . querySelectorAll ( '[id^="normalthread_"]' ) . forEach ( function ( item ) { // 遍历所有帖子标题
333333 menu_value ( 'menu_customBlockKeywords' ) . forEach ( function ( item1 ) { // 遍历关键词
334334 let itemName = item . querySelector ( 'a.s.xst' ) ; // 寻找帖子标题
335- if ( itemName && itemName . textContent . indexOf ( item1 ) > - 1 ) {
335+ if ( itemName && itemName . textContent . toLowerCase ( ) . indexOf ( item1 . toLowerCase ( ) ) > - 1 ) {
336336 console . log ( `屏蔽关键词:[${ item1 } ]` , `,帖子标题:[${ itemName . textContent } ]` ) ;
337337 item . hidden = true ; // 删除帖子
338338 }
You can’t perform that action at this time.
0 commit comments