Greasy Fork

Plex Supreme

Enhances Plex

目前为 2016-07-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         Plex Supreme
// @icon         https://www.macupdate.com/images/icons256/27302.png
// @namespace    http://skoshy.com
// @version      0.1
// @description  Enhances Plex
// @author       Stefan Koshy
// @match        http*://localhost:32400/*
// @match        http*://app.plex.tv/web/*
// @grant        none
// ==/UserScript==

var scriptid = 'plex-supreme';

var css = `
/* Makes video controls a little lighter */
.video-controls-overlay {background-color: rgba(0,0,0,.2);}
.video-controls-overlay:hover {background-color: rgba(0,0,0,.8);}
`;

function addGlobalStyle(css, id) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    style.id = id;
    head.appendChild(style);
}

function initialize() {
    addGlobalStyle(css, scriptid);
}

initialize();