From 314cfa6c65832aca5321153a6bdeb742a49f9805 Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 1 Jan 2026 02:13:24 +0700 Subject: [PATCH] Add strategic overlays to block YouTube UI elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implemented multiple overlay divs to prevent access to YouTube branding: - Top overlay blocks "Watch on YouTube" button and title overlay - Bottom-right overlay blocks YouTube logo - Full-screen overlay with context menu prevention blocks right-click - Set controls=0 parameter to hide YouTube controls completely - Keep YouTube API working for time tracking and chapter navigation This prevents users from: - Clicking "Watch on YouTube" button - Seeing YouTube logo - Copying video URL via context menu - Accessing YouTube native controls While maintaining: - Accurate time tracking via getCurrentTime() - Chapter jump functionality via seekTo() - Custom timeline with chapters - Fullscreen capability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/VideoPlayerWithChapters.tsx | 51 +++++++++++++++------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/src/components/VideoPlayerWithChapters.tsx b/src/components/VideoPlayerWithChapters.tsx index 2557fab..b4eb651 100644 --- a/src/components/VideoPlayerWithChapters.tsx +++ b/src/components/VideoPlayerWithChapters.tsx @@ -210,32 +210,51 @@ export const VideoPlayerWithChapters = forwardRef - {youtubeId && ( <>