tieba_hide_someword

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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();
		}
	});
}