Last active
April 1, 2016 22:20
-
-
Save sustained/f5cf40aa72700ca86836f5697b4fc720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bannedUsers = [ | |
"dippy1169", | |
"dwelm", | |
"jdwilsh", | |
"Hobodudepwnz" | |
]; | |
var bannedStrings = [ | |
"voted to", | |
"Robin Autovoter", | |
"automatically voted", | |
"Autovoter", | |
"Mins remaining'", | |
"🅽", | |
"🅸", | |
"🅿", | |
"🅻", | |
"🅴", | |
"🅱", | |
"🆄", | |
"🆃", | |
'Ỏ̷͖͈̞̩͎̻̫̫̜͉̠̫͕̭̭̫̫̹̗̹͈̼̠̖͍͚̥͈̮̼͕̠̤̯̻̥̬̗̼̳̤̳̬̪̹͚̞̼̠͕̼̠̦͚̫͔̯̹͉͉̘͎͕̼̣̝͙̱̟̹̩̟̳̦̭͉̮̖̭̣̣̞̙̗̜̺̭̻̥͚͙̝̦̲̱͉͖͉̰̦͎̫̣̼͎͍̠̮͓̹̹͉̤' | |
]; | |
setInterval(function(){ | |
$(document).on("DOMNoteInserted", function() { | |
for (var i = 0; i < bannedUsers; i++) { | |
$("#robinChatMessageList .robin--username:contains(" + bannedUsers[i] + ")").parent().remove(); | |
} | |
}); | |
$( ".robin-message--message" ).each(function() { | |
var val = $( this ).html(); | |
for (var i = 0; i < bannedStrings; i++) { | |
if (val.indexOf(bannedStrings[i]) !== -1) { | |
$(this).parent().remove(); | |
} | |
} | |
}); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment