Reddit Robin Filter

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

Fra og med 01.04.2016. Se den nyeste version.

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 or Violentmonkey 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         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;
};