YouTube - Force consistent video size (revert to pre-flexy)

This style forces to use the pre-flexy video size before it first came out in 2018.

当前为 2024-03-10 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name           YouTube - Force consistent video size (revert to pre-flexy)
@namespace      https://greasyfork.org/en/users/933798
@version        20240310.16.00
@description    This style forces to use the pre-flexy video size before it first came out in 2018.
@author         Magma_Craft
@license        MIT
==/UserStyle== */
 
@-moz-document domain("youtube.com") {
div#primary.style-scope.ytd-watch-flexy, ytd-watch-flexy[flexy] #player-container-outer.ytd-watch-flexy {
  min-width: 853px !important;
  max-width: 853px !important;
}

/* Replace background from transparent to black translucent one */
ytd-watch-flexy[flexy] #player-container-outer.ytd-watch-flexy {
  background-color: #000000 !important;
}

/* Remove rounded edges on videos due to buggyness */
ytd-watch-flexy[rounded-player-large]:not([fullscreen]):not([theater]) #ytd-player.ytd-watch-flexy {
  border-radius: 0px !important;
}
}