Advertisement
Gfy

srrdb.user.js

Gfy
Dec 6th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           srrdb.com
  3. // @author         Gfy
  4. // @namespace      http://www.srrdb.com/
  5. // @description    Removes action notification box.
  6. // @include        http://www.srrdb.com/*
  7. // ==/UserScript==
  8.  
  9. // for GreaseMonkey compatibility
  10. if (typeof unsafeWindow != "undefined") {
  11.     window = unsafeWindow;
  12. }
  13. //"Opera’s implementation appears to be just perfect..."
  14. //http://frans.lowter.us/archives/2006/07/13/opera-user-js-and-greasemonkey-interoperability/
  15.  
  16. /**
  17.  * When the site loads, check which page we are and add functionality.
  18.  */
  19. window.addEventListener(
  20.   'load',
  21.   function (e) {
  22.     if( document.documentURI.match("/release/details/") ) {
  23.         $('.alert-success').remove();
  24.     }
  25.   },
  26.   false
  27. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement