caps lock day

today is caps lock day. one of the few things i hate more than caps lock day is when someone puts up signs around the office claiming it’s caps lock day in comic fucking sans ms. so i whipped up a quick easter-egg. include the following code somewhere in your javascript files and enjoy the fallout every caps lock day.

(function() {
   var d = new Date();
   if( d.getMonth() == 5 && d.getDate() == 28 || d.getMonth() == 9 && d.getDate() == 22 ) {
      var bodyStyle = document.querySelector('body').style;
      bodyStyle.textTransform = 'uppercase';
      bodyStyle.fontFamily = '"comic sans ms", fantasy' });

alternatively, you could use this bookmarklet: ALL CAPS, BABY, YEAH!.