YouTube - Show Buttons On Hover When Paused

Hide buttons when the video is paused and show them again when hovered

当前为 2022-12-08 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name           YouTube - Show Buttons On Hover When Paused
@namespace      https://github.com/pabli24
@version        1.1.1
@description    Hide buttons when the video is paused and show them again when hovered
@author         Pabli
@license        MIT
@homepageURL    https://github.com/pabli24/YTPlayerHideButtonsWhenPaused
@supportURL     https://github.com/pabli24/YTPlayerHideButtonsWhenPaused/issues
@preprocessor   stylus
@var            checkbox oHide    "Show buttons on hover when paused" 1
@var            number   oPaused  "Buttons opacity when paused"       [1, 0, 1, 0.01]
@var            number   oPlaying "Buttons opacity when playing"      [1, 0, 1, 0.01]
==/UserStyle== */

@-moz-document domain("youtube.com") {
if oHide {
	.paused-mode:not(.unstarted-mode) > div:not(.html5-video-container) {
		opacity: 0
	}
}
.paused-mode:hover > div:not(.html5-video-container) {
	opacity: oPaused
}
.playing-mode:not(.ytp-autohide):hover > div:not(.html5-video-container):not(.ytp-caption-window-container) {
	opacity: oPlaying
}
}