AW: Forum ignorieren Funktion erweitern...
Für Chrome Nutzer gibt es
:-)
Für Chrome Nutzer gibt es
:-)
// ==UserScript==
// @name vBulletin Total Ignore
// @include */index.php*
// @include */search.php*
// @include */forum.php*
// @include */forumdisplay.php*
// @include */showthread.php*
// @include */showpost.php*
// @include */private.php*
// @include */member.php*
// @version 2.1.2
// @date 2014-01-27
// @creator Tjololo
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @namespace https://greasyfork.org/users/710
// @description Remove all mention of ignored people (except thanks)
// @grant GM_log
// ==/UserScript==
var plonk = (localStorage["plonk"] ? localStorage["plonk"].split(',') : new Array());
if (jQuery.inArray("OTER",plonk) == -1)
{plonk.push("OTER")};
localStorage["plonk"] = plonk;
console.log("Array of Ignored " + plonk);
$('li[class*=postbitignored]').each(function() {
var name = $(this).find(".postbody").find("strong").html();
if ($.inArray(name,plonk) == -1)
plonk.push(name);
localStorage["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();
}
});
$('li[class*="threadbi"]').each(function() {
var name = $(this).find(".username").find("strong").html();
if ($.inArray(name,plonk) !== -1){
$(this).hide();
console.log("hiding "+this)};
});
$('li[class*="threadbi"]').each(function() {
var name = $(this).find(".author").find('a[href^="https://www.gleitschirmdrachenforum.de/member.php/"]').html();
if ($.inArray(name,plonk) !== -1){
$(this).hide();
console.log("hiding "+this)};
});
$('li[class*="threadbi"]').each(function() {
var name = $(this).find(".memberaction").find("strong").html();
if ($.inArray(name,plonk) !== -1){
$(this).hide();
console.log("hiding "+this)};
});
$('li[class*="threadbi"]').each(function() {
var name = $(this).find(".threadlastpost").find('a[href^="https://www.gleitschirmdrachenforum.de/member.php/"]').html();
if ($.inArray(name,plonk) !== -1){
$(this).hide();
console.log("hiding "+this)};
});
$('li[class*="forumbit_post"]').each(function() {
var name = $(this).find(".username").find("strong").html();
if ($.inArray(name,plonk) !== -1){
$(this).hide();
console.log("hiding "+this)};
});
$("#pagination_top").before($("<a></a>").addClass("newcontent_textcontrol").text("Clear totalignore list").click(function() { if(confirm("Clear the totalignore list? It will add each user it finds an ignored stub for.")) localStorage.removeItem("plonk"); }));
Kommentar