Skip to content

Instantly share code, notes, and snippets.

@Perlence
Last active October 11, 2017 08:54
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 Perlence/483da8d0b8aba27e86aca2b4d294836e to your computer and use it in GitHub Desktop.
Save Perlence/483da8d0b8aba27e86aca2b4d294836e to your computer and use it in GitHub Desktop.
Limit YouTube video height in theater mode to 720p
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("youtube.com") {
ytd-watch[theater] :not(.ytp-fullscreen)>.html5-video-container>.html5-main-video {
max-height: 720px;
}
ytd-watch[theater] #player.ytd-watch {
max-height: 720px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment