YouTube to Netflix Player Style

Style YouTube player to look like Netflix player

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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 */
    `);

})();