Skip to content

Instantly share code, notes, and snippets.

@sameerasw
Last active February 22, 2025 19:02
Show Gist options
  • Select an option

  • Save sameerasw/f8b91d825a75c9b9c8b34f516480b9b4 to your computer and use it in GitHub Desktop.

Select an option

Save sameerasw/f8b91d825a75c9b9c8b34f516480b9b4 to your computer and use it in GitHub Desktop.
My YouTube CSS modifications for a minimal look
ytd-mini-guide-renderer {
display: none;
}
#page-manager{
margin-left: 0;
}
#masthead-container{
#background.ytd-masthead{
background-color: #00000000;
backdrop-filter: blur(30px);
}
}
#container.ytd-searchbox{
background-color: #00000000;
}
.ytd-two-column-browse-results-renderer #header{
display: none;
}
ytd-video-meta-block{
/* opacity: 0; */
}
#content #dismissible:hover{
background-color: #00000000;
ytd-video-meta-block{
opacity: 1;
}
}
#header{
/* opacity: 0.01; */
/* border-radius: 1.5em 0 1.5em 0; */
/* background-color: #000; */
/* transition: opacity 0.3s ease-in; */
&:hover{
/* opacity: 1; */
}
}
#byline-container #channel-name a{
opacity: 0.6;
}
ytd-rich-item-renderer[rendered-from-rich-grid] {
--ytd-rich-item-row-usable-width: calc(100% - var(--ytd-rich-grid-gutter-margin)* 1);
}
ytd-rich-item-renderer{
margin-bottom: 1em !important;
}
ytd-video-meta-block.grid #metadata.ytd-video-meta-block{
display:inline-flexbox;
flex-direction: row;
text-overflow:ellipsis;
#metadata-line span:nth-child(3){
width: 2em;
height: 1em;
}
}
ytd-watch-flexy{
margin-top: 0;
}
html[data-page-type="video"][it-player-size="full_window"] ytd-watch-flexy[theater]:not([fullscreen]) #player-wide-container, html[data-page-type="video"][it-player-size="full_window"] ytd-watch-flexy[full-bleed-player]:not([fullscreen]) #full-bleed-container.ytd-watch-flexy{
height: 100vh !important;
}
#movie_player > div.html5-video-container video{
height: 100vh;
width: 100vw !important;
}
div.wrapper.clickable-comment {
background-color: #00000044;
backdrop-filter: blur(15px);
box-shadow: 0px 0px 10px #00000055;
max-width: 20vw;
border-radius: 10px;
.comment{
font-size: 1.3em;
}
.likes, .author{
display: none;
}
.avatar{
border-radius: 6px;
height: 45px;
width: auto;
}
}
@sameerasw
Copy link
Author

Made for ARC browser so might not appear correctly on others :)

@sameerasw
Copy link
Author

Updated 12th April 2024

@sameerasw
Copy link
Author

Updated 30th August
telegram-cloud-photo-size-5-6237527871396625662-w

@sameerasw
Copy link
Author

Updated 12th September : Finally got rid off some black bars aroudn the video in full width.
image

@sameerasw
Copy link
Author

Updated 7th October : Some minor tweaks for the auto dark/light theme
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment