Currently the userscript has a single use of timestamps presented to humans: Rate limit end timestamp
const reset_human_datetime = new Date(reset * 1000).toLocaleString();
Eventually this could expand to other things:
Whatever format JS does it in is not my preferred format. It's also not going to be everyone's preferred format.
So it should be customizable. Have some presets to choose from, and customize it to hell if you want or something maybe.
JS doesn't really have much of a way of formatting dates and times, so a JS library might have to be pulled in instead (https://stackoverflow.com/questions/3552461/how-do-i-format-a-date-in-javascript/#3552493). Pulling in a JS library into a userscript might be a big and different endeavor though
Currently the userscript has a single use of timestamps presented to humans: Rate limit end timestamp
https://codeberg.org/jacksonchen666/userscripts/src/commit/73b14a93410084702ec678c8fb721aa56dffd9d2/github.com-notify-on-ai-files.user.js#L250
Eventually this could expand to other things:
- Commit dates
- Uh
Whatever format JS does it in is not my preferred format. It's also not going to be everyone's preferred format.
So it should be customizable. Have some presets to choose from, and customize it to hell if you want or something maybe.
JS doesn't really have much of a way of formatting dates and times, so a JS library might have to be pulled in instead (https://stackoverflow.com/questions/3552461/how-do-i-format-a-date-in-javascript/#3552493). Pulling in a JS library into a userscript might be a big and different endeavor though