Skip to content

Instantly share code, notes, and snippets.

@mimonelu
Created January 8, 2015 04:27
Show Gist options
  • Save mimonelu/e5af079abe8cd028163e to your computer and use it in GitHub Desktop.
Save mimonelu/e5af079abe8cd028163e to your computer and use it in GitHub Desktop.
30 日分の日付を列挙するブックマークレット
javascript:N=30,D=["日","月","火","水","木","金","土"],d=new Date();prompt(null,Array.apply(null, Array(N)).map(function(a,i){i&&d.setDate(d.getDate()+1);return (("0"+(d.getMonth()+1)).slice(-2))+"/"+(("0"+d.getDate()).slice(-2))+" ("+D[d.getDay()]+") ";}).join("\n"));void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment