Last active
March 15, 2018 14:16
-
-
Save agentlame/a94708d5b117b2b36eca35ae7a09d02a to your computer and use it in GitHub Desktop.
Larger edit window in Plex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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