Reddit Robin Filter

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

01.04.2016 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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