Advertisement
Guest User

Untitled

a guest
May 28th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. // ==UserScript==
  2. // @version 1.0
  3. // @name XDDDDDDDDDDD
  4. // @namespace joo
  5. // @description XD
  6. // @icon http://www.google.com/favicon.ico
  7. // @match http*://*.google.*/*
  8. // @include http*://*.google.*/*
  9. // @license CC BY-SA
  10. // @license https://creativecommons.org/licenses/by-sa/4.0
  11. // ==/UserScript==
  12. var loadingInstant = false;
  13. var instantInterval = null;
  14. function changeLogo() {
  15. var GoogleLogo = document.getElementById("lga");
  16. var searchLogo = document.getElementById("gbqlw");
  17. if (loadingInstant) {
  18. if (document.getElementById("sfcnt") == null) {
  19. return;
  20. }
  21. clearInterval(instantInterval);
  22. loadingInstant = false;
  23. }
  24. if (GoogleLogo != null) {
  25. //GoogleLogo.innerHTML = '<a href="https://www.gunsamerica.com/NewToday/"><img id="hplogo" src="https://i.imgur.com/SXTWY8m.png" style="width:320px;height:116px;margin-top:95px;margin-left:-5px" alt="" />';
  26. GoogleLogo.innerHTML = '<a href="https://www.gunsamerica.com/NewToday/"><img id="hplogo" src="https://i.imgur.com/SXTWY8m.png" style="width:550px;height:200px;margin-top:10px;margin-left:-5px" alt="" />';
  27. }
  28. }
  29. window.addEventListener("hashchange", changeLogo, false);
  30. if (window.location.hash != "") {
  31. loadingInstant = true;
  32. instantInterval = setInterval(changeLogo, 100);
  33. }
  34. changeLogo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement