Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
32 changes: 19 additions & 13 deletions js&css/extension/www.youtube.com/appearance/player/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
--------------------------------------------------------------*/
Expand Down