Website YEETER Macaroni EATER

no explanation needed.

  1. // ==UserScript==
  2. // @name Website YEETER Macaroni EATER
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description no explanation needed.
  6. // @author Aadoxide
  7. // @match *://*/*
  8. // @icon https://img.icons8.com/?size=256&id=EggHJUeUuU6C&format=png
  9. // @license WTFPL
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. function applyIntenseAttraction() {
  17. const allElements = document.querySelectorAll('*');
  18. allElements.forEach((element) => {
  19. element.style.transition = 'all 0.2s ease-in-out';
  20. element.style.transform = 'scale(0.8) rotate(360deg)';
  21. });
  22.  
  23. function updatePositions() {
  24. const centerX = window.innerWidth / 2;
  25. const centerY = window.innerHeight / 2;
  26.  
  27. allElements.forEach((element) => {
  28. const rect = element.getBoundingClientRect();
  29. const deltaX = centerX - (rect.left + rect.width / 2);
  30. const deltaY = centerY - (rect.top + rect.height / 2);
  31. const newTransform = `translate(${deltaX}px, ${deltaY}px)`;
  32.  
  33. if (
  34. rect.top > window.innerHeight ||
  35. rect.left > window.innerWidth ||
  36. rect.bottom < 0 ||
  37. rect.right < 0 ||
  38. rect.bottom > window.innerHeight ||
  39. rect.right > window.innerWidth
  40. ) {
  41. element.style.transform = newTransform;
  42. } else {
  43. element.style.transform += newTransform;
  44. }
  45. });
  46.  
  47. if (!document.body.classList.contains('stopAttraction')) {
  48. requestAnimationFrame(updatePositions);
  49. }
  50. }
  51.  
  52. updatePositions();
  53. }
  54.  
  55. function applyGravityEffect() {
  56. const allElements = document.querySelectorAll('*');
  57. allElements.forEach((element) => {
  58. element.style.transition = 'all 3s ease-in-out';
  59. element.style.transform = 'translateY(100vh)';
  60. });
  61. }
  62.  
  63. function fadeScreenToBlack() {
  64. const body = document.querySelector('body');
  65. body.style.transition = 'all 3s ease-in-out';
  66. body.style.backgroundColor = 'black';
  67. body.style.zIndex = '9999';
  68. }
  69.  
  70. function redirectToImageSource() {
  71. window.location.href = 'https://cdn.discordapp.com/attachments/779931446991126541/1081614891116417104/1677947459418.png';
  72. }
  73.  
  74. function runTheAbomination() {
  75. applyGravityEffect();
  76. setTimeout(applyIntenseAttraction, 300);
  77. setTimeout(fadeScreenToBlack, 3300);
  78. setTimeout(redirectToImageSource, 6300);
  79. }
  80.  
  81. runTheAbomination()
  82. })();