YouTube - Show Buttons On Hover When Paused

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

/* ==UserStyle==
@name           YouTube - Show Buttons On Hover When Paused
@namespace      https://github.com/pabli24
@version        1.1.3
@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   less
@var            checkbox opacityHide    "Show buttons on hover when paused" 1
@var            number   opacityPaused  "Buttons opacity when paused"       [1, 0, 1, 0.01]
@var            number   opacityPlaying "Buttons opacity when playing"      [1, 0, 1, 0.01]
==/UserStyle== */

@-moz-document domain("youtube.com") {
	& when (@opacityHide = 1) {
		.paused-mode:not(.unstarted-mode) > div:not(.html5-video-container):not(.ytp-ce-shadow) {
			opacity: 0;
		}
	}
	.paused-mode:hover > div:not(.html5-video-container):not(.ytp-ce-shadow) {
		opacity: @opacityPaused;
	}
	.playing-mode:not(.ytp-autohide):hover > div:not(.html5-video-container):not(.ytp-ce-shadow):not(.ytp-caption-window-container):not(.ytp-player-content):not(.sponsorSkipNoticeContainer) {
		opacity: @opacityPlaying;
	}
}