Reddit Robin Filter

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

Versione datata 01/04/2016. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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;
};