-
Notifications
You must be signed in to change notification settings - Fork 1
/
youtube-custom-ui-cleaner.user.css
322 lines (263 loc) · 6.55 KB
/
youtube-custom-ui-cleaner.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
/* ==UserStyle==
@name YouTube Custom UI Cleaner
@namespace github.com/gmiwoj/YouTube-Custom-UI-Cleaner
@version 0.0.31
@description Show / Hide ANY useless and unwanted UI elements. Togglable list of all UI elements, hide things you never use, keep everything else untouched. Work in progress. Very first version. Still figuring stuff out. Updates will come.
@author miwoj (https://github.com/gmiwoj)
@homepageURL https://github.com/gmiwoj/YouTube-Custom-UI-Cleaner
@supportURL https://github.com/gmiwoj/YouTube-Custom-UI-Cleaner/issues
@updateURL https://github.com/gmiwoj/YouTube-Custom-UI-Cleaner/blob/c0d42f32dc18c051bc40ceaaa59e316a4d810103/youtube-custom-ui-cleaner.user.css
@preprocessor stylus
@var select label0 "TIP : this is a makeshift label, it doesnt do anything" ["_"]
@var select label1 "BUTTONS" ["_"]
@var checkbox --voiceSearchButton "- Voice Search button" 0
@var checkbox --uploadVideoButton "- Upload Video button" 0
@var checkbox --youtubeAppsButton "- YouTube Apps button" 0
@var checkbox --bellNotificationsButton "- Bell Notifications button" 0
@var checkbox --subscribeButton "- Subscribe button" 1
@var checkbox --miniPlayerButton "- Mini Player button" 0
@var checkbox --joinPaidMembershipButton "- Join Paid Membership button" 0
@var checkbox --thumbHoverButtons "- Thumb Hover buttons (watch later, add to queue)" 0
@var checkbox --likeDislikeButtons "- Like / Dislike buttons" 1
@var checkbox --shareButton "- Share button" 0
@var checkbox --saveButton "- Save button" 0
@var checkbox --showReportTranscriptButton "- (...) Report Transcript button" 0
@var select label2 "NAVIGATION" ["_"]
@var checkbox --miniHiddenLeftMenu "- Mini Left Menu when hidden" 0
@var checkbox --tagsHorizontalBar "- Horizontal Tag bar" 0
@var select label3 "PANELS" ["_"]
@var checkbox --donationPanel "- Donations panel" 0
@var checkbox --ytGameInfo "- Game Info, Youtube Gaming panel" 0
@var checkbox --channelBanner "- Channel banner (refresh after change)" 0
@var checkbox --commentSection "- Comment section" 1
@var select label4 "ADS" ["_"]
@var checkbox --adsBanners "- Ads: Banners" 0
@var checkbox --adsMovies "- Ads: Buy or Rent movies" 0
@var select label5 "MISC" ["_"]
@var checkbox --ytLogo "- YouTube logo (clickable when hidden)" 1
@var checkbox --hashtagList "- Hashtag list on title" 0
==/UserStyle== */
@-moz-document domain("youtube.com") {
/* youtube clean ui*/
/* do zrobienia:
- clip, share, other icons ???
- left menu elements
- theater mode
- info icon top right
- header bg transparency
- vid shadow gradient
- subtitles height
- subtitles size
*/
/* (...) Show Report and Transcript button */
if !--showReportTranscriptButton
{
#info-contents yt-icon-button#button.dropdown-trigger
{
display: none !important;
}
}
/* Save button */
if !--saveButton
{
#info-contents #top-level-buttons-computed ytd-button-renderer:nth-child(4)
{
display: none !important;
}
}
/* Share button */
if !--shareButton
{
#info-contents #top-level-buttons-computed ytd-button-renderer:nth-child(3)
{
display: none !important;
}
}
/* Like Dislike buttons */
if !--likeDislikeButtons
{
#info-contents #top-level-buttons-computed ytd-toggle-button-renderer:nth-child(1),
#info-contents #top-level-buttons-computed ytd-toggle-button-renderer:nth-child(2),
#info-contents #sentiment.ytd-video-primary-info-renderer
{
display: none !important;
}
}
/* Subscribe button */
if !--subscribeButton
{
#subscribe-button
{
display: none !important;
}
}
/* Comment section */
if !--commentSection
{
#comments
{
display: none !important;
}
#primary
{
margin-bottom: 50px;
}
}
/* Hover Overlay Buttons */
if !--thumbHoverButtons
{
#hover-overlays.ytd-thumbnail
{
display: none !important;
}
}
/* Youtube Logo */
if !--ytLogo
{
ytd-topbar-logo-renderer#logo.ytd-masthead svg.yt-icon,
ytd-topbar-logo-renderer#logo #country-code.ytd-topbar-logo-renderer
{
display: none !important;
}
}
/* Voice Search Button */
if !--voiceSearchButton
{
#voice-search-button.ytd-masthead
{
display: none !important;
}
}
/* Upload Video Button */
if !--uploadVideoButton
{
ytd-topbar-menu-button-renderer.ytd-masthead:nth-child(1)
{
display: none !important;
}
}
/* Youtube Apps Button */
if !--youtubeAppsButton
{
ytd-topbar-menu-button-renderer.ytd-masthead:nth-child(2)
{
display: none !important;
}
}
/* Bell Notifications Button */
if !--bellNotificationsButton
{
#notification-preference-button
{
display: none !important;
}
}
/* Mini Player Button */
if !--miniPlayerButton
{
button.ytp-miniplayer-button
{
display: none !important;
}
}
/* Tags Horizontal Bar (main header and right related list) */
if !--tagsHorizontalBar
{
ytd-feed-filter-chip-bar-renderer
{
display: none !important;
}
yt-related-chip-cloud-renderer.ytd-watch-next-secondary-results-renderer
{
display: none !important;
}
#items.ytd-watch-next-secondary-results-renderer ytd-compact-video-renderer:nth-child(1)
{
margin-top: 0px !important;
}
}
/* Hashtag List */
if !--hashtagList
{
#info-contents yt-formatted-string.super-title,
#info-contents yt-icon.super-title-icon
{
display: none !important;
}
}
/* Mini Hidden Left Menu */
if !--miniHiddenLeftMenu
{
ytd-mini-guide-renderer
{
display: none !important;
}
ytd-app[mini-guide-visible] ytd-page-manager.ytd-app
{
margin-left: 0px !important;
}
}
/* Ads Banners */
if !--adsBanners
{
#masthead-ad
{
display: none !important;
}
#related #player-ads
{
display: none !important;
}
}
/* Ads Movies */
if !--adsMovies
{
#contents ytd-compact-movie-renderer
{
display: none !important;
}
}
/* Ads Items (unfinished) */
ytd-display-ad-renderer
{
display: none !important;
}
/* Join Paid Membership Button */
if !--joinPaidMembershipButton
{
#sponsor-button
{
display: none !important;
}
}
/* Donation Panel */
if !--donationPanel
{
#donation-shelf
{
display: none !important;
}
}
/* Game Info, Youtube Gaming panel */
if !--ytGameInfo
{
ytd-metadata-row-container-renderer.ytd-video-secondary-info-renderer
{
display: none !important;
}
}
/* Channel Banner */
if !--channelBanner
{
#channel-header,
ytd-c4-tabbed-header-renderer
{
--yt-channel-banner: none !important;
}
.banner-visible-area
{
display: none !important;
height: 0px !important;
}
}
}