Agario Nickname Extender

Allows an infinite nickname, and you can animate it! (check additional info for tutorial)

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Agario Nickname Extender
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Allows an infinite nickname, and you can animate it! (check additional info for tutorial)
// @author       You
// @match        https://agar.io/
// @grant        none
// ==/UserScript==
(function() {

    var nicknames = ["placeholder", "placeholder2"];
    var iter = -1;

    window.setInterval(function(){
        const ingame = agarApp.API._inGame;
        var l = nicknames.length;
        if(!ingame) {return;}
        if(l === 1) {return;}
        iter++;
        if(iter >= l) {iter = 0;}
        core.sendNick(nicknames[iter]);
    }, 2000);
    'use strict';
    document.addEventListener('keypress', function() {
        document.getElementById('nick').setAttribute("maxlength", "999");
        console.log(document.getElementById('nick').getAttribute("maxlength"));
    });
    const pb = document.getElementById('play')
    pb.onclick = function() {
        core.setMinimap(true);
        core.playersMinimap(true);
        const val = document.getElementById('nick').value;
        core.sendNick(val);
        var nicks = val.split('|');
        console.log(nicks);
        iter = -1;
        nicknames = nicks;
    }
})();