tieba_hide_someword

屏蔽包含特定关键字的主题

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           tieba_hide_someword
// @description    屏蔽包含特定关键字的主题
// @include        http://tieba.baidu.com/*
// @exclude        http://tieba.baidu.com/tb*
// @icon           http://tb.himg.baidu.com/sys/portraitn/item/4e2ed7f8bbb3d4f2c2d2bb21
// @author         congxz6688
// @version        2013.5.5
// @namespace https://greatest.deepsurf.us/scripts/160
// ==/UserScript==

var someone = ["关键字甲", "关键字乙"]; //黑名单

var $ = unsafeWindow.$;

for (j = 0; j < someone.length; j++) {
	$('tr').each(function () { //旧版
		if ($(this).find('.thread_title>a').text().indexOf(someone[j]) != -1) {
			$(this).remove();
		}
	});
	$('li').each(function () { //新版
		if ($(this).find('.j_th_tit').text().indexOf(someone[j]) != -1) {
			$(this).remove();
		}
	});
}