Auto Clicker Toggle randomized

Toggle autoclicker with E, randomized 95-100 CPS at cursor (every millisecond)

26.08.2025 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Auto Clicker Toggle randomized
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Toggle autoclicker with E, randomized 95-100 CPS at cursor (every millisecond)
// @author       You
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    let autoClicking = false;
    let clickInterval;
    let mouseX = 0, mouseY = 0;

    // Track mouse position
    document.addEventListener("mousemove", e => {
        mouseX = e.clientX;
        mouseY = e.clientY;
    });

    function startClicking() {
        if (clickInterval) return;

        function clickLoop() {
            if (!autoClicking) return;

            // Randomize CPS (95–100) *every millisecond*
            let cps = Math.floor(Math.random() * 6) + 95; // 95–100
            let delay = 1000 / cps; // convert to ms per click

            // Find element under cursor
            const target = document.elementFromPoint(mouseX, mouseY);
            if (target) {
                ["mousedown", "mouseup", "click"].forEach(type => {
                    target.dispatchEvent(new MouseEvent(type, {
                        bubbles: true,
                        cancelable: true,
                        view: window,
                        clientX: mouseX,
                        clientY: mouseY,
                        buttons: 1
                    }));
                });
            }

            // Schedule next click with freshly randomized delay
            clickInterval = setTimeout(clickLoop, delay);
        }
        clickLoop();
    }

    function stopClicking() {
        clearTimeout(clickInterval);
        clickInterval = null;
    }

    // Toggle with "E"
    document.addEventListener('keydown', function (e) {
        if (e.key.toLowerCase() === 'e') {
            autoClicking = !autoClicking;
            if (autoClicking) {
                console.log("AutoClicker ON");
                startClicking();
            } else {
                console.log("AutoClicker OFF");
                stopClicking();
            }
        }
    });
})();