Rickroll on google

You thought it was google, but it was I Rick Astley

  1. // ==UserScript==
  2. // @name Rickroll on google
  3. // @namespace https://github.com/TheFantasticWarrior/GoogleRickRoll
  4. // @description You thought it was google, but it was I Rick Astley
  5. // @author TFW
  6. // @include *.google.com*/*
  7. // @run-at document-start
  8. // @version 69.420
  9. // ==/UserScript==
  10. (function() {
  11. var css = "";
  12. css += [
  13. "body{",
  14. " background: transparent url(https://i.pinimg.com/originals/88/82/bc/8882bcf327896ab79fb97e85ae63a002.gif) center center fixed !important;",
  15. " background-size: cover !important;",
  16. " background-repeat: no-repeat !important;",
  17. "}",
  18. "div.g{",
  19. " background: rgba(237,237,248, 0.7) !important;",
  20. "}",
  21. "",
  22. "#appbar{",
  23. " background:transparent!important;",
  24. "}",
  25. "",
  26. "g-inner-card{",
  27. " background: rgba(237,237,248, 0.7) !important;",
  28. "}",
  29. "#hdtb {",
  30. " background: transparent !important;",
  31. "}",
  32. "",
  33. ".sfbg, .kp-blk{",
  34. " background: transparent !important;",
  35. "}",
  36. "",
  37. "#hdtbSum{",
  38. " background: transparent !important;",
  39. "}",
  40. ].join("\n");
  41. if (typeof GM_addStyle != "undefined") {
  42. GM_addStyle(css);
  43. } else if (typeof PRO_addStyle != "undefined") {
  44. PRO_addStyle(css);
  45. } else if (typeof addStyle != "undefined") {
  46. addStyle(css);
  47. } else {
  48. var node = document.createElement("style");
  49. node.type = "text/css";
  50. node.appendChild(document.createTextNode(css));
  51. var heads = document.getElementsByTagName("head");
  52. if (heads.length > 0) {
  53. heads[0].appendChild(node);
  54. } else {
  55. document.documentElement.appendChild(node);
  56. }
  57. }
  58. //var rick =document.createElement("div");
  59. //rick.style="top:100;right:50%;z-index:420;position:absolute;";
  60. var audio = new Audio("https://www.myinstants.com/media/sounds/epic_0s1iP1t.mp3");
  61. audio.loop=true;
  62. //var sound=document.createElement("button");
  63. //sound.innerHTML="Sound On";
  64. //sound.onclick=function(){audio.play();console.log("rolled")};
  65. //rick.appendChild(sound);
  66. //document.body.appendChild(rick);
  67. audio.play();
  68. })();