Skip to content

Instantly share code, notes, and snippets.

@travelton
Last active April 1, 2016 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travelton/bdb31af5f52e7bfb37c083c9500a19e4 to your computer and use it in GitHub Desktop.
Save travelton/bdb31af5f52e7bfb37c083c9500a19e4 to your computer and use it in GitHub Desktop.
$(document).on('DOMNodeInserted', function(e) {
$('.robin-message--message', e.currentTarget).each(function() {
if (/[\u0080-\uFFFF]/.test($(this).text())) {
$(this).parent().remove();
}
if($(this).text().indexOf("Robin Autovoter") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("voted") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("what color") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("PinataRanch") > 0 || $(this).text().indexOf("PINATARANCH113") > 0 ){
$(this).parent().remove();
}
if($(this).text().indexOf("OobB") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("sexbots") > 0){
$(this).parent().remove();
}
if($(this).text().indexOf("S6") > 0){
$(this).parent().remove();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment