Greasy Fork 还支持 简体中文。

Rick roll on internet

You thought it was the internet, but it now me! Rick Astley

目前為 2021-10-13 提交的版本,檢視 最新版本

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