Created
February 14, 2010 15:49
-
-
Save cbartlett/304099 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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