🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/13 11:44:10
🔄 下次更新时间:2026/01/13 12:44:10
手动刷新缓存

Agar.io - Essential Script (modified)

Press “Shift” to center your mouse. Press "F" to eject 7 masses (tips: those green balls needs at most 7 masses to duplicate). Press "Q" to do maximum split.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         Agar.io - Essential Script (modified)
// @namespace    http://tampermonkey.net/
// @match        agar.io
// @version      1.0
// @description  Press “Shift” to center your mouse. Press "F" to eject 7 masses (tips: those green balls needs at most 7 masses to duplicate). Press "Q" to do maximum split.
// @author       Anger Edits (base script), vinc chen (modified script)
// @grant        none
// @run-at       document-end
// ==/UserScript==

// Global variables.
var SplitSpeed = 5;
var EjectSpeed = 150;

// User input.
window.addEventListener("keydown", keydown);
window.addEventListener("keyup", keyup);

// User determined events.
function keydown (event) {
    // Shift: "mouse.x" and "mouse.y" positions in relation to the canvas
    if (event.keyCode == 16) {
        X = window.innerWidth / 2;
        Y = window.innerHeight / 2;
        $("canvas").trigger($.Event("mousemove", {
            clientX: X,
            clientY: Y
        }));
    }
    // Q: maximum split
    if (event.keyCode == 81) {
        split();
        setTimeout(split, SplitSpeed);
        setTimeout(split, SplitSpeed * 2);
        setTimeout(split, SplitSpeed * 3);
    }
    // D: eject 7 balls (for green ball)
    if (event.keyCode == 68) {
        var count;
        for(count=0; count<7; count++){
            setTimeout(eject, EjectSpeed * count);
        }
        console.log(EjectSpeed);
    }
}

// Eject ball
function eject() {
    $("body").trigger($.Event("keydown", {
        keyCode: 87
    }));
    $("body").trigger($.Event("keyup", {
        keyCode: 87
    }));
}

// Split cell
function split() {
    $("body").trigger($.Event("keydown", {
        keyCode: 32
    }));
    $("body").trigger($.Event("keyup", {
        keyCode: 32
    }));
}