-
-
Notifications
You must be signed in to change notification settings - Fork 544
/
general.css
347 lines (295 loc) · 12.9 KB
/
general.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
/*--------------------------------------------------------------
>>> GENERAL:
----------------------------------------------------------------
# YouTube home page
# Collapse of subscription section
# Remove related search results
# Scroll bar
# Add "Scroll to top"
# Limit page width
# Squared user images
# Mark watched videos
# Hide aniamted thubmnails
# Hide buttons on thumbnails
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# REMOVE RELATED SEARCH RESULTS
--------------------------------------------------------------*/
html[it-pathname='/results'][it-remove-related-search-results='true'] ytd-shelf-renderer>#dismissible>.grid-subheader,
html[it-pathname='/results'][it-remove-related-search-results='true'] ytd-shelf-renderer>#dismissible>.grid-subheader+#contents,
/*--------------------------------------------------------------
# REMOVE SHOTS RELATED SEARCH RESULTS
--------------------------------------------------------------*/
html[it-pathname='/results'][it-remove-shorts-reel-search-results="true"] ytd-reel-shelf-renderer,
/*--------------------------------------------------------------
# HIDE ANIMATED THUMBNAILS
--------------------------------------------------------------*/
html[it-hide-animated-thumbnails='true'] #mouseover-overlay,
html[it-hide-animated-thumbnails='true'] .mouseover-play,
html[it-hide-animated-thumbnails='true'] .mouseover-img,
html[it-hide-animated-thumbnails='true'] #preview>ytd-video-preview,
/*--------------------------------------------------------------
# HIDE BUTTONS ON THUMBNAILS
--------------------------------------------------------------*/
html[it-hide-thumbnail-overlay='true'] #hover-overlays,
/*--------------------------------------------------------------
# EMBEDDED VIDEOS
--------------------------------------------------------------*/
html[it-embeddedHidePauseOverlay='true'] .ytp-pause-overlay,
html[it-embeddedHideYoutubeLogo='true'] a.ytp-youtube-button svg path,
html[it-embeddedHideShare='true'] .ytp-share-button-visible:has(.ytp-share-icon),
/*--------------------------------------------------------------
# REMOVE HOMEPAGE SHORTS
--------------------------------------------------------------*/
html[it-pathname='/'][it-remove-home-page-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short]),
html[it-pathname='/feed/subscriptions'][it-remove-subscriptions-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short]),
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer,
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] ytd-reel-shelf-renderer
{display: none !important }
@supports not selector(:has(a, b)) {
html[it-pathname='/'][it-remove-home-page-shorts="true"] ytd-rich-shelf-renderer[is-shorts],
html[it-pathname='/feed/subscriptions'][it-remove-subscriptions-shorts="true"] ytd-rich-shelf-renderer[is-shorts],
{display: none !important }
}
/*
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short]),
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short])
html[it-pathnam='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer span#title:contains("Shorts"),
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer path[d^="M17.77,10.32l-1.2-.5L18,9.06a3.74,3.74"],
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer span#title:contains('Trending Shorts'),
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer yt-horizontal-list-renderer,
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] #contents.ytd-item-section-renderer:has(ytd-reel-shelf-renderer:has(span#title:contains("Shorts"))),
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] #contents.ytd-item-section-renderer:has(ytd-reel-shelf-renderer:has(yt-horizontal-list-renderer)),
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] ytd-reel-shelf-renderer:has(yt-horizontal-list-renderer)
{display: none !important } */
/*--------------------------------------------------------------
# YOUTUBE HOME PAGE
--------------------------------------------------------------*/
html[it-pathname='/'][it-youtube-home-page='search'] #body,
html[it-pathname='/'][it-youtube-home-page='search'] #content,
html[it-pathname='/'][it-youtube-home-page='search'] #guide[opened] {
visibility: hidden !important;
pointer-events: none !important;
}
html[it-pathname='/'][it-youtube-home-page='search'] body::-webkit-scrollbar {
width: 0 !important;
}
html[it-pathname='/'][it-youtube-home-page='search']>body {
overflow: hidden !important;
width: 100vw !important;
height: 100vh !important;
}
html[it-pathname='/'][it-youtube-home-page='search'] ytd-searchbox,
html[it-pathname='/'][it-youtube-home-page='search'] ytm-searchbox {
position: fixed !important;
z-index: 99999 !important;
top: 0 !important;
left: 0 !important;
display: flex !important;
visibility: visible !important;
box-sizing: border-box !important;
width: 100vw !important;
height: 100vh !important;
margin: 0 !important;
padding: 16px !important;
pointer-events: all !important;
justify-content: center !important;
align-items: center !important;
}
html[it-pathname='/'][it-youtube-home-page='search'] ytd-searchbox>form,
html[it-pathname='/'][it-youtube-home-page='search'] ytm-searchbox>form {
width: 100% !important;
max-width: 768px !important;
}
html[it-pathname='/'][it-youtube-home-page='search'] #search
{height: calc(17px + 0.4vh + 0.4vw); font-size: calc(15px + 0.4vh + 0.4vw); }
/*--------------------------------------------------------------
# COLLAPSE OF SUBSCRIPTION SECTIONS
-------------------------------------------------------------*/
html[it-pathname='/feed/subscriptions'][it-collapse-of-subscription-sections='true'] ytd-item-section-renderer h2 #title {
overflow: visible !important;
cursor: pointer !important;
}
html[it-pathname='/feed/subscriptions'][it-collapse-of-subscription-sections='true'] ytd-item-section-renderer h2 #title::after {
position: relative !important;
top: 2px !important;
display: inline-block !important;
width: 6px !important;
height: 6px !important;
margin: 0 0 0 12px !important;
content: '' !important;
transform: rotate(45deg) !important;
transform-origin: center center !important;
border-top: currentColor 2px solid !important;
border-left: currentColor 2px solid !important;
}
html[it-pathname='/feed/subscriptions'][it-collapse-of-subscription-sections='true'] ytd-item-section-renderer.it-section-collapsed h2 #title::after {
top: -3px !important;
transform: rotate(-135deg) !important;
}
html[it-pathname='/feed/subscriptions'][it-collapse-of-subscription-sections='true'] ytd-item-section-renderer .grid-subheader+#contents {
overflow: hidden !important;
}
html[it-pathname='/feed/subscriptions'][it-collapse-of-subscription-sections='true'] ytd-item-section-renderer.it-section-collapsed .grid-subheader+#contents {
height: 0 !important;
}
/*--------------------------------------------------------------
# SCROLL BAR
--------------------------------------------------------------*/
html[it-scroll-bar=hidden] body {overflow-y: overlay;}
html[it-scroll-bar=hidden] ::-webkit-scrollbar {display: none;}
/*--------------------------------------------------------------
# ADD "SCROLL TO TOP"
--------------------------------------------------------------*/
#it-scroll-to-top {
position: fixed !important;
z-index: 999 !important;
right: 32px !important;
bottom: 32px !important;
display: flex !important;
visibility: hidden !important;
box-sizing: border-box !important;
width: 56px !important;
height: 56px !important;
cursor: pointer !important;
transition: background 500ms 250ms, transform 500ms, box-shadow 525ms !important;
transform: translateY(88px) !important;
pointer-events: none !important;
opacity: 0 !important;
border-radius: 50% !important;
background: linear-gradient(135deg, #ff4766, #f50029) !important;
box-shadow: 0 2px 1px 1px #d60024, 0 4px 4px rgb(82, 0, 14, .32) !important;
justify-content: center !important;
align-items: center !important;
}
#it-scroll-to-top>svg {
width: 24px !important;
fill: #fff !important;
}
html[it-scroll-to-top='true'] #it-scroll-to-top {
visibility: visible !important;
opacity: 1 !important;
transform: translateY(0px) !important;
pointer-events: all !important;}
html[it-scroll-to-top='true'] #it-scroll-to-top:focus,
html[it-scroll-to-top='true'] #it-scroll-to-top:hover {
transition: background 250ms 125ms, transform 250ms, box-shadow 275ms !important;
transform: translateY(4px) scale(.975) !important;
box-shadow: 0 1px 1px 0 #d60024, 0 1px 2px rgb(82, 0, 14, .32) !important; }
/*--------------------------------------------------------------
# Popup Window Button
--------------------------------------------------------------*/
.it-popup-window {
font-family: inherit;
position: absolute;
z-index: 999 !important;
bottom: 36px;
left: 4px;
opacity: 0;
transition: opacity 4s;
width: 28px;
height: 28px;
cursor: pointer;
text-align: center;
color: #888;
border: none;
border-radius: 2px;
background: rgba(0, 0, 0, .8);
}
.it-popup-window svg {
position: absolute;
top: 4px;
left: 4px;
width: 20px;
height: 20px;
pointer-events: none;
fill: currentColor;
}
*:hover>.it-popup-window {
opacity: 1 !important;
transition: opacity 0s;
}
/*--------------------------------------------------------------
# MARK WATCHED VIDEOS
--------------------------------------------------------------*/
.it-mark-watched-videos {
font-family: inherit !important;
font-size: inherit !important;
position: absolute !important;
z-index: 999 !important;
bottom: 4px !important;
left: 4px !important;
visibility: hidden !important;
width: 28px !important;
height: 28px !important;
padding: 2px !important;
content: '' !important;
cursor: pointer !important;
text-align: center !important;
color: #888 !important;
border: none !important;
border-radius: 2px !important;
background-color: rgba(0, 0, 0, .8) !important;
fill: #fff !important;
}
.it-mark-watched-videos[data-watched] {
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="%23FFF" d="M12 4.5C7 4.5 2.7 7.6 1 12a11.8 11.8 0 0 0 22 0c-1.7-4.4-6-7.5-11-7.5zM12 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/%3E%3C/svg%3E') !important;
}
#thumbnail.ytd-thumbnail:hover .it-mark-watched-videos {
visibility: visible !important;
}
.it-mark-watched-videos[watched]>svg:first-child,
.it-mark-watched-videos:not([watched])>svg:last-child {
display: none !important;
}
.it-mark-watched-videos:hover {
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
.it-mark-watched-videos::after {
font-size: 1.2em !important;
font-weight: 500 !important;
position: absolute !important;
top: 0 !important;
left: 100% !important;
display: flex !important;
overflow: hidden !important;
width: 0 !important;
height: 28px !important;
content: 'Watched';
transition: width 200ms !important;
text-transform: uppercase !important;
color: var(--yt-spec-icon-active-other, #fff) !important;
border-top-right-radius: 2px !important;
border-bottom-right-radius: 2px !important;
background: rgba(0, 0, 0, .8) !important;
align-items: center !important;
justify-content: center !important;
}
.it-mark-watched-videos:hover::after {
width: 96px !important;
}
/*--------------------------------------------------------------
# COMPACT THEME
--------------------------------------------------------------*/
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(2) > h3,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(3) > h3,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(4) > h3 {
cursor: pointer;
width: calc(100% - 12px);
border-radius: 10px;
min-height: var(--paper-item-min-height,48px);
display: flex;
align-items: center;
user-select: none;
}
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(2) > h3:hover,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(3) > h3:hover,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(4) > h3:hover {
background-color: var(--yt-spec-badge-chip-background);
}
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(2) > h3:active,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(3) > h3:active,
html[it-channel-compact-theme='true'] #sections > ytd-guide-section-renderer:nth-child(4) > h3:active {
background-color: var(--yt-spec-10-percent-layer);
}