tieba_hide_someword

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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://greasyfork.org/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();
		}
	});
}