Skip to content

Instantly share code, notes, and snippets.

@mihawk90
Last active September 30, 2021 09:23
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 mihawk90/58ba13b86a909c07c820c087de4c75d6 to your computer and use it in GitHub Desktop.
Save mihawk90/58ba13b86a909c07c820c087de4c75d6 to your computer and use it in GitHub Desktop.
Twitch-Style YouTube Livechat
@-moz-document domain("www.youtube.com") {
/* Don't think [theater] is used anymore, but it is in the YT CSS */
@media (max-height: 1439px) {
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy,
/*ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy,*/
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy .ytp-chrome-bottom {
max-height: 1080px;
max-width: 1920px;
}
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy ~ #columns #chat,
ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy ~ #columns #chat {
height: 1080px;
width: calc(100vw - 1920px - var(--ytd-scrollbar-width));
}
}
#player-theater-container video {
left: 0!important; /* this is in a style attribute, need !imp */
}
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy ~ #columns #chat,
ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy ~ #columns #chat {
position: absolute;
top: 56px; /* from #container.ytd-masthead */
right: 0;
border: 0; /* remove 1px border */
}
ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy ~ #columns #chat {
height: 100vh;
top: 0;
}
.ytp-ad-action-interstitial-slot {
background-color: rgba(0, 0, 0, .69);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment