From 01fd20ccdbf5da00957e2264db3c148da5af9543 Mon Sep 17 00:00:00 2001 From: codex Date: Wed, 10 Jun 2026 20:38:54 +0200 Subject: [PATCH] Show blocked YouTube overlay immediately --- public/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index 3558e6f..79209b9 100644 --- a/public/app.js +++ b/public/app.js @@ -384,7 +384,6 @@ function setYoutubeStartPromptVisible(visible) { function requestYoutubePlayback(player, videoId, position) { const requestId = ++youtubePlaybackRequestId; const startedAt = Date.now(); - setYoutubeStartPromptVisible(false); for (const delay of [0, 150, 750, 1500, 3000]) { setTimeout(() => { @@ -578,6 +577,7 @@ async function applyWatchState(state, { suppressEvents = true } = {}) { if (youtubeReady) { if (shouldPlay) { + setYoutubeStartPromptVisible(true); const sameVideo = player.getVideoData?.().video_id === currentYoutubeVideoId; const playerState = player.getPlayerState?.(); if (sameVideo && ![YT.PlayerState.UNSTARTED, YT.PlayerState.CUED].includes(playerState)) {