Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Created April 9, 2009 23:23
Show Gist options
  • Save hokaccha/92818 to your computer and use it in GitHub Desktop.
Save hokaccha/92818 to your computer and use it in GitHub Desktop.
(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