code-charity / code-charity/youtube

🐞Playlist repeat button bug.

Open
#2,883 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug good first issue help wanted up-for-grabs
Dominant language
JavaScript
Stars
4.6k
Forks
996
Avg merge
2d 15h
Merged PRs (30d)
7

Description

Concise Description

The autoplay button on playlist stops working, when the browser tab stops being active.

Image
Notes:
The repeat video feature (under clicking the repeat button a second time) works fine.
The problem doesn't occur, when they tab is a separate window minimized.

Browser/s

Chrome

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?
  1. Toggle the repeat playlist on. 2. Be close to end of the last video on the playlist. 3. Switch to another tab until the video ends. 4. The next video ends up being Youtube's next suggested video instead of the first video of the playlist. (the bug)
Since when?

Idk. Just started using the feature.

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)

No response

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

None

Expected preferred behavior:

The feature should work even, when the tab isn't an active tab.

ImprovedTube Version

4.1188

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

improvedtube (1).json

Your YouTube-Document

No response

OS / Device:

Windows 10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Chrome with playlist repeat enabled, switching to another tab near the end of the final video. Trace the extension's playlist autoplay handling and compare behavior in an active tab with a background tab. Done means the first playlist video plays next even when the tab is inactive, without breaking repeat-video behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.