Skip to content

Instantly share code, notes, and snippets.

@cbartlett
Created February 14, 2010 15:49
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 cbartlett/304099 to your computer and use it in GitHub Desktop.
Save cbartlett/304099 to your computer and use it in GitHub Desktop.
var banList = ["valentine", "Valentine", "Valentine's","Valentines","valentine's","valentines","v-day","V-day","V-Day","vday","Vday","VDay","VALENTINE","VALENTINE'S"];
var allUpdates = document.getElementsByTagName('h3');
for (phrases in banList) {
for (eachUpdate in allUpdates) {
if (allUpdates[eachUpdate].innerHTML.match(banList[phrases])) {
allUpdates[eachUpdate].parentNode.parentNode.style.display = "none";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment