Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Plex mods
- // @namespace local.plex
- // @icon http://plex.tv/web/favicon.ico
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
- // @match *://app.plex.tv/desktop*
- // @grant GM_addStyle
- // ==/UserScript==
- (function() {
- 'use strict';
- GM_addStyle(`
- .myplexstuff {
- margin: 7px 10px 0;
- filter: contrast(3);
- transition: filter 0.5s ease;
- }
- .myplexstuff:hover {
- filter: contrast(1)
- }
- `);
- var tautuili_img = '<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 171 171" style=" fill:#ff0000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,171.99219v-171.99219h171.99219v171.99219z" fill="none"></path><g><path d="M2.63848,85.5c0,-45.75586 37.10566,-82.86152 82.86152,-82.86152c45.75586,0 82.86152,37.10566 82.86152,82.86152c0,45.75586 -37.10566,82.86152 -82.86152,82.86152c-45.75586,0 -82.86152,-37.10566 -82.86152,-82.86152z" fill="#666666"></path><path d="M61.28613,129.11836c0,2.27109 -1.83691,4.10801 -4.10801,4.10801h-16.23164c-2.27109,0 -4.10801,-1.83691 -4.10801,-4.10801v-27.92109c0,-2.27109 1.83691,-4.10801 4.10801,-4.10801h16.23164c2.27109,0 4.10801,1.83691 4.10801,4.10801zM95.28574,129.11836c0,2.27109 -1.83691,4.10801 -4.10801,4.10801h-16.23164c-2.27109,0 -4.10801,-1.83691 -4.10801,-4.10801v-48.19395c0,-2.27109 1.83691,-4.10801 4.10801,-4.10801h16.23164c2.27109,0 4.10801,1.83691 4.10801,4.10801zM144.04746,61.41973c0.36738,-0.76816 0.36738,-1.70332 -0.30059,-2.50488c-0.0668,-0.1002 -0.16699,-0.23379 -0.26719,-0.30059c-7.71504,-7.71504 -15.43008,-15.43008 -23.11172,-23.11172c-0.93516,-0.93516 -2.53828,-0.93516 -3.47344,0.0334c-7.74844,7.74844 -15.49687,15.49687 -23.21191,23.21191c-1.50293,1.50293 -0.40078,4.1748 1.73672,4.1748c3.44004,0 6.88008,0 10.32012,0v66.2291c0,2.27109 1.83691,4.10801 4.10801,4.10801h16.23164c2.27109,0 4.10801,-1.83691 4.10801,-4.10801v-66.2291c3.87422,0 7.71504,0 11.58926,0c0.1002,0 0.20039,0 0.30059,-0.0334c1.00195,-0.1002 1.66992,-0.70137 1.97051,-1.46953z" fill="#ffffff"></path></g></g></svg>';
- var webtools_img = '<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 171 171" style=" fill:#00ff00;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,171.99219v-171.99219h171.99219v171.99219z" fill="none"></path><g><path d="M168.36152,85.5c0,-45.75586 -37.10566,-82.86152 -82.86152,-82.86152c-45.75586,0 -82.86152,37.10566 -82.86152,82.86152c0,45.75586 37.10566,82.86152 82.86152,82.86152c45.75586,0 82.86152,-37.10566 82.86152,-82.86152z" fill="#666666"></path><path d="M133.76074,78.15234h-75.31348c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h75.31348c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984zM45.25488,78.15234h-8.01562c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h8.01563c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984zM133.76074,55.10742h-75.31348c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h75.31348c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984zM45.25488,55.10742h-8.01562c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h8.01563c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984z" fill="#ffffff"></path><g fill="#ffffff"><path d="M133.76074,101.19727h-75.31348c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h75.31348c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984zM45.25488,101.19727h-8.01562c-1.83691,0 -3.33984,1.50293 -3.33984,3.33984v8.01563c0,1.83691 1.50293,3.33984 3.33984,3.33984h8.01563c1.83691,0 3.33984,-1.50293 3.33984,-3.33984v-8.01562c0,-1.83691 -1.50293,-3.33984 -3.33984,-3.33984z"></path></g></g></g></svg>';
- var $ = window.jQuery;
- var addListenerInterval = setInterval(function(){
- var $_ready = $('div[class^=QuickSearch-container]');
- if($_ready.length){
- $('div[class^=NavBar-right]').prepend( `
- <a aria-label="Alerts" href="#!/settings/server/d5b3453c972a9bf1e1217db779e4c0e31ef24bc2/status/alerts" <i class="server-alert-icon glyphicon bullhorn" style="color:rgb(153, 153, 153);padding-right: 15px;"</i> </a>
- `);
- clearInterval(addListenerInterval);
- }
- }, 7000);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement