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 $ = 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/SERVERID/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