youtube icon indicating copy to clipboard operation
youtube copied to clipboard

🐞Time remaining left on video, no longer showing after new youtube changes

Open Corruptinglyneedful opened this issue 4 weeks ago • 14 comments

Concise Description

It used to show the time left in the video and that has disappeared or bugged since Youtube shoved this new stupid update out.

Browser/s

No response

Other Browser:

Firefox 145.0esr

'Steps to reproduce' - Which of our features is required for the bug to happen?

enable time left in video go to video

Since when?

Possibly since Youtube had an update. I just noticed today.

Does the bug still happen when you log out of YouTube?

None

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

No response

Are any errors or related log-messages shown in the Browser-Console? (F12)

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). Status code: (null). TypeError: can't access property "addEventListener", searchButton is null general.js:568:4 Uncaught TypeError: can't access property "addEventListener", e.detail is null y https://www.youtube.com/watch?v=jH3zvmNcxIs:1 cZ https://www.youtube.com/s//ytmainappweb//js/k=ytmainappweb.kevlar_base.en_US.P8uo_JeY0QI.es5.O/am=AAAAEACA/d=0/br=1/rs=AGKMywHbfwAjgFiCWO4qtlWOoAZ2Myj5ww:2492 U4 https://www.youtube.com/s//ytmainappweb//js/k=ytmainappweb.kevlar_base.en_US.P8uo_JeY0QI.es5.O/am=AAAAEACA/d=0/br=1/rs=AGKMywHbfwAjgFiCWO4qtlWOoAZ2Myj5ww:1156 cZ https://www.youtube.com/s//ytmainappweb//js/k=ytmainappweb.kevlar_base.en_US.P8uo_JeY0QI.es5.O/am=AAAAEACA/d=0/br=1/rs=AGKMywHbfwAjgFiCWO4qtlWOoAZ2Myj5ww:2492 update https://www.youtube.com/s//ytmainappweb//js/k=ytmainappweb.kevlar_base.en_US.P8uo_JeY0QI.es5.O/am=AAAAEACA/d=0/br=1/rs=AGKMywHbfwAjgFiCWO4qtlWOoAZ2Myj5ww:13837 watch:1:4130 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). Status code: (null). Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). Status code: (null). Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). Status code: (null).

Tested as the only active extension? (incognito mode or another browser users):

Nope cause I know Youtube did it. It was working fine before.

Expected preferred behavior:

show the remaining time left on an active video

ImprovedTube Version

latest

Your Settings (From the Extension's -Hamburger menu > Settings > Backup & reset > Export settings)

Setting for the bug.json

OS / Device:

Windows 10 22H2

Corruptinglyneedful avatar Nov 25 '25 03:11 Corruptinglyneedful

Just came here to make the same bug report. When the "Show video remaining duration" option under "Appearance > Player" is enabled, the player fails to display timestamps. I've observed this in both Firefox and Chrome.

With the option disabled: https://i.imgur.com/EqTimaX.png

And with it enabled: https://i.imgur.com/DO3Cu8K.png

Note the bottom-left corner, where the first image shows the timestamp but the second does not.

(Additionally, clicking on the chapter title next to the timestamp doesn't work, but I can't figure out why, even with the extension disabled.)

MarHelmer avatar Nov 25 '25 04:11 MarHelmer

Same issue here, using Brave 1.84.141 - enabling the "show remaining duration" option consistently makes the elapsed and total time disappear, and disabling it consistently makes them show up again.

archaicmeander avatar Nov 25 '25 05:11 archaicmeander

Having the exact same issue on Vivaldi on MacOS.

Anything-Random avatar Nov 25 '25 08:11 Anything-Random

same issue using Opera GX on windows 25H2

Sioscottecs23 avatar Nov 25 '25 15:11 Sioscottecs23

I got Same issue

njmani007 avatar Nov 26 '25 17:11 njmani007

Same here, I bet YouTube is doing stuff in the background, trying to block adblockers, updated some code and broke it

AVABUK11 avatar Nov 27 '25 19:11 AVABUK11

YouTube has been updating the player UI. They recently changed the time display on the player to be clickable like a button. It will now show the time remaining if you click the time display, like on mobile YouTube. That's likely the breaking change.

tommyhearns avatar Nov 28 '25 14:11 tommyhearns

Anyway, do you guys have any idea when this might be resolved?

Lucas-Zxc avatar Nov 28 '25 14:11 Lucas-Zxc

YouTube has been updating the player UI. They recently changed the time display on the player to be clickable like a button. It will now show the time remaining if you click the time display, like on mobile YouTube. That's likely the breaking change.

That doesn't work for me though.

Corruptinglyneedful avatar Nov 29 '25 00:11 Corruptinglyneedful

YouTube has been updating the player UI. They recently changed the time display on the player to be clickable like a button. It will now show the time remaining if you click the time display, like on mobile YouTube. That's likely the breaking change.

That doesn't work for me though.

You need to turn off the extension to see the pure YouTube functionality. Also, I have premium, so maybe I'm seeing additional features. There is always that chance.

tommyhearns avatar Nov 29 '25 15:11 tommyhearns

I don't want pure Youtube functionality. I want my extension to work right.

On Sat, Nov 29, 2025 at 9:29 AM Tommy Hearns @.***> wrote:

tommyhearns left a comment (code-charity/youtube#3403) https://github.com/code-charity/youtube/issues/3403#issuecomment-3591752518

YouTube has been updating the player UI. They recently changed the time display on the player to be clickable like a button. It will now show the time remaining if you click the time display, like on mobile YouTube. That's likely the breaking change.

That doesn't work for me though.

You need to turn off the extension to see the pure YouTube functionality. Also, I have premium, so maybe I'm seeing additional features. There is always that chance.

— Reply to this email directly, view it on GitHub https://github.com/code-charity/youtube/issues/3403#issuecomment-3591752518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMIFZXWC7Q5ARJ2LRQDKAD37G3W7AVCNFSM6AAAAACNDBEZSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKOJRG42TENJRHA . You are receiving this because you authored the thread.Message ID: @.***>

Corruptinglyneedful avatar Nov 29 '25 16:11 Corruptinglyneedful

Yes, we all wish the extension was working. But it's not due to changes from YouTube. I'm just attempting to find a root cause for the break. No one is saying to turn it off. At the same time, the time display is completely broken. If the extension is enabled, the time doesn't even show right now. And I'm just positing it is likely because the way the time is displayed on the player has fundamentally changed, which has probably broken the extension functionality as the injected code from the extension no longer applies to the current construction of YouTube post changes where the time display now is a button on regular, non-extentioned YouTube.

tommyhearns avatar Nov 29 '25 17:11 tommyhearns

Yes, we all wish the extension was working. But it's not due to changes from YouTube. I'm just attempting to find a root cause for the break. No one is saying to turn it off. At the same time, the time display is completely broken. If the extension is enabled, the time doesn't even show right now. And I'm just positing it is likely because the way the time is displayed on the player has fundamentally changed, which has probably broken the extension functionality as the injected code from the extension no longer applies to the current construction of YouTube post changes where the time display now is a button on regular, non-extentioned YouTube.

My time display isn't broken for the video, only for the remaining time.

The root cause is Youtube changing stuff when it wasn't necessary.

Corruptinglyneedful avatar Nov 30 '25 01:11 Corruptinglyneedful

Not sure if this helps at all, but with the extension enabled, display: none !important is added to the .ytp-time-contents element, every second or so. If I untick this style in the DOM inspector, it is re-ticked almost immediately.

With the extension disabled, this manipulation no longer happens.

Behaviour seems to come from https://github.com/code-charity/youtube/blob/17f686bbc379b2f9ae8ccaa3f62b0fb50f28c857/js%26css/web-accessible/www.youtube.com/appearance.js#L165, which exists in the function ImprovedTube.playerRemainingDuration() and is called from...

  • https://github.com/code-charity/youtube/blob/master/js%26css/web-accessible/functions.js#L438
  • https://github.com/code-charity/youtube/blob/master/js%26css/web-accessible/core.js#L451

I have no experience with coding this extension, so I could be misreading this but, further down, there is https://github.com/code-charity/youtube/blob/17f686bbc379b2f9ae8ccaa3f62b0fb50f28c857/js%26css/web-accessible/www.youtube.com/appearance.js#L173

This appears to be trying to add the custom time element to an already-existing <span> directly under the .ytp-time-display element but, for me†, there is no initial span here, just a div.ytp-time-wrapper. Perhaps the span.ytp-time-remaining element the extension creates should be added directly to .ytp-time-display (or to its first visible child)?

If I manually add a <span class="ytp-time-remaining-duration"> to div.ytp-time-wrapper using the DOM inspector, it updates correctly (at least as far as I would expect it to) and is not hidden any more.

†(I note that I run with a lot of other extensions which may be altering the default markup, so what I have suggested might not apply in all cases.)

jimbobmcgee avatar Dec 08 '25 22:12 jimbobmcgee