zuanke8.com topics blocking tools

zuanke8.com junk blocking

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

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 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.

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

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 zuanke8.com topics blocking tools
// @namespace discuz
// @description:en zuanke8.com junk blocking
// @description:zh 屏蔽赚吧包含特定关键字和用户的主题不予显示,减少水帖干扰。
// @include        http://www.zuanke8.com/*
// @version 0.0.1
// @description zuanke8.com junk blocking
// ==/UserScript==

// 主题列表页
var btopics = new Array("小知", "斐讯", "和包");
for (x in btopics) {
	xtopics = document.evaluate('//table/tbody[tr[1]/th[1]//a[contains(text(),"' + btopics[x] + '")]]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
	if (xtopics.snapshotLength) {
		for (var i = 0, c = ""; i < xtopics.snapshotLength; i++) {
			xtopics.snapshotItem(i).innerHTML = "<tbody style='display:none;'></tbody>";
		}
	}
}

// 屏蔽特定用户的发帖
// 直接填写用户名在引号里面,每组引号用半角逗号隔开。
var abusers = new Array("", "");
for (x in abusers) {
	abuser = document.evaluate('//table/tbody[tr[1]/td[2]//cite/a[text()="' + abusers[x] + '"]]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
	if (abuser.snapshotLength) {
		for (var i = 0, c = ""; i < abuser.snapshotLength; i++) {
			abuser.snapshotItem(i).innerHTML = "<tbody style='display:none;'></tbody>";
		}
	}
}