Youtube Theater mode 21:9 widescreen (and all aspect ratio) fix

For whatever reason, youtube fixes the frame to 16:9 in theater mode, but this should fix it removing top and bottom black bar

当前为 2021-02-20 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name         Youtube Theater mode 21:9 widescreen (and all aspect ratio) fix
@version      1.0.0
@description  For whatever reason, youtube fixes the frame to 16:9 in theater mode, but this should fix it removing top and bottom black bar
@author       toppits

@namespace https://greasyfork.org/users/371090
==/UserStyle== */
@-moz-document domain("youtube.com"){
video.video-stream.html5-main-video {
	top: 0 !important;
}

ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy {
	height: calc(var(--ytd-watch-flexy-height-ratio) / var(--ytd-watch-flexy-width-ratio) * (100vw - 12px)) !important;
	max-height: calc(100vh - 150px) !important;
}

ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy {
	height: 100vh !important;
	max-height: 100vh !important;
}
}