Skip to content

Conversation

@tWiLighT-xY91
Copy link
Contributor

Description:
This PR fixes an issue where enabling “Show video remaining duration” caused all player timestamps to disappear.

Recent YouTube player updates re-render the time display when internal text nodes are mutated.
The previous implementation modified .ytp-time-duration.textContent, which triggered the player to remove the entire time UI.

This change avoids mutating YouTube-owned nodes and instead injects a separate sibling element to display the remaining time, preserving the original current time and duration elements.

Tested on:

  • Chrome (latest)
  • Logged in and logged out

Reference:
Fixes:#3487

@ImprovedTube
Copy link
Member

hi, and thank you so much! @tWiLighT-xY91
there seem to be many automated changes of formatting characters. Can you skip them?

@tWiLighT-xY91
Copy link
Contributor Author

Sure, I shall do it and update it asap

@tWiLighT-xY91 tWiLighT-xY91 marked this pull request as draft December 29, 2025 13:23
@tWiLighT-xY91 tWiLighT-xY91 marked this pull request as ready for review December 29, 2025 20:57
@tWiLighT-xY91
Copy link
Contributor Author

Could you please check now and let me know? @ImprovedTube

@ImprovedTube
Copy link
Member

hi @tWiLighT-xY91
sorry for the delay, i mean the +977 −696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants