document.querySelector('#div.ytp-time-display.notranslate').innerText;
YouTubeTime.kmmacros (1.8 KB)
document.querySelector('#div.ytp-time-display.notranslate').innerText;
YouTubeTime.kmmacros (1.8 KB)
I changed the title, because this isn't about JXA. It's straight JavaScript.
This one worked for me:
document.querySelector("#movie_player > div.ytp-chrome-bottom > div.ytp-progress-bar-container > div.ytp-bound-time-right").innerText;
Can you take a screenshot? I used your code, but it is still incorrect.
Thank you, it is now running, thank you very much.