-
-
Save unarist/5860c83e3207e9a895c855cba390ba39 to your computer and use it in GitHub Desktop.
YouTubeのウィンドウを小さくした時に邪魔な要素を隠すやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==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