Reddit Robin Filter

Filters comments. edit the filter array to add more filters. works on usernames and chat.

Stan na 01-04-2016. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Reddit Robin Filter
// @namespace    http://kmcgurty.com
// @version      1
// @description  Filters comments. edit the filter array to add more filters. works on usernames and chat.
// @author       Kmc - [email protected]
// @match        https://www.reddit.com/robin/
// ==/UserScript==

var filter = ["卐", "ヽ༼ຈل͜ຈ༽ノ", "[Robin Autovoter", "voted to", "GREAT again", "Antrix_of_Hate"];
 
var filterInterval = setInterval(doFilter, 50);
 
function doFilter(){
    for(var i = 0; i < filter.length; i++){
        var divs = $(".robin-message:contains('" + filter[i] + "')");
   
        for(var j = 0; j < divs.length; j++){
            $(divs[j]).find(".robin-message--message").replaceWith("<span class='deleted' style='color: rgba(0,0,0, .4);'>&#x3c;deleted&#x3e;</span>");
        }
    }
}
 
jQuery.expr[':'].Contains = function(a,i,m){
     return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0;
};