Skip to content

Instantly share code, notes, and snippets.

@thisisbrians
Created December 11, 2015 16:40
Show Gist options
  • Save thisisbrians/da5d4c6e5291b9b47b4d to your computer and use it in GitHub Desktop.
Save thisisbrians/da5d4c6e5291b9b47b4d to your computer and use it in GitHub Desktop.
jQuery Trump-Blocker
$(":contains(Trump),:contains(TRUMP),:contains(trump)").filter(function(){return $(this).clone().children().remove().end().text().toLowerCase().indexOf("trump")!=-1;}).remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment