YouTube to Netflix Player Style

Style YouTube player to look like Netflix player

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         YouTube to Netflix Player Style
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Style YouTube player to look like Netflix player
// @author       Mason
// @match        https://www.youtube.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    // Add custom CSS to style the YouTube player
    GM_addStyle(`
        /* Hide YouTube controls */
        .ytp-chrome-top, .ytp-chrome-bottom {
            display: none !important;
        }

        /* Adjust player size */
        #player-container {
            width: 100% !important;
            height: 100% !important;
        }

        /* Style the play/pause button */
        .ytp-play-button {
            background-image: url('https://your-netflix-play-button-image-url'); /* Replace with your Netflix-style play button image URL */
            background-size: contain;
            background-repeat: no-repeat;
        }

        /* Style the progress bar */
        .ytp-progress-bar-container {
            background: #333 !important; /* Darker background for the progress bar */
        }

        /* Style the volume button */
        .ytp-volume-panel {
            background: #333 !important; /* Darker background for volume panel */
        }

        /* Customize other elements as needed */
        /* Add more CSS rules to style the player as per your needs */
    `);

})();