Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Google Goolag
- // @namespace liuwaeht8owliuealikdsjh
- // @description Replace Google logo with Goolag logo
- // @include https://www.google.*
- // @version 1
- // @grant none
- // ==/UserScript==
- var gLogoSrc = [
- 'https://kek.gg/i/Kvv4B.png',
- 'http://i.imgur.com/ViDDEN4.png',
- 'https://imgoat.com/thumb/5bfc9e0796/36054.png'
- ]
- var gLogo2Src = [
- 'https://kek.gg/i/47wdrp.png',
- 'http://i.imgur.com/YZhisdc.png',
- 'https://imgoat.com/thumb/5bfc9e0796/36061.png'
- ]
- // Main page
- var glogo = document.getElementById('hplogo');
- var logoSubText = document.getElementsByClassName('logo-subtext');
- if (glogo) {
- if (glogo.tagName == 'IMG') {
- glogo.src = gLogoSrc[Math.floor(Math.random()*gLogoSrc.length)];
- }
- if (glogo.tagName == "DIV") {
- glogo.style.backgroundImage ="url('"+ gLogoSrc[Math.floor(Math.random()*gLogoSrc.length)]+"')";
- glogo.removeChild(logoSubText[0]);
- }
- }
- // Search results
- var glogo2 = document.getElementById('logo');
- if (glogo2) {
- glogo2.childNodes[0].src = gLogo2Src[Math.floor(Math.random() * gLogo2Src.length)];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement