Display the remaining time of a YouTube video during playback.
< Обсуждения YouTube Time Remaining
Same for me..
WaterFox Classic Greasemonkey
the 1.8.0 version is still kicking don't know why he updated it now it's no longer works, fortunately i still have the 1.8 version lying around
the 1.8.0 version is still kicking don't know why he updated it now it's no longer works, fortunately i still have the 1.8 version lying around
Thnaks !
the 1.8.0 version work always.
About the problem:
It seems Youtube serve - randomly (?) - 2 different versions of the video page:
The script work with one and with the other not...
Its around the Info/descriptions block:
Difficult to remember (actually that's the "wrong" version of the video page.
I saw that because i tweak a lot this page with CSS and notice these changes.
:-)
Here a screenshot of on of alternate presentation with my CSS tweaks):
https://i.imgur.com/h8dXZHj.jpeg
The related div changed in it - I added an aqua dashed line for this CSS selector:
ytd-watch-metadata.watch-active-metadata[description-collapsed][smaller-yt-sans-light-title]
It should work again with version 1.9.1.
I appreciate you checking it and thanks for the feedback.
Thanks it work now (at least on the page served actually)
;-)
Note:
Can you give a class to your counter?
I need something like this as CSS selector:
div[style="display: inline-flex; font-size: 1.6rem; font-weight: 400; line-height: 2rem; color: rgb(233, 30, 99); margin-right: 1rem; min-width: 12rem;"]
I have seen the 2nd Style of page served by Youtube (i don't understand how they choose one or the other).
This one on Firefox Quantum.
Here a screenshot of it with your script working on it too (and my CSS Tweaks ...):
https://i.imgur.com/G2cSrmL.jpeg
I added the class 'time-remaining-renderer' in version 1.9.2
Thanks!
More easy to catch it for me!
;-)
Hmm ....
the class is added before your counter container and not to the container itself.
So their are now an empty container before it.
At least for the first type of page served.
I changed it again in 1.9.3. Try matching it with ytd-watch-metadata > #above-the-fold > .time-remaining-renderer
.
That's ok:
the class is added to your counter itself.
;-)
But the selector you give don't match, because they serve yet the 2nd type of page !!
In this version, the selector ytd-watch-metadata
exist but it is empty.
And #above-the-fold
don't exist...
These one, yes:
ytd-watch-metadata + .watch-active-metadata #info #info-contents .ytd-video-primary-info-renderer .time-remaining-renderer
OR
.watch-active-metadata #info #info-contents .ytd-video-primary-info-renderer .time-remaining-renderer
OR simply
.time-remaining-renderer
I rework my userstyle for Youtube and i notice something strange:
Now there are 2 .time-remaining-renderer ....
Test link:
https://www.youtube.com/watch?v=_xFyUn8gveI
Sometime one is empty :
Test Link:
https://www.youtube.com/watch?v=y95F3oiU7uY
My screenshots are tweaked by CSS to watch the problem....
:-)
No longer works since the yesterday's update