Plex Scrollbar Hide

try to take over the world!

  1. // ==UserScript==
  2. // @name Plex Scrollbar Hide
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://127.0.0.1:32400/web/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Your code here...
  15. function addGlobalStyle(css) {
  16. var head, style;
  17. head = document.getElementsByTagName('head')[0];
  18. if (!head) { return; }
  19. style = document.createElement('style');
  20. style.type = 'text/css';
  21. style.innerHTML = css;
  22. head.appendChild(style);
  23. }
  24.  
  25. //addGlobalStyle('.PrePlayPageContent-prePlayPageContent-1fFCHQ::-webkit-scrollbar { display: none !important; }');
  26. addGlobalStyle('.Scroller-vertical-VScFLT::-webkit-scrollbar { display: none !important; }');
  27. })();