-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresize-youtube-grid.user.css
696 lines (609 loc) · 30.7 KB
/
resize-youtube-grid.user.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
/* ==UserStyle==
@name Resize YouTube Grid
@namespace Igusy
@version 2.2.1
@description style for youtube
@author Igusy
@license Unlicense
@preprocessor stylus
@var checkbox isGridOptionsEnabled "⬇️ Grid Options ⬇️" 1
@var checkbox isGridPaddingEnabled "・Padding (px)" 1
@var number gridPadding "└─ " [10, 0, 1000, 0.1, 'px']
@var checkbox isContentSizeEnabled "・Content Size (px)" 1
@var number contentWidth "├─ Width" [240, 0, 100000, 0.1, 'px']
@var number maxContentWidth "├─ Max Width" [300, 0, 100000, 0.1, 'px']
@var number contentSideMargin "├─ Margin Side" [5, 0, 10000, 0.1, 'px']
@var number contentBottomMargin "└─ Margin Bottom" [14, 0, 10000, 0.1, 'px']
@var checkbox isContentTextEnabled "・Text Size (rem)" 1
@var number titleText "├─ Title" [1.4, 0, 100, 0.01, 'rem']
@var number channelText "├─ Channel" [1.3, 0, 100, 0.01, 'rem']
@var number metaText "└─ Meta Text" [1.3, 0, 100, 0.01, 'rem']
@var checkbox isTitleLineClampEnabled "・Title Line Clamp" 1
@var range titleLineClamp "└─ " [3, 1, 5, 1]
@var checkbox isContentIconEnabled "・Channel Icon Size (rem)" 1
@var number channelIconSize "└─ " [3.40, 0, 100, 0.01, 'rem']
@var checkbox isContentMarginEnabled "・Details Margin (px)" 1
@var number marginTitleTop "├─ Title Top" [9, 0, 10000, 0.1, 'px']
@var number marginTitleBottom "├─ Title Bottom" [2, 0, 10000, 0.1, 'px']
@var number marginIconTop "├─ Avator Top" [9, 0, 10000, 0.1, 'px']
@var number marginIconRight "├─ Avator Right" [10, 0, 10000, 0.1, 'px']
@var number metaPaddingRight "└─ Padding Right" [20, 0, 10000, 0.1, 'px']
@var checkbox isContentMenuEnabled "・Menu Icon (px)" 1
@var number contentMenuSize "├─ Size" [30, 0, 1000, 0.1, 'px']
@var number contentMenuPosition "└─ Position" [-10, -1000, 1000, 0.1, 'px']
@var checkbox isOtherContentOptionEnabled "⬇️ Other Contents Options ⬇️" 0
@var checkbox isHorizontalContentEnabled "・Horizontal Contents Menu Position (px)" 1
@var number menuVerticalPosition "├─ Vertical" [-1, -1000, 1000, 0.1, 'px']
@var number menuHorizontalPosition "└─ Horizontal" [-5, -1000, 1000, 0.1, 'px']
@var checkbox isLimitShortsHeightEnabled "・Limiting Shorts Height" 1
@var checkbox isChannelPageEnabled "・Channel Page" 1
@var number channelGridWidth "└─ Grid Width" [90, 0, 100, 0.1, '%']
@var checkbox isRecommendVideoEnabled "・Recommended Videos on Channel Page" 1
@var checkbox recommendVideoWidth "└─ Use Grid Content Width" 1
@var checkbox isSearchResultEnabled "・Search Result" 1
@var checkbox searchResultWidth "└─ Use Grid Content Width" 1
@var checkbox isRoundnessOptionEnabled "⬇️ Other Roundness ⬇️" 0
@var number thumbnailRoundness "・Thumbnail (px)" [0, 0, 10000, 0.1, 'px']
@var number imagesRoundness "・Avator & Images (%)" [5, 0, 50, 0.1, '%']
@var number filterBarRoundness "・Filter Bar (px)" [0, 0, 1000, 0.1, 'px']
@var number buttonsRoundness "・Buttons (px)" [0, 0, 1000, 0.1, 'px']
@var number clickVideoRoundness "・Clicking Video (px)" [0, 0, 10000, 0.1, 'px']
@var number menuRoundness "・Menu (px)" [0, 0, 10000, 0.1, 'px']
@var number searchBarRoundness "・Search Bar (px)" [0, 0, 1000, 0.1, 'px']
@var number searchSuggestionRoundness "・Search Suggest (px)" [0, 0, 10000, 0.1, 'px']
@var number playerRoundness "・Player Roundness (px)" [0, 0, 100000, 0.1, 'px']
@var number channelPlayerRoundness "・Channel Page Player (px)" [0, 0, 10000, 0.1, 'px']
@var number descriptionRoundness "・Player Page Description (px)" [0, 0, 100000, 0.1, 'px']
@var checkbox isColorOptionEnabled "⬇️ Other Color Options ⬇️" 0
@var checkbox isHeaderColorEnabled "・Header" 0
@var color headerColor "├─ Color" #0f0f0fc9
@var number headerBlur "└─ Blur (px)" [8, 0, 100, 0.1, 'px']
@var checkbox isSearchBarColorEnabled "・Search Bar" 0
@var color searchBarColor "├─ Bar" #7a7a7a14
@var color searchBarBorderColor "├─ Border" #7a7a7a52
@var color searchButtonColor "├─ Button" #ffffff14
@var color suggestColor "├─ Suggest" #1e1e1e80
@var number suggestBlur "└─ Suggest Box Blur (px)" [20, 0, 100, 0.1, 'px']
@var checkbox isBarColorEnabled "・Bar" 0
@var color loadProgressBarColor "├─ Load Progress Bar" #e2e2e2
@var color seekBarColor "└─ Seek Bar" #e2e2e2
@var checkbox isPlayerPageEnabled "・Player Page" 1
@var color descriptionColor "├─ Description" #ffffff0a
@var color liveChatColor "└─ Live Chat" #0000004d
@var checkbox isBeforeSubButtonColorEnabled "・Button Before Subscription" 0
@var color subColorBefore "├─ Text color" #f1f1f1
@var color subBackgroundBefore "└─ Background" #ffffff1a
@var checkbox isHideOptionEnabled "⬇️ Hide Options ⬇️" 0
@var checkbox hideFilterBar "・Filter bar" 0
@var checkbox hideVoiceSearch "・Voice Search" 1
@var checkbox hideCreateButton "・Create button" 0
@var checkbox description "・Description" 0
@var checkbox shortRemix "├─ Shorts Remix" 1
@var checkbox hideHorizontalDesc "├─ Horizontal Card List (Music?)"0
@var checkbox hideYTMusicButton "├─ YouTube Music Button" 1
@var checkbox transcription "├─ Transcription" 1
@var checkbox channelDesctiption "├─ Channel" 1
@var checkbox socialLinks "├─ Social Links" 1
@var checkbox videosDescription "├─ Videos" 1
@var checkbox hideShopDesc "└─ Shop?" 1
@var checkbox hideShorts "・Shorts" 0
@var checkbox homeShelf "├─ In grid" 1
@var checkbox hideShortsSidebar "└─ Sidebar" 1
@var checkbox isExpandedSidebarEnable "⬇️ Expanded Sidebar ⬇️" 0
@var checkbox isSidebarWidthEnabled "・Width (px)" 1
@var number sidebarWidth "└─ " [210, 0, 100000, 0.1, 'px']
@var checkbox isSidebarInnerWidthEnabled "・Inner Width" 1
@var checkbox sidebarInnerWidth "├─ 100% Width" 1
@var number sidebarPadding "└─ Padding (px)" [9, 0, 10000, 0.1, 'px']
@var checkbox isSidebarItemEnabled "・Items" 1
@var number sidebarItemHeight "├─ Height (px)" [40, 0, 1000, 0.1, 'px']
@var number sidebarItemPadding "├─ Padding (px)" [3, 0, 1000, 0.1, 'px']
@var number sidebarItemSectionFontSize "├─ Section Title Font Size (rem)" [1.5, 0, 100, 0.01, 'rem']
@var range sidebarItemTitleLineClamp "├─ Title Line Clamp" [2, 1, 4, 1]
@var number sidebarItemFontSize "├─ Font Size (rem)" [1.35, 0, 100, 0.01, 'rem']
@var number sidebarIconMargin "├─ Icon Margin (px)" [15, 0, 1000, 0.1, 'px']
@var number sidebarIconSize "├─ Icon Size (px)" [22, 0, 1000, 0.1, 'px']
@var number sidebarItemRoundness "└─ Roundness (px)" [0, 0, 1000, 0.1, 'px']
==/UserStyle== */
@-moz-document url-prefix("https://www.youtube.com/") {
/* YouTube Grid Contents */
if(isGridOptionsEnabled){
/* Grid padding */
if(isGridPaddingEnabled){
#contents.ytd-rich-grid-renderer{
padding-right: gridPadding !important;
padding-left: gridPadding !important;
width: auto !important;
}
}
/* Contents width */
if(isContentSizeEnabled){
ytd-rich-item-renderer[rendered-from-rich-grid]{
width: contentWidth !important;/**/
max-width: maxContentWidth!important;/**/
flex: 1 0 auto !important;/**/
margin: 0px contentSideMargin contentBottomMargin contentSideMargin !important;
}
ytd-ghost-grid-renderer{
display: none !important;
}
#contents.ytd-rich-grid-renderer{
justify-content: center !important;
}
ytd-continuation-item-renderer{
min-width: contentWidth !important;
flex: 0 0 0 !important;
height: auto !important;
justify-content: center;
}
#attached-survey.ytd-rich-grid-media{
display: none !important;
}
ytd-rich-section-renderer:has(ytd-inline-survey-renderer){
display:none !important;
}
}
/* Contents text size */
if(isContentTextEnabled){
#video-title.ytd-rich-grid-media{
font-size: titleText !important;
}
ytd-rich-grid-renderer #text.ytd-channel-name{
font-size: channelText !important;
}
ytd-video-meta-block[rich-meta] #metadata-line.ytd-video-meta-block{
font-size: metaText !important;
}
/* Play list */
.yt-lockup-metadata-view-model-wiz--standard .yt-lockup-metadata-view-model-wiz__title{
font-size: titleText !important;
}
.yt-content-metadata-view-model-wiz--medium-text .yt-content-metadata-view-model-wiz__metadata-text{
font-size: metaText !important;
}
}
/* title line clamp */
if(isTitleLineClampEnabled){
#video-title.ytd-rich-grid-media{
-webkit-line-clamp: titleLineClamp !important;
max-height: fit-content !important;
}
}
/* Channel icon size */
if(isContentIconEnabled){
ytd-rich-grid-renderer .yt-spec-avatar-shape--avatar-size-medium{
width: channelIconSize !important;
height: channelIconSize !important;
}
ytd-rich-grid-renderer .yt-spec-avatar-shape--cairo-refresh.yt-spec-avatar-shape--live-ring::after{
width: channelIconSize !important;
height: channelIconSize !important;
inset: auto !important;
}
}
/* Contents margin size */
if(isContentMarginEnabled){
h3.ytd-rich-grid-media{
margin: marginTitleTop 0 marginTitleBottom 0 !important
}
#avatar-container.ytd-rich-grid-media{
margin-top: marginIconTop !important;
margin-right: marginIconRight !important;
}
#meta.ytd-rich-grid-media{
padding-right: metaPaddingRight !important;
}
}
if(isContentMenuEnabled){
ytd-menu-renderer.ytd-rich-grid-media{
right: contentMenuPosition !important;
}
ytd-menu-renderer .ytd-menu-renderer[style-target=button]{
width: contentMenuSize !important;
height: contentMenuSize !important;
}
}
}
if(isOtherContentOptionEnabled){
if(isHorizontalContentEnabled){
ytd-menu-renderer.ytd-grid-video-renderer{
top: menuVerticalPosition !important;
right: menuHorizontalPosition !important;
}
}
if(isLimitShortsHeightEnabled){
.shortsLockupViewModelHostThumbnailContainerCustomDimensions{
max-height: (contentWidth / 16) * 9 !important;
}
}
if(isChannelPageEnabled){
ytd-two-column-browse-results-renderer.grid:not(.grid-disabled){
max-width: channelGridWidth !important;
}
}
if(isRecommendVideoEnabled){
if(recommendVideoWidth){
yt-horizontal-list-renderer[should-use-mixed-list-height] .shortsLockupViewModelHostThumbnailContainerCustomDimensions{
height: (contentWidth / 16) * 9 !important;
}
yt-horizontal-list-renderer[should-use-mixed-list-height]{
--ytd-grid-video-width: contentWidth !important;
--ytd-grid-video-thumbnail-height: (contentWidth / 16) * 9 !important;
}
}
}
if(isSearchResultEnabled){
if(searchResultWidth){
ytd-search ytd-video-renderer[use-bigger-thumbs][bigger-thumbs-style="BIG"] ytd-thumbnail.ytd-video-renderer{
max-width: maxContentWidth !important;
width: contentWidth !important;
}
ytd-search .yt-collection-thumbnail-view-model,ytd-search .yt-lockup-view-model-wiz__content-image{
max-width: maxContentWidth !important;
width: contentWidth !important;
flex: auto !important;
}
ytd-search .yt-lockup-view-model-wiz--horizontal .yt-lockup-view-model-wiz__content-image{
flex: auto !important;
}
ytd-search ytd-promoted-sparkles-web-renderer[web-search-layout][use-bigger-thumbs][bigger-thumbs-style="BIG"] #thumbnail-container.ytd-promoted-sparkles-web-renderer{
max-width: maxContentWidth !important;
width: contentWidth !important;
}
ytd-search ytd-channel-renderer[use-bigger-thumbs][bigger-thumb-style="BIG"] #avatar-section.ytd-channel-renderer{
max-width: maxContentWidth !important;
width: contentWidth !important;
}
ytd-promoted-video-renderer[use-bigger-thumbs][bigger-thumbs-style="BIG"] ytd-thumbnail.ytd-promoted-video-renderer{
max-width:maxContentWidth !important;
width: contentWidth !important;
}
}
}
}
if(isRoundnessOptionEnabled){
/* Thunbnail */
ytd-thumbnail a.ytd-thumbnail,
ytd-thumbnail:before{
border-radius: thumbnailRoundness !important;
}
/* Playlist Thunbnail */
ytd-playlist-thumbnail[size="medium"] a.ytd-playlist-thumbnail,
ytd-playlist-thumbnail[size="medium"]::before,
.yt-thumbnail-view-model--medium{
border-radius: thumbnailRoundness !important;
}
.collections-stack-wiz__collection-stack1--large,
.collections-stack-wiz__collection-stack2,
.collections-stack-wiz__collection-stack1--medium{
border-radius: thumbnailRoundness !important;
}
/* Looking for something different? */
ytd-feed-nudge-renderer[rounded-container] #dismissible.ytd-feed-nudge-renderer{
border-radius: thumbnailRoundness !important;
}
ytd-feed-nudge-renderer[trim-style="gradient-trim-1"] #dismissible.ytd-feed-nudge-renderer::before{
border-top-left-radius: thumbnailRoundness !important;
border-top-right-radius: thumbnailRoundness !important;
}
#content-wrapper.ytd-feed-nudge-renderer{
border-bottom-left-radius: thumbnailRoundness !important;
border-bottom-right-radius: thumbnailRoundness !important;
}
/* Shorts */
.shortsLockupViewModelHostThumbnailContainerRounded{
border-radius: thumbnailRoundness !important;
}
/* Images */
.yt-spec-avatar-shape__image, #avatar.ytd-video-owner-renderer, yt-img-shadow, .yt-spec-avatar-shape--cairo-refresh.yt-spec-avatar-shape--live-ring::after{
border-radius: imagesRoundness !important;
}
.yt-video-attribute-view-model--image-large .yt-video-attribute-view-model__hero-section{
border-radius: imagesRoundness !important;
}
/* Filter Bar */
#chip-container.yt-chip-cloud-chip-renderer{
border-radius: filterBarRoundness !important;
}
/* Buttons */
.yt-spec-button-shape-next--size-m, .ytp-tooltip-text-wrapper, .ytp-tooltip.ytp-preview:not(.ytp-text-detail), .ytp-tooltip-bg, .ytp-tooltip:not(.ytp-preview) .ytp-tooltip-text {
border-radius: buttonsRoundness !important;
}
ytd-live-chat-frame[round-background] #show-hide-button.ytd-live-chat-frame > ytd-toggle-button-renderer.ytd-live-chat-frame, ytd-live-chat-frame[round-background] #show-hide-button.ytd-live-chat-frame > ytd-button-renderer.ytd-live-chat-frame{
border-radius: buttonsRoundness !important;
}
/* Arrow */
.arrow.yt-horizontal-list-renderer{
border-radius: buttonsRoundness !important;
}
/* Notification */
yt-icon-button.ytd-masthead:hover, ytd-topbar-menu-button-renderer.ytd-masthead:hover, ytd-notification-topbar-button-renderer.ytd-masthead:hover{
border-radius: buttonsRoundness !important;
}
yt-interaction.circular .fill.yt-interaction, yt-interaction.circular .stroke.yt-interaction, yt-interaction.circular .fill.yt-interaction, yt-interaction.circular .stroke.yt-interaction{
border-radius: buttonsRoundness !important;
}
/* Click Video */
yt-interaction.extended .fill.yt-interaction, yt-interaction.extended .stroke.yt-interaction{
border-radius: clickVideoRoundness !important;
}
/* Player menu */
.ytp-settings-menu{
border-radius: menuRoundness !important;
}
/* Popup Menu */
ytd-multi-page-menu-renderer,
ytd-menu-popup-renderer{
border-radius: menuRoundness !important;
}
/* Search Bar */
.ytSearchboxComponentSearchButton{
border-top-right-radius: searchBarRoundness !important;
border-bottom-right-radius: searchBarRoundness !important;
}
.ytSearchboxComponentInputBox{
border-top-left-radius: searchBarRoundness !important;
border-bottom-left-radius: searchBarRoundness !important;
}
/* Search Suggestion */
.ytSearchboxComponentSuggestionsContainer{
border-radius: searchSuggestionRoundness !important;
}
ytd-watch-flexy[rounded-player-large][default-layout] #ytd-player.ytd-watch-flexy{
border-radius: playerRoundness !important;
}
/* Channel Page Player */
ytd-channel-video-player-renderer[rounded] #player.ytd-channel-video-player-renderer{
border-radius: channelPlayerRoundness !important;
}
/* Description */
#description.ytd-watch-metadata{
border-radius: descriptionRoundness !important;
}
ytd-rich-metadata-renderer[rounded]{
border-radius: descriptionRoundness !important;
}
yt-interaction.rounded-large .fill.yt-interaction, yt-interaction.rounded-large .stroke.yt-interaction{
border-radius: descriptionRoundness !important;
}
.ytVideoMetadataCarouselViewModelHost{
border-radius: descriptionRoundness !important;
}
ytd-live-chat-frame[rounded-container]:not([theater-watch-while]){
border-radius: descriptionRoundness !important;
}
ytd-live-chat-frame[rounded-container] iframe.ytd-live-chat-frame{
border-radius: descriptionRoundness !important;
}
/* Playlist panel */
ytd-playlist-panel-renderer[modern-panels]:not([within-miniplayer]) #container.ytd-playlist-panel-renderer{
border-radius: descriptionRoundness !important;
}
}
if(isColorOptionEnabled){
if(isHeaderColorEnabled){
#background.ytd-masthead{
background: headerColor !important;
backdrop-filter: blur(headerBlur) !important;
}
if(alpha(headerColor) != 1){
#chips-wrapper.ytd-feed-filter-chip-bar-renderer{
background: #00000000 !important;
pointer-events: none;
}
/* Maintains compatibility with scripts that add buttons to the filter bar, such as play all. */
#chips-wrapper.ytd-feed-filter-chip-bar-renderer *{
pointer-events: auto;
}
yt-chip-cloud-chip-renderer.ytd-feed-filter-chip-bar-renderer{
background: headerColor !important;
backdrop-filter: blur(headerBlur) !important;
}
}else{
#chips-wrapper.ytd-feed-filter-chip-bar-renderer{
background: headerColor !important;
}
}
}
/* Search Bar Color */
if(isSearchBarColorEnabled){
/* Only Dark Mode */
.ytSearchboxComponentInputBoxDark{
background-color: searchBarColor !important;
border-color: searchBarBorderColor !important;
}
.ytSearchboxComponentSearchButtonDark{
background-color: searchButtonColor !important;
border-color: searchBarBorderColor !important;
}
.ytSearchboxComponentSuggestionsContainer{
background-color: suggestColor !important;
backdrop-filter: blur(suggestBlur) !important;
}
}
/* Seek Bar Color */
if(isBarColorEnabled){
#progress.yt-page-navigation-progress{
background: loadProgressBarColor !important;
}
.ytp-swatch-background-color,.ytp-play-progress, ytd-thumbnail-overlay-resume-playback-renderer[enable-refresh-signature-moments-web] #progress.ytd-thumbnail-overlay-resume-playback-renderer{
background: seekBarColor !important;
}
}
if(isPlayerPageEnabled){
#description.ytd-watch-metadata{
background: descriptionColor !important;
}
ytd-rich-metadata-renderer{
background: descriptionColor !important;
}
.ytVideoMetadataCarouselViewModelHost{
background: descriptionColor !important;
}
/* Live Chat */
yt-live-chat-renderer, yt-live-chat-header-renderer{
background: liveChatColor !important;
}
}
if(isBeforeSubButtonColorEnabled){
html .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
color: subColorBefore !important;
background: subBackgroundBefore !important;
}
}
}
if(isHideOptionEnabled){
if(hideFilterBar){
ytd-feed-filter-chip-bar-renderer{
display: none !important;
}
yt-related-chip-cloud-renderer{
display: none !important;
}
}
if(hideVoiceSearch){
#voice-search-button{
display: none!important;
}
}
if(hideCreateButton){
ytd-button-renderer:has(svg path[d="M20 12h-8v8h-1v-8H3v-1h8V3h1v8h8v1z"]){
display: none !important;
}
}
if(description){
if(shortRemix){
ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has(ytm-shorts-lockup-view-model){
display: none !important;
}
}
if(hideHorizontalDesc){
ytd-structured-description-content-renderer ytd-horizontal-card-list-renderer{
display: none !important;
}
}
if(hideYTMusicButton){
#footer-section:has(path[d="M12 4v9.38c-.73-.84-1.8-1.38-3-1.38-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V8h6V4h-7zM9 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm9-12h-5V5h5v2z"]){
display: none !important;
}
}
if(transcription){
ytd-video-description-transcript-section-renderer{
display: none !important;
}
}
if(channelDesctiption){
#header.ytd-video-description-infocards-section-renderer{
display: none !important;
}
}
if(socialLinks){
#social-links.ytd-video-description-infocards-section-renderer{
display: none !important;
}
}
if(videosDescription){
#infocards-section.ytd-video-description-infocards-section-renderer{
display: none !important;
}
if(channelDesctiption){
if(socialLinks){
ytd-video-description-infocards-section-renderer{
padding: 0px 0 !important;
}
}
}
}
if(hideShopDesc){
ytd-merch-shelf-renderer{
display: none !important;
}
}
}
/* Shots */
if(hideShorts){
if(homeShelf){
ytd-rich-grid-renderer>#contents>ytd-rich-section-renderer:has(ytm-shorts-lockup-view-model){
display: none !important;
}
}
if(hideShortsSidebar){
ytd-guide-entry-renderer.ytd-guide-section-renderer:nth-child(2):has(svg path[d^="m7.61 15.719.392-.22v-2.24l-.534-.228-.942-.404c-.869-.372-1.4-1.15-1.446-1.974-.047-.823.39-1.642"]){
display: none !important;
}
ytd-mini-guide-entry-renderer.ytd-mini-guide-renderer:nth-child(2):has(svg path[d^="m7.61 15.719.392-.22v-2.24l-.534-.228-.942-.404c-.869-.372-1.4-1.15-1.446-1.974-.047-.823.39-1.642"]){
display: none !important;
}
}
}
}
if(isExpandedSidebarEnable){
if(isSidebarWidthEnabled){
ytd-guide-renderer.ytd-app, tp-yt-app-drawer[persistent]{
width: sidebarWidth !important;
}
ytd-app[guide-persistent-and-visible] ytd-page-manager.ytd-app{
margin-left: sidebarWidth !important;
}
ytd-app{
--app-drawer-width: sidebarWidth !important;
}
}
if(isSidebarInnerWidthEnabled){
if(sidebarInnerWidth){
ytd-guide-entry-renderer{
width: 100% !important;
}
}
tp-yt-paper-item.ytd-guide-entry-renderer{
padding-right: sidebarPadding !important;
padding-left: sidebarPadding !important;
}
}
if(isSidebarItemEnabled){
ytd-guide-section-renderer{
--paper-item-min-height: sidebarItemHeight !important;
}
#guide-section-title.ytd-guide-section-renderer{
padding-right: sidebarItemPadding !important;
padding-left: sidebarItemPadding !important;
}
ytd-guide-section-renderer[modern-typography] #guide-section-title.ytd-guide-section-renderer{
font-size: sidebarItemSectionFontSize !important;
max-height: fit-content !important;
-webkit-line-clamp: sidebarItemTitleLineClamp !important;
}
.title.ytd-guide-entry-renderer{
font-size: sidebarItemFontSize !important;
}
.guide-icon.ytd-guide-entry-renderer, yt-img-shadow.ytd-guide-entry-renderer{
margin-right: sidebarIconMargin !important;
}
/* Iconsize */
.guide-icon.ytd-guide-entry-renderer{
--iron-icon-height: sidebarIconSize !important;
--iron-icon-width: sidebarIconSize !important;
}
yt-img-shadow.ytd-guide-entry-renderer{
width: sidebarIconSize !important;
height: sidebarIconSize !important;
}
yt-img-shadow.ytd-guide-entry-renderer img.yt-img-shadow{
width: 100% !important;
height: 100% !important;
}
ytd-guide-entry-renderer{
border-radius: sidebarItemRoundness !important;
}
#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer:hover, #endpoint.yt-simple-endpoint.ytd-guide-entry-renderer:focus, #endpoint.yt-simple-endpoint.ytd-guide-entry-renderer:active{
border-radius: sidebarItemRoundness !important;
}
yt-interaction.ytd-guide-entry-renderer, yt-interaction.ytd-guide-entry-renderer:hover{
border-radius: sidebarItemRoundness !important;
}
tp-yt-paper-item:focus::before, .tp-yt-paper-item.tp-yt-paper-item:focus::before{
border-radius: sidebarItemRoundness !important;
}
}
}
}