1
2
Fork
You've already forked userscripts
1

Date and time formatting preferences #27

Open
opened 2026年06月24日 06:59:30 +02:00 by jacksonchen666 · 0 comments

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:

  • 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

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
Sign in to join this conversation.
No Branch/Tag specified
main
navigation-api
dialog-box
dev
ai-files-gitignore-check
github-ai-use-0.4.0
github-ai-use-0.1
github-ai-use-0.1.1
github-ai-use-0.1.2
github-ai-use-0.1.3
github-ai-use-0.1.4
github-ai-use-0.1.5
github-ai-use-0.1.6
github-ai-use-0.1.7
github-ai-use-0.1.8
github-ai-use-0.1.9
github-ai-use-0.1.10
github-ai-use-0.2.0
github-ai-use-0.3.0
github-ai-use-0.3.1
github-ai-use-0.3.2
github-ai-use-0.3.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
Reference
jacksonchen666/userscripts#27
Reference in a new issue
jacksonchen666/userscripts
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?