Plex Supreme

Enhances Plex

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

  1. // ==UserScript==
  2. // @name Plex Supreme
  3. // @icon https://www.macupdate.com/images/icons256/27302.png
  4. // @namespace http://skoshy.com
  5. // @version 0.1
  6. // @description Enhances Plex
  7. // @author Stefan Koshy
  8. // @match http*://localhost:32400/*
  9. // @match http*://app.plex.tv/web/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. var scriptid = 'plex-supreme';
  14.  
  15. var css = `
  16. /* Makes video controls a little lighter */
  17. .video-controls-overlay {background-color: rgba(0,0,0,.2);}
  18. .video-controls-overlay:hover {background-color: rgba(0,0,0,.8);}
  19. `;
  20.  
  21. function addGlobalStyle(css, id) {
  22. var head, style;
  23. head = document.getElementsByTagName('head')[0];
  24. if (!head) { return; }
  25. style = document.createElement('style');
  26. style.type = 'text/css';
  27. style.innerHTML = css;
  28. style.id = id;
  29. head.appendChild(style);
  30. }
  31.  
  32. function initialize() {
  33. addGlobalStyle(css, scriptid);
  34. }
  35.  
  36. initialize();