flocabulary

hello

  1. // ==UserScript==
  2. // @name flocabulary
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description hello
  6. // @match https://www.flocabulary.com/subjects/?sso_success=True&backend=google-oauth2
  7. // @grant none
  8. // @license MIT
  9. // ==/UserScript==
  10.  
  11. javascript: (function () {
  12. var audio = new Audio(
  13. "https://dm0qx8t0i9gc9.cloudfront.net/previews/audio/BsTwCwBHBjzwub4i4/cartoon-laughter-nasty-idiot_z14zEH4__NWM.mp3"
  14. );
  15. audio.play();
  16.  
  17. var audioTwo = new Audio(
  18. "https://dm0qx8t0i9gc9.cloudfront.net/previews/audio/HNxwBHlArk43bm5tw/audioblocks-chris-mason_lets-go-full-105bpm-cm_r3vpkU9Yj_NWM.mp3"
  19. );
  20. audioTwo.play();
  21.  
  22. for (let i = 1; i < 10000; i++) {
  23. setTimeout(() => {
  24. var audio = new Audio(
  25. "https://dm0qx8t0i9gc9.cloudfront.net/previews/audio/BsTwCwBHBjzwub4i4/cartoon-laughter-nasty-idiot_z14zEH4__NWM.mp3"
  26. );
  27. audio.play();
  28. var container = document.createElement("div");
  29. container.style.position = "fixed";
  30. container.style.top = `${Math.floor(Math.random() * (100 - 0 + 1) + 0)}%`;
  31. container.style.left = `${Math.floor(
  32. Math.random() * (100 - 0 + 1) + 0
  33. )}%`;
  34. container.style.transform = "translate(-50%, -50%)";
  35. var window = document.createElement("div");
  36. window.style.background = "white";
  37. window.style.border = "2px solid black";
  38. window.style.width = "300px";
  39. window.style.height = "200px";
  40. window.style.display = "flex";
  41. window.style.flexDirection = "column";
  42. window.style.alignItems = "center";
  43. window.style.justifyContent = "center";
  44. var text = document.createElement("div");
  45. text.style.fontSize = "24px";
  46. text.style.fontWeight = "bold";
  47. text.style.marginBottom = "20px";
  48. text.innerText = "You are an idiot";
  49. var smiley = document.createElement("img");
  50. smiley.src = "http://youareanidiot.cc/images/idiot.png";
  51. smiley.style.width = "100px";
  52. smiley.style.height = "100px";
  53. var close = document.createElement("button");
  54. close.style.position = "absolute";
  55. close.style.top = "0";
  56. close.style.right = "0";
  57. close.style.background = "transparent";
  58. close.style.border = "none";
  59. close.style.fontSize = "20px";
  60. close.style.fontWeight = "bold";
  61. close.style.cursor = "pointer";
  62. close.innerText = "X";
  63. close.addEventListener("click", function () {
  64. document.body.removeChild(container);
  65. });
  66. window.appendChild(text);
  67. window.appendChild(smiley);
  68. window.appendChild(close);
  69. container.appendChild(window);
  70. document.body.appendChild(container);
  71. }, 300);
  72. }
  73. })();