Skip to content

Instantly share code, notes, and snippets.

@sustained
Last active April 1, 2016 22:20
Show Gist options
  • Save sustained/f5cf40aa72700ca86836f5697b4fc720 to your computer and use it in GitHub Desktop.
Save sustained/f5cf40aa72700ca86836f5697b4fc720 to your computer and use it in GitHub Desktop.
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