daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Aug 8th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Google Goolag
  3. // @namespace   liuwaeht8owliuealikdsjh
  4. // @description Replace Google logo with Goolag logo
  5. // @include     https://www.google.*
  6. // @version     1
  7. // @grant       none
  8. // ==/UserScript==
  9.  
  10. var gLogoSrc = [
  11.   'https://kek.gg/i/Kvv4B.png',
  12.   'http://i.imgur.com/ViDDEN4.png',
  13.   'https://imgoat.com/thumb/5bfc9e0796/36054.png'
  14. ]
  15.  
  16. var gLogo2Src = [
  17.   'https://kek.gg/i/47wdrp.png',
  18.   'http://i.imgur.com/YZhisdc.png',
  19.   'https://imgoat.com/thumb/5bfc9e0796/36061.png'
  20. ]
  21.  
  22. // Main page
  23. var glogo = document.getElementById('hplogo');
  24. var logoSubText = document.getElementsByClassName('logo-subtext');
  25. if (glogo) {
  26.    if (glogo.tagName == 'IMG') {
  27.      glogo.src = gLogoSrc[Math.floor(Math.random()*gLogoSrc.length)];
  28.    }
  29.   if (glogo.tagName == "DIV") {
  30.     glogo.style.backgroundImage  ="url('"+ gLogoSrc[Math.floor(Math.random()*gLogoSrc.length)]+"')";
  31.     glogo.removeChild(logoSubText[0]);
  32.   }
  33. }
  34.  
  35. // Search results
  36. var glogo2 = document.getElementById('logo');
  37. if (glogo2) {
  38.   glogo2.childNodes[0].src = gLogo2Src[Math.floor(Math.random() * gLogo2Src.length)];
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top