From 703e9b84090eb3a74b530a3705ca8ae4b32a300d Mon Sep 17 00:00:00 2001 From: RobinWitch <824970181@qq.com> Date: Mon, 6 Jul 2026 23:20:41 +0800 Subject: [PATCH 1/2] Fix fullscreen scroll lock --- _locales/en/messages.json | 2 +- .../appearance/player/player.css | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 686f493a0..03115bbc3 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -751,7 +751,7 @@ "message": "Hide right buttons" }, "hideScrollForDetails": { - "message": "Hide «Scroll for details»" + "message": "Disable fullscreen scrolling" }, "hideSkipOverlay": { "message": "Hide 5 second skip animation" diff --git a/js&css/extension/www.youtube.com/appearance/player/player.css b/js&css/extension/www.youtube.com/appearance/player/player.css index 8273547cc..ae98233cb 100644 --- a/js&css/extension/www.youtube.com/appearance/player/player.css +++ b/js&css/extension/www.youtube.com/appearance/player/player.css @@ -292,6 +292,24 @@ html[it-hide-scroll-for-details='true'] button.ytp-fullerscreen-edu-button { display: none !important; } +html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]), +html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]), +html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) { + overflow: hidden !important; + overscroll-behavior: none !important; +} + +html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]) body, +html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]) body, +html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) body, +html[it-hide-scroll-for-details='true'] ytd-app[player-fullscreen_], +html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen], +html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen] #columns { + overflow: hidden !important; + overscroll-behavior: none !important; + max-height: 100vh !important; +} + html[it-hide-scroll-for-details='true'] ytd-app[scrolling_] { overflow: hidden !important; } @@ -716,6 +734,24 @@ html[it-hide-scroll-for-details='true'] button.ytp-fullerscreen-edu-button { display: none !important; } +html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]), +html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]), +html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) { + overflow: hidden !important; + overscroll-behavior: none !important; +} + +html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]) body, +html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]) body, +html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) body, +html[it-hide-scroll-for-details='true'] ytd-app[player-fullscreen_], +html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen], +html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen] #columns { + overflow: hidden !important; + overscroll-behavior: none !important; + max-height: 100vh !important; +} + html[it-hide-scroll-for-details='true'] ytd-app[scrolling_] { overflow: hidden !important; } From 630303442b400595dbe79edb94d0a3bd842d330b Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 6 Jul 2026 18:11:42 +0200 Subject: [PATCH 2/2] Update player.css --- .../appearance/player/player.css | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/js&css/extension/www.youtube.com/appearance/player/player.css b/js&css/extension/www.youtube.com/appearance/player/player.css index ae98233cb..6957ef59a 100644 --- a/js&css/extension/www.youtube.com/appearance/player/player.css +++ b/js&css/extension/www.youtube.com/appearance/player/player.css @@ -285,7 +285,7 @@ html[it-player-show-cards-on-mouse-hover='true'] .html5-video-player:hover .ytp- } /*-------------------------------------------------------------- -# HIDE "SCROLL FOR DETAILS" +# Disable fullscreen scrolling (formerly HIDE "SCROLL FOR DETAILS" - To-Do: remove the word Details from the translations ) --------------------------------------------------------------*/ html[it-hide-scroll-for-details='true'] button.ytp-fullerscreen-edu-button { @@ -726,36 +726,6 @@ html[data-page-type=video][it-hide-progress-preview='true'] .ytp-chapter-hover-c pointer-events: none !important; } -/*-------------------------------------------------------------- -# HIDE "SCROLL FOR DETAILS" ---------------------------------------------------------------*/ - -html[it-hide-scroll-for-details='true'] button.ytp-fullerscreen-edu-button { - display: none !important; -} - -html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]), -html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]), -html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) { - overflow: hidden !important; - overscroll-behavior: none !important; -} - -html[it-hide-scroll-for-details='true']:has(ytd-watch-flexy[fullscreen]) body, -html[it-hide-scroll-for-details='true']:has(ytd-app[player-fullscreen_]) body, -html[it-hide-scroll-for-details='true']:has(.html5-video-player.ytp-fullscreen) body, -html[it-hide-scroll-for-details='true'] ytd-app[player-fullscreen_], -html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen], -html[it-hide-scroll-for-details='true'] ytd-watch-flexy[fullscreen] #columns { - overflow: hidden !important; - overscroll-behavior: none !important; - max-height: 100vh !important; -} - -html[it-hide-scroll-for-details='true'] ytd-app[scrolling_] { - overflow: hidden !important; -} - /*-------------------------------------------------------------- # HIDE Includes Paid Promotion --------------------------------------------------------------*/