Skip to content

Prevent initial autoplay when disabled#3849

Open
KaannKara wants to merge 1 commit into
code-charity:masterfrom
KaannKara:codex/fix-initial-autoplay-1461
Open

Prevent initial autoplay when disabled#3849
KaannKara wants to merge 1 commit into
code-charity:masterfrom
KaannKara:codex/fix-initial-autoplay-1461

Conversation

@KaannKara
Copy link
Copy Markdown

Summary

  • install an early page-world play guard before YouTube can start the first watch-page playback
  • mirror the autoplay-disable setting into page localStorage for the early guard
  • add Jest coverage for blocked and allowed initial play calls

Fixes #1461

Testing

  • npm ci --silent
  • npm test -- --runInBand --json --outputFile=/tmp/youtube-jest-full2.json
  • git diff --check

@KaannKara KaannKara force-pushed the codex/fix-initial-autoplay-1461 branch from 30058de to 8226d7a Compare May 11, 2026 16:24
@ImprovedTube2
Copy link
Copy Markdown

hi and thank you @KaannKara
LLM issues.
Our timing is worth analyzing and tuning if you will.

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.

Disabled autoplay pauses a second into video instead of immediately preventing playback

2 participants