TrollBlock Plus

Blocks the comments of trolls

Från och med 2015-03-13. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         TrollBlock Plus
// @namespace    https://greasyfork.org/en/users/9694-croned
// @version      2.3
// @description  Blocks the comments of trolls
// @author       Croned
// @match        https://epicmafia.com/*
// @grant        none
// ==/UserScript==
 
//Add the exact username of someone below that you want to block, with quotes surrounding the name and a comma      
var trolls = ["Anna", "Josh", "Trololomakinmoney", "Joshuazilla"];
 
console.log("TrollBlock Plus (by Croned) activated!");
 
setInterval(function() {scan();}, 1000);
 
function scan() {
        for (var i = 0; i < trolls.length; i++) {
                $(".commentinfo a.tt").each(function() {
                        if ($(this).html().trim() == trolls[i]) {
                            $(this).parents(".comment").hide();
                        }
                });
               
                $(".postuser a.tt").each(function() {
                        if ($(this).html().trim() == trolls[i]) {
                            $(this).parents(".post").hide();
                        }
                });
               
                $("b.name").each(function() {
                        if ($(this).html().trim() == trolls[i]) {
                            $(this).parents(".talk").hide();
                        }
                });
        }
        console.log("Scanned");
}