TrollBlock Plus

Blocks the comments of trolls

2015/03/29のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         TrollBlock Plus
// @namespace    https://greasyfork.org/en/users/9694-croned
// @version      2.5
// @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", "Kartia"];
 
console.log("TrollBlock Plus (by Croned) activated!");
 
setInterval(function() {scan();}, 10);
 
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();
                        }
                });
        }
}