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..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,13 +285,31 @@ 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 { 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; } @@ -708,18 +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'] ytd-app[scrolling_] { - overflow: hidden !important; -} - /*-------------------------------------------------------------- # HIDE Includes Paid Promotion --------------------------------------------------------------*/