Advertisement
raddacle

Plex Alerts

Nov 17th, 2019
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.09 KB | None | 0 0
  1. // ==UserScript==
  2. // @name         Plex mods
  3. // @namespace    local.plex
  4. // @icon         http://plex.tv/web/favicon.ico
  5. // @require      https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
  6. // @match        *://app.plex.tv/desktop*
  7. // @grant        GM_addStyle
  8. // ==/UserScript==
  9.  
  10. (function() {
  11.     'use strict';
  12.     GM_addStyle(`
  13.           .myplexstuff {
  14.               margin: 7px 10px 0;
  15.               filter: contrast(3);
  16.               transition: filter 0.5s ease;
  17.           }
  18.           .myplexstuff:hover {
  19.               filter: contrast(1)
  20.           }
  21.     `);
  22.  
  23.  
  24.     var $ = window.jQuery;
  25.     var addListenerInterval = setInterval(function(){
  26.         var $_ready = $('div[class^=QuickSearch-container]');
  27.         if($_ready.length){
  28.             $('div[class^=NavBar-right]').prepend( `
  29.  
  30.     <a aria-label="Alerts" href="#!/settings/server/SERVERID/status/alerts" <i class="server-alert-icon glyphicon bullhorn" style="color:rgb(153, 153, 153);padding-right: 15px;"</i> </a>
  31.  
  32.  
  33. `);
  34.             clearInterval(addListenerInterval);
  35.         }
  36.     }, 7000);
  37. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement