YouTube Fix Pink Playback Bar

Fixes Pink Playback Bar Back To Red.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         YouTube Fix Pink Playback Bar
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Fixes Pink Playback Bar Back To Red.
// @author       F02x
// @match        https://www.youtube.com/*
// @license      WTFPL
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Create a <style> element to hold the CSS
    const style = document.createElement('style');

    // Add the CSS rules from the Stylebot code
    style.textContent = `
        /* Video player progress bars */
        .html5-play-progress, .ytp-play-progress {
            background: #FF0000 !important;
        }

        /* Scrubber button in the video player */
        div.ytp-scrubber-button.ytp-swatch-background-color {
            background: #FF0000 !important;
        }

        /* Additional progress bar element */
        div.YtProgressBarLineProgressBarPlayed.YtProgressBarLineProgressBarPlayedRefresh {
            background: #FF0000 !important;
        }

        /* Progress bar on video thumbnails */
        div.style-scope.ytd-thumbnail-overlay-resume-playback-renderer {
            background: #FF0000 !important;
        }
    `;

    // Append the style element to the document's <head>
    document.head.appendChild(style);
})();