Skip to content

Fixed the remaining duration time bug.#2941

Merged
ImprovedTube merged 1 commit intocode-charity:masterfrom
wbalbo:fix-remaining-time
May 17, 2025
Merged

Fixed the remaining duration time bug.#2941
ImprovedTube merged 1 commit intocode-charity:masterfrom
wbalbo:fix-remaining-time

Conversation

@wbalbo
Copy link
Contributor

@wbalbo wbalbo commented May 17, 2025

This should solve the issues #2925, and #2935

Tested on both Edge and Chrome.

The change was literally adding a span inside the ytp-time-display class element, but also an important part was the code at the top of the function, which hides the div responsible for showing the "normal" duration time of the videos.

Once the toggle is off, this div should show normally as expected.

If the toggle is on and you change it to off, the changes will not affect the actual video in real time, and for this, a refresh on the page is necessary. I tried to solve this using CSS manipulation, but I got too many issues that were not worth the effort.

@wbalbo wbalbo self-assigned this May 17, 2025
@wbalbo wbalbo requested a review from ImprovedTube May 17, 2025 15:58
@wbalbo wbalbo changed the title Fixed the remaining duration bug. Fixed the remaining duration time bug. May 17, 2025
@ImprovedTube
Copy link
Member

This code is for (visual) feedback when switching off the JS features: https://github.com/code-charity/youtube/blob/fb9d22e5dd8a45236b512b6b0956124a4bc2bb28/js%26css/web-accessible/core.js#L413-L415

@ImprovedTube ImprovedTube merged commit 58333a7 into code-charity:master May 17, 2025
1 check passed
@MisterTickle
Copy link

Thank you very much @wbalbo ! I hope it can be rolled out soon. I had noticed this too.

@wbalbo wbalbo deleted the fix-remaining-time branch June 2, 2025 14:04
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.

3 participants