Skip to content

Show watched sections of a video on the seek bar - #4262

Open
Stiven-Gjekaj wants to merge 2 commits into
code-charity:masterfrom
Stiven-Gjekaj:feature/watched-sections-seek-bar
Open

Show watched sections of a video on the seek bar#4262
Stiven-Gjekaj wants to merge 2 commits into
code-charity:masterfrom
Stiven-Gjekaj:feature/watched-sections-seek-bar

Conversation

@Stiven-Gjekaj

Copy link
Copy Markdown
Contributor

Records the parts of a video that were actually played and paints them on the progress bar, so scattered sections of long videos and streams stay visible across sessions.

Playback is merged into ranges per video; seeking, ads, a paused player and streams without a known duration add nothing. The ranges of the 200 most recently watched videos are kept in extension storage.

The ranges are drawn per chapter below YouTube's own bars, which leaves the played and the buffered progress untouched. The feature is off by default and switchable under Appearance > Player.

Closes #4261

Records the parts of a video that were actually played and paints them on
the progress bar, so scattered sections of long videos and streams stay
visible across sessions.

Playback is merged into ranges per video; seeking, ads, a paused player
and streams without a known duration add nothing. The ranges of the 200
most recently watched videos are kept in extension storage.

The ranges are drawn per chapter below YouTube's own bars, which leaves
the played and the buffered progress untouched. The feature is off by
default and switchable under Appearance > Player.

Closes code-charity#4261
@Stiven-Gjekaj
Stiven-Gjekaj requested a review from dodieboy August 4, 2026 13:55
The player element is registered before its video element exists, so
initialising from that point could miss the first video of a page load.
The interval now starts right away and attaches the tracking once the
video shows up.
@Stiven-Gjekaj Stiven-Gjekaj self-assigned this Aug 8, 2026
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.

💡Display watched sections of the video on the seek bar

1 participant