Global Video Settings

some videos wer cropted into square, lack of saturation, or like on tiktok some videos want you to turn your screen upside down as if all users are in smartphone😆 this might help you on that.

目前為 2022-01-25 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name           Global Video Settings
@namespace      https://userstyles.world/user/xyadx
@version        1.0.0
@description    some videos wer cropted into square, lack of saturation, or like on tiktok some videos want you to turn your screen upside down as if all users are in smartphone😆 this might help you on that.

i just made this for facebook livestreams before coz some of them wer squeeze onto square ratio and idk why.
@supportURL     https://userstyles.world/style/2942/global-video-settings
@author         YAD
@license        NO-REDISTRIBUTION
@preprocessor   stylus

@var range sat 'Saturation' [105, 1, 200, 1, '%']
@var range bri 'Brightness' [105, 1, 200, 1, '%']
@var range con 'Contrast' [105, 1, 200, 1, '%']
@var range trX 'Stretch X-axis' [1, 0.1, 3, 0.1, '']
@var range trY 'Stretch Y-axis' [1, 0.1, 3, 0.1, '']
@var range rot 'Video Rotation' [0, 0, 360, 10, 'deg']
==/UserStyle== */
@-moz-document regexp("https?://(?!(.*\\.excludedsite\\.com/)).*") {
// website to exclude from this script ⬆️

	:root {
		--Y: trY;
		--X: trX;
		--r: rot;
		--s: sat;
		--b: bri;
		--c: con;
	}
	video  {
		transform: rotate(var(--r)) scaleX(var(--X)) scaleY(var(--Y))!important;
		filter: saturate(var(--s)) brightness(var(--b)) contrast(var(--c))!important;
		transition: 0.1s
	}	
	[class*="html5-video-player"] {
		overflow: visible!important;
	}
	[class*="ended-mode"] [class="html5-video-container"] {
		display: none
	}
}