Skip to content

Commit 8532c21

Browse files
author
ImprovedTube
authored
Merge pull request #3717 from Bingtagui404/fix/disable-sidebar-scroll
feat(sidebar): add toggle to disable sidebar independent scroll
2 parents 6de565e + 08a47d8 commit 8532c21

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

_locales/en/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@
413413
"description": {
414414
"message": "Description"
415415
},
416+
"disableSidebarScroll": {
417+
"message": "Disable sidebar scroll"
418+
},
416419
"description_ext": {
417420
"message": "YouTube, tidy & smart? Supercharge YouTube! Give it strong features, filter only the videos you want & exactly the look you like"
418421
},

js&css/extension/www.youtube.com/appearance/sidebar/sidebar.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,17 @@ html[data-page-type=video][it-no-page-margin='true'] ytd-browse > ytd-two-column
287287
max-width: auto !important;
288288
}
289289

290+
/*--------------------------------------------------------------
291+
# DISABLE SIDEBAR SCROLL
292+
--------------------------------------------------------------*/
293+
html[data-page-type=video][it-disable-sidebar-scroll='true']:not([it-comments-sidebar='true']) #secondary,
294+
html[data-page-type=video][it-disable-sidebar-scroll='true']:not([it-comments-sidebar='true']) #secondary-inner {
295+
position: static !important;
296+
overflow-y: visible !important;
297+
max-height: none !important;
298+
height: auto !important;
299+
}
300+
290301
/*--------------------------------------------------------------
291302
# MOVE SIDEBAR LEFT
292303
--------------------------------------------------------------*/

menu/skeleton-parts/appearance.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,10 @@ extension.skeleton.main.layers.section.appearance.on.click.sidebar = {
11241124
component: "switch",
11251125
text: 'hidePlaylist'
11261126
},
1127+
disable_sidebar_scroll: {
1128+
component: "switch",
1129+
text: "disableSidebarScroll"
1130+
},
11271131
hide_sidebar: {
11281132
component: "switch",
11291133
text: 'Hide_sidebar'

0 commit comments

Comments
 (0)