YouTube Always Show Progress Bar - CSS Method

Shows YouTube progress bar at all times, formatted for theater mode, via lightweight CSS.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name           YouTube Always Show Progress Bar - CSS Method
@namespace      greasyfork.org/en/users/1252550-kiokito
@domain         youtube.com
@version        1.0.0
@description    Shows YouTube progress bar at all times, formatted for theater mode, via lightweight CSS.
@author         Kiokito
@match          http*://*youtube.com/*
@run-at         document-start
@locale         en "English"
==/UserStyle== */
    
@-moz-document domain("youtube.com") {
    
    html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) {
        overflow: visible !important;
    }
    
    html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) .ytp-chrome-bottom {
        display: block !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: -4.4vh !important;
        width: 100% !important;
        z-index: 100 !important;
    }
    
    html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) .ytp-gradient-bottom {
        display: none !important;
    }
    
    html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) .ytp-caption-window-bottom {
        bottom: 5vh !important;
    }
    
    html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) #player-container {
        padding-bottom: 3.5vh !important;
    }
    
    @media (max-width: 600px) {
        html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) .ytp-chrome-bottom {
            bottom: 0vh !important;
        }
        html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) .ytp-caption-window-bottom {
            bottom: 4vh !important;
        }
        html:not(.ftw-fullsize.on) .html5-video-player:not(.ytp-fullscreen) #player-container {
            padding-bottom: 4vh !important;
        }
    }
}