-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
78 lines (67 loc) · 1.67 KB
/
Copy pathcontent.css
File metadata and controls
78 lines (67 loc) · 1.67 KB
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
/* Prevent flash of homepage content (applied by JS at document_start, before DOM renders) */
html.yt-homepage-blocked {
background: #000 !important;
}
html.yt-homepage-blocked body {
visibility: hidden !important;
}
/* Blocker overlay */
#yt-homepage-blocker {
position: fixed;
inset: 0;
z-index: 2147483647;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #000;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#yt-homepage-blocker svg {
stroke: #888;
}
#yt-homepage-blocker h1 {
color: #fff;
font-size: 22px;
font-weight: 600;
margin: 24px 0 8px;
}
#yt-homepage-blocker p {
color: #888;
font-size: 15px;
margin: 0 0 32px;
}
#yt-homepage-blocker a {
color: #3ea6ff;
font-size: 15px;
text-decoration: none;
padding: 10px 24px;
border: 1px solid #3ea6ff;
border-radius: 20px;
transition: background 0.2s;
}
#yt-homepage-blocker a:hover {
background: rgba(62, 166, 255, 0.1);
}
body:has(#yt-homepage-blocker) {
overflow: hidden !important;
}
/* Hide "watch next" videos list on YouTube's video pages */
#related,
ytd-watch-next-secondary-results-renderer {
display: none !important;
}
/* Hide next-video recommendations inside the video player (end screen + fullscreen grid) */
.videowall-endscreen,
.ytp-fullscreen-grid,
.ytp-fullscreen-grid-buttons-container {
display: none !important;
}
/* Hide "Home" button from YouTube's sidebar (expanded and collapsed) */
ytd-guide-section-renderer #items > ytd-guide-entry-renderer:has(a[href="/"]),
ytd-mini-guide-renderer
#items
> ytd-mini-guide-entry-renderer:has(a[href="/"]) {
display: none !important;
}