「今日は何の日?」ブックマークレット
生まれて初めて作ったブックマークレットは、日付を指定したWikipediaへのリンク。
名付けて「今日は何の日?」ブックマークレット。ひねりも何もない・・・。
そもそも、こんなのはとっくに誰かが作っていると思うけど、モノは試しということで自作してみた。
javascript:(function(){var theNow = new Date();var theM = theNow.getMonth()+1;var theD = theNow.getDate();location.href='http://ja.wikipedia.org/wiki/'+theM+'%E6%9C%88'+theD+'%E6%97%A5';})();
見やすいようにネストすると
javascript:( function(){ var theNow = new Date(); var theM = theNow.getMonth()+1; var theD = theNow.getDate(); location.href='http://ja.wikipedia.org/wiki/'+theM+'%E6%9C%88'+theD+'%E6%97%A5'; } )();
たったこれだけなのに作成時間10分。道は険しいぜ。