Code Monkey home page Code Monkey logo

Comments (4)

clicky6 avatar clicky6 commented on June 27, 2024

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

from youtube.

MisterTickle avatar MisterTickle commented on June 27, 2024

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.

from youtube.

clicky6 avatar clicky6 commented on June 27, 2024

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.

from youtube.

MisterTickle avatar MisterTickle commented on June 27, 2024

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

from youtube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.