News for hackers. Stuff that matters.
Re:Wait, What's a Bookmarklet? by desertlounger on Wednesday October 25, 2023 @04:03PM (#38017571)
FWIW, javascript:// bookmarklets don't work on the standard Chrome home / new tab page, but data URL bookmarklets work everywhere. Here's my bookmarklet for Day Of Year...

data:text/html,<script>now=new Date();alert(`Today is DOY ${1+Math.floor((now.getTime()-new Date(now.getFullYear(),0,1).getTime())/8.64E7)}`);</script>

There are no comments on this comment yet.