Chill Guy Auto-Clicker

First time posting see if it works if it does not reach out to me and I will try to fix it.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/565761/1752016/Chill%20Guy%20Auto-Clicker.js

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         Chill Guy Auto-Clicker
// @match        *://*chillguy*/*
// @match        *://game.azgame.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    // Wait for game to load
    setTimeout(() => {
        const btn = document.createElement('button');
        btn.textContent = '🖱️ AUTO CLICK';
        btn.style.cssText = 'position:fixed;top:10px;right:10px;z-index:999999;padding:10px;background:#4CAF50;color:white;border:none;border-radius:5px;cursor:pointer;font-size:16px;';
        
        let clicking = false;
        let interval;
        
        btn.onclick = () => {
            clicking = !clicking;
            if (clicking) {
                btn.style.background = '#f44336';
                btn.textContent = '⏹️ STOP CLICKING';
                interval = setInterval(() => {
                    const x = window.innerWidth/2;
                    const y = window.innerHeight/2;
                    const el = document.elementFromPoint(x, y);
                    if (el) {
                        el.click();
                        el.dispatchEvent(new Event('click', {bubbles:true}));
                    }
                }, 50);
            } else {
                clearInterval(interval);
                btn.style.background = '#4CAF50';
                btn.textContent = '🖱️ AUTO CLICK';
            }
        };
        
        document.body.appendChild(btn);
        console.log('Auto-clicker button added! Click the green button to start.');
    }, 3000);
})();