0% Perfect Circle Solver

Draws a 0.0% perfect circle on neal.fun

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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