Skip to content

Instantly share code, notes, and snippets.

@agentlame
Last active March 15, 2018 14:16
Show Gist options
  • Save agentlame/a94708d5b117b2b36eca35ae7a09d02a to your computer and use it in GitHub Desktop.
Save agentlame/a94708d5b117b2b36eca35ae7a09d02a to your computer and use it in GitHub Desktop.
Larger edit window in Plex
// ==UserScript==
// @name Larger edit window in Plex
// @namespace https://www.reddit.com/r/PleX/comments/84fr62/_/dvp5xmc/
// @version 0.2
// @description Same as the name.
// @author /u/CuedUp
// @match *://app.plex.tv/desktop*
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
(function() {
addGlobalStyle('.modal-lg>.modal-dialog {width: 75vw;}');
addGlobalStyle('.modal-body-scroll {max-height: 75vh;}');
addGlobalStyle('.modal-body-with-panes .modal-body-pane {height: 100vh;}');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment