按id及关键词屏蔽首页
// ==UserScript==
// @name 绯月首页屏蔽
// @namespace fypb@icesword95
// @version 0.10
// @create 2022-04-08
// @lastmodified 2022-04-08
// @license MIT
// @description 按id及关键词屏蔽首页
// @author icesword95
// @match *bbs.9shenmi.com/*
// ==/UserScript==
(function() {
var keywords = ['zzzzz','zzzz','zzz'];
var topics = document.getElementsByClassName('indexlbtc');
for (var i = topics.length-1; i >=0; i--) {
var a = topics[i];
var title = a.innerHTML;
for (var j = 0; j < keywords.length; j++) {
var keyword = keywords[j];
if(title.indexOf(keyword) != -1){
console.log('Removed: ' + a.href + ' [' + title + ']');
a.remove();
}
}
}
})();