Website YEETER Macaroni EATER

no explanation needed.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Website YEETER Macaroni EATER
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  no explanation needed.
// @author       Aadoxide
// @match        *://*/*
// @icon         https://img.icons8.com/?size=256&id=EggHJUeUuU6C&format=png
// @license      WTFPL
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function applyIntenseAttraction() {
        const allElements = document.querySelectorAll('*');
        allElements.forEach((element) => {
            element.style.transition = 'all 0.2s ease-in-out';
            element.style.transform = 'scale(0.8) rotate(360deg)';
        });

        function updatePositions() {
            const centerX = window.innerWidth / 2;
            const centerY = window.innerHeight / 2;

            allElements.forEach((element) => {
                const rect = element.getBoundingClientRect();
                const deltaX = centerX - (rect.left + rect.width / 2);
                const deltaY = centerY - (rect.top + rect.height / 2);
                const newTransform = `translate(${deltaX}px, ${deltaY}px)`;

                if (
                    rect.top > window.innerHeight ||
                    rect.left > window.innerWidth ||
                    rect.bottom < 0 ||
                    rect.right < 0 ||
                    rect.bottom > window.innerHeight ||
                    rect.right > window.innerWidth
                ) {
                    element.style.transform = newTransform;
                } else {
                    element.style.transform += newTransform;
                }
            });

            if (!document.body.classList.contains('stopAttraction')) {
                requestAnimationFrame(updatePositions);
            }
        }

        updatePositions();
    }

    function applyGravityEffect() {
        const allElements = document.querySelectorAll('*');
        allElements.forEach((element) => {
            element.style.transition = 'all 3s ease-in-out';
            element.style.transform = 'translateY(100vh)';
        });
    }

    function fadeScreenToBlack() {
        const body = document.querySelector('body');
        body.style.transition = 'all 3s ease-in-out';
        body.style.backgroundColor = 'black';
        body.style.zIndex = '9999';
    }

    function redirectToImageSource() {
        window.location.href = 'https://cdn.discordapp.com/attachments/779931446991126541/1081614891116417104/1677947459418.png';
    }

    function runTheAbomination() {
            applyGravityEffect();
            setTimeout(applyIntenseAttraction, 300);
            setTimeout(fadeScreenToBlack, 3300);
            setTimeout(redirectToImageSource, 6300);
    }

    runTheAbomination()
})();