Skip to content

Instantly share code, notes, and snippets.

@samliew
Last active May 13, 2022 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samliew/7939114f39a32adfe3327880c3e638fc to your computer and use it in GitHub Desktop.
Save samliew/7939114f39a32adfe3327880c3e638fc to your computer and use it in GitHub Desktop.
Youtube Userstyle
/* no distractions */
body {
overflow-x: hidden;
overflow-y: auto;
}
#secondary,
#comments,
#related,
#info,
.html5-endscreen,
.more-button,
.ytp-pause-overlay,
ytd-live-chat-frame,
a[title="Explore"],
ytd-button-renderer,
ytd-download-button-renderer,
yt-icon-button.dropdown-trigger,
a[href^="https://support.google.com/youtube/answer/"] {
display: none !important;
}
/* auto-hide header */
#masthead-container {
transform: translateY(calc(-100% + 8px)) !important;
}
#masthead-container:hover {
transform: translateY(0) !important;
}
#page-manager.ytd-app {
margin-top: 10px;
}
/* auto-hide footer */
#columns {
position: fixed;
bottom: 0;
width: 100%;
padding-top: 10px;
background-color: #111;
transition: transform 0.3s ease;
transform: translateY(calc(100% - 8px));
}
#columns:hover {
transform: translateY(0);
}
/* full-width */
#primary,
#columns {
max-width: none !important;
}
.html5-video-container {
position: static;
}
.ytp-chrome-bottom {
position: relative;
top: 100%;
margin: 0 auto;
transform: translate(0, -100%);
}
.html5-main-video {
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
object-fit: contain !important;
width: 100% !important;
height: 100% !important;
}
ytd-video-secondary-info-renderer {
border-bottom: 0;
}
/* less contrast */
#subscribe-button {
filter: grayscale(0.75);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment