0% Perfect Circle Solver

Draws a 0.0% perfect circle on neal.fun

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         0% Perfect Circle Solver
// @namespace    http://tampermonkey.net
// @version      1.0
// @description  Draws a 0.0% perfect circle on neal.fun
// @author       AI
// @match        https://neal.fun
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Wait for the game to be loaded
    window.addEventListener('load', () => {
        // Create a button to trigger the cheat
        const button = document.createElement('button');
        button.innerText = 'Draw 0.0% Circle';
        button.style.position = 'absolute';
        button.style.top = '10px';
        button.style.left = '10px';
        button.style.zIndex = '9999';
        button.style.padding = '10px';
        document.body.appendChild(button);

        button.addEventListener('click', () => {
            const canvas = document.querySelector('canvas');
            if (!canvas) return;

            const rect = canvas.getBoundingClientRect();
            const center = { x: rect.width / 2, y: rect.height / 2 };
            const centerX = rect.left + center.x;
            const centerY = rect.top + center.y;

            // Simulate mouse drawing a chaotic path
            function dispatchMouseEvent(type, x, y) {
                const event = new MouseEvent(type, {
                    bubbles: true,
                    cancelable: true,
                    clientX: x,
                    clientY: y
                });
                canvas.dispatchEvent(event);
            }

            // Start drawing
            dispatchMouseEvent('mousedown', centerX, centerY);

            let angle = 0;
            const steps = 100;
            const radius = 100;

            // Create chaotic, non-circular movements
            const interval = setInterval(() => {
                angle += 0.5;
                // Use a non-circular pattern (fast spiral/scribble)
                const x = centerX + Math.cos(angle) * (radius + Math.sin(angle * 10) * 50);
                const y = centerY + Math.sin(angle) * (radius + Math.cos(angle * 10) * 50);

                dispatchMouseEvent('mousemove', x, y);

                if (angle > 15) {
                    clearInterval(interval);
                    dispatchMouseEvent('mouseup', x, y);
                }
            }, 10);
        });
    });
})();