vBulletin Total Ignore

Remove all mention of ignored people (except thanks)

当前为 2015-01-20 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name          vBulletin Total Ignore
// @include       */showthread.php*
// @include       */showpost.php*
// @include       */private.php*
// @include       */member.php*
// @version       1.06
// @date          2014-01-27
// @creator       Tjololo
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @grant         GM_log
// @namespace https://greasyfork.org/users/710
// @description Remove all mention of ignored people (except thanks)
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
//var plonk = new Array();
var plonk = (GM_getValue("plonk") ? GM_getValue("plonk") : new Array());

if (!this.GM_getValue || (this.GM_getValue.toString && this.GM_getValue.toString().indexOf("not supported")>-1)) {
	this.GM_getValue=function (key,def) {
    	return localStorage[key] || def;
		};
	this.GM_setValue=function (key,value) {
		return localStorage[key]=value;
		};
    this.GM_deleteValue=function (key) {
        return localStorage.removeItem(key);
    }
}
   
$('li[class*=postbitignored]').each(function() {
    var name = $(this).find(".postbody").find("strong").html();
    if ($.inArray(name,plonk) == -1)
        plonk.push(name);
    GM_setValue("plonk",plonk);
    $(this).hide();
    console.log("Found "+name);
});

$(".bbcode_quote").each(function() {
    var name = $(this).find("strong").html();
    if ($.inArray(name,plonk) > -1){
        console.log("Found quote from "+name);
        $(this).html("Quote from "+name+" hidden");
        $(this).hide();
    }
});

/*if (GM_getValue("plonk")){
    var oldPlonk = GM_getValue("plonk");
    for (var i = 0; i < plonk.length; i ++){
        if ($.inArray(plonk[i],oldPlonk) == -1)
            oldPlonk.push(plonk[i]);
    }
    GM_deleteValue("plonk");
    GM_setValue("plonk",oldPlonk);
}
else
    GM_setValue("plonk",plonk);*/