code-charity / youtube

[top~1 open YouTube & Video web-extension] Enrich your experience & choice! 🧰100+clever features📌set&forget📌Longest-standing(yet rare&tough alone. Please help/join🧩us👨‍👩‍👧‍👧) ..⋮ {playback|content discovery|player|extra buttons|distractions|related videos|shorts|ads|quality|codec|full tab|full screen}
http://improvedtube.com
Other
3.29k stars 498 forks source link

Add Option to show Absolute dates, not Relative dates, in playlists and main Details #2352

Open MisterTickle opened 2 weeks ago

MisterTickle commented 2 weeks ago

PROBLEM: I hate seeing vague, "friendly" relative dates in my playlists. Example when I've sorted a playlist by published date, it's still horrible. This is shown in the information for each video. Title of Video 1 - Channel - Views - Uploaded 1 week ago Title of Video 2 - Channel - Views - Uploaded 4 days ago Title of Video 3 - Channel - Views - Uploaded 4 days ago Title of Video 4 - Channel - Views - Uploaded 2 hours ago Title of Video 5 - Channel - Views - Uploaded 2 hours ago

Were those two "4 days ago" videos uploaded 1 minute apart, or 23minutes and 59 seconds apart? There's no way to tell. I hate this!

It is also shown in the "how long ago" a video was uploaded in the MAIN display panel in the DETAILS for each ago. There is an option to show the date, and the day of the week - but I want to see the EXACT date and time. Is this possible please?

SOLUTION:
I would like to see the EXACT dates AND times displayed, like this, with the full date including the day, and the month names, and the "st", "nd", "rd", "th": Title of Video 1 - Channel - Views - Uploaded Sun 2nd Jun 2024 13:45 Title of Video 2 - Channel - Views - Uploaded Wed 5th Jun 2024 08:35 Title of Video 3 - Channel - Views - Uploaded Wed 5th Jun 2024 20:14 Title of Video 4 - Channel - Views - Uploaded Sun 9th Jun 2024 08:45 Title of Video 5 - Channel - Views - Uploaded Sun 9th Jun 2024 08:55

And in the main display details:

328,494 views Thurs 6 Jun 2024 16:45 ^^^ add Day and Time. (Sometimes the Day disappears, perhaps this is a bug. If I toggle "hide views count" a few times, then the Day comes back.)

SHORT Table (Summary)
Problem Dislike Relative Dates and Times
Solution Option to show Absolute Dates and Times
Alternatives
Scope
Side effects
Context
clicky6 commented 4 days ago

This userscript also does this job fine, You could try it in the meantime! https://greasyfork.org/en/scripts/493024-%E4%BB%A5-yyyy-mm-dd-%E6%98%BE%E7%A4%BA-youtube-%E7%9A%84%E8%A7%86%E9%A2%91%E4%B8%8A%E4%BC%A0%E6%97%A5%E6%9C%9F

MisterTickle commented 4 days ago

Thankyou, @clicky6 . That does changes dates to YYYY-MM-DD format. (Any format without month names is not a nice format, I always want to see month NAMES personally, so that there's 0% doubt which number is the date vs which number is the month. Remove all doubt, always use month names!)

But it doesn't display HH:MM times, so isn't what I want and does not do the job properly.

In the examples I've given and listed above for videos all updated on the same date, this script is a bit worse than before :(.

But thankyou for the suggestion and for the pointer, I may be able to modify that script for my own use.

clicky6 commented 4 days ago

Thankyou, @clicky6 . That does changes dates to YYYY-MM-DD format. (Any format without month names is not a nice format, I always want to see month NAMES personally, so that there's 0% doubt which number is the date vs which number is the month. Remove all doubt, always use month names!)

But it doesn't display HH:MM times, so isn't what I want and does not do the job properly.

In the examples I've given and listed above for videos all updated on the same date, this script is a bit worse than before :(.

The script can be modified to suit those like having month names & hh:mm time etc

Modified the isoToDate function with the help of AI to implement date format modification, then changed it to Tampermonkey format. You can customize the date format by modifying this function to suit your preferences.

MisterTickle commented 4 days ago

Thankyou @clicky6 ! I did manage to modify it while you were replying :)

I changed lines 123/4 to let options = { year: 'numeric', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', separator: '-' }; let lang = 'en-GB';

Very happy with the results! Thanks again

image