leathan

leathan's cleaner (Pastebin.com & Google.com)

May 22nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Cleaner
  3. // @namespace    http://leathan.xyz/
  4. // @version      0.3
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        http://www.google.com
  8. // @match        https://www.google.com
  9. // @match        http://*.pastebin.com/*
  10. // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
  11. // @grant        none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15.     'use strict';
  16.  
  17.     // Check if domain is Pastebin
  18.     try {
  19.         $('.content_right_menu').eq(1).hide();
  20.         $('.banner_728').eq(0).hide();
  21.         $('#abrpm').hide();
  22.         $('#abrpm2').hide();
  23.         $('#steadfast').hide();
  24.         $('#footer').hide();
  25.         $('#notice').hide();
  26.     } catch(err) { }
  27.  
  28.     // Check if domain is Google
  29.     try {
  30.         document.getElementById("gbqfbb").style.display="none"; // Google brand area
  31.         $('div').filter(function(){ return this.className.match(/.*promo.*/) }) .hide() // dynamic add
  32.     } catch(err) { }
  33.  
  34. })();
Add Comment
Please, Sign In to add comment