Website YEETER Macaroni EATER

no explanation needed.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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()
})();