Created
April 9, 2009 23:23
-
-
Save hokaccha/92818 to your computer and use it in GitHub Desktop.
This file contains 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
(function() { | |
var today = new Date(); | |
if (today.getDate() == 9 && today.getMonth() == 3) { | |
var head = document.getElementsByTagName('head')[0]; | |
var style = document.getElementsByTagName('style'); | |
for (var i = 0, len = style.length; i < len; i++) { | |
head.removeChild(style[0]); | |
} | |
var link = document.getElementsByTagName('link'); | |
for (var i = 0, len = link.length; i < len; i++) { | |
if (link[i].getAttribute('rel') == 'stylesheet') { | |
link[i].removeAttribute('href'); | |
} | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment