YouTube Time Remaining

Display the remaining time of a YouTube video during playback.

< 腳本YouTube Time Remaining的回應

提問/評論

wqz
§
發表於:2022-05-12

No longer works since the yesterday's update

§
發表於:2022-05-12

Same for me..
WaterFox Classic Greasemonkey

§
發表於:2022-05-13

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

§
發表於:2022-05-13

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.
:-)

§
發表於:2022-05-13

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]

stinkrock作者
§
發表於:2022-05-14

It should work again with version 1.9.1.

I appreciate you checking it and thanks for the feedback.

§
發表於:2022-05-14

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;"]

§
發表於:2022-05-14
編輯:2022-05-14

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

stinkrock作者
§
發表於:2022-05-15

I added the class 'time-remaining-renderer' in version 1.9.2

§
發表於:2022-05-15

Thanks!
More easy to catch it for me!
;-)

§
發表於:2022-05-15
編輯:2022-05-15

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.

stinkrock作者
§
發表於:2022-05-17

I changed it again in 1.9.3. Try matching it with ytd-watch-metadata > #above-the-fold > .time-remaining-renderer.

§
發表於:2022-05-17
編輯:2022-05-17

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

§
發表於:2022-11-03
編輯:2022-11-03

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....
:-)

發表回覆

登入以回覆