Minefun.io Autoclicker Original

Autoclicker de 10ms para MINEFUN.IO - Mayús Derecho

لا ينبغي أن لا يتم تثبيت هذا السكريت مباشرة. هو مكتبة لسكبتات لتشمل مع التوجيه الفوقية // @require https://update.greatest.deepsurf.us/scripts/575989/1811963/Minefunio%20Autoclicker%20Original.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Minefun.io Autoclicker Original
// @namespace    http://tampermonkey.net
// @version      7.0
// @description  Autoclicker de 10ms para MINEFUN.IO - Mayús Derecho
// @author       Creativo
// @match        *://minefun.io/*
// @match        *://www.minefun.io/*
// @icon         https://minefun.io
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    let encendido = false;
    let loop = null;

    // Función para golpear al aire
    const golpear = () => {
        const canvas = document.querySelector('canvas') || document.body;
        const e = { bubbles: true, cancelable: true, view: window, button: 0, buttons: 1 };

        canvas.dispatchEvent(new MouseEvent('mousedown', e));
        setTimeout(() => {
            canvas.dispatchEvent(new MouseEvent('mouseup', { ...e, buttons: 0 }));
            canvas.dispatchEvent(new MouseEvent('click', e));
        }, 2);
    };

    // Activa con Mayús Derecho (ShiftRight)
    window.addEventListener('keydown', (e) => {
        if (e.code === 'ShiftRight') {
            encendido = !encendido;
            
            if (encendido) {
                console.log("%c >>> ATAQUE ACTIVADO <<<", "color: lime; font-weight: bold;");
                loop = setInterval(golpear, 10);
            } else {
                console.log("%c >>> ATAQUE DESACTIVADO <<<", "color: red; font-weight: bold;");
                clearInterval(loop);
            }
        }
    }, true);
})();