Skip to content

Instantly share code, notes, and snippets.

@unarist
Last active January 18, 2022 07:50
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 unarist/5860c83e3207e9a895c855cba390ba39 to your computer and use it in GitHub Desktop.
Save unarist/5860c83e3207e9a895c855cba390ba39 to your computer and use it in GitHub Desktop.
YouTubeのウィンドウを小さくした時に邪魔な要素を隠すやつ
/* ==UserStyle==
@name youtube - Mini Player
@namespace github.com/unarist
@version 1.0.0
@author unarist
==/UserStyle== */
@-moz-document url-prefix("https://www.youtube.com/watch?") {
@media (max-width: 800px) and (max-height: 500px) {
/* show topbar only when hovered */
#masthead-container { transition-property: all !important }
html:not(:hover) #masthead-container { opacity: 0 }
/* full video */
#page-manager { margin: 0 !important }
.html5-main-video {
width: 100vw !important;
height: 100vh !important;
top: unset !important;
}
.ytp-gradient-bottom, .ytp-chrome-bottom { position: fixed; bottom: 0; }
/* hide scrollbar */
::-webkit-scrollbar { width: 0 !important; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment