Greasy Fork

Agario Mass - e

Very fast macro to enhance gameplay!

目前为 2016-01-15 提交的版本。查看 最新版本

// ==UserScript==
// @name         Agario Mass - e
// @namespace    Macro!
// @version      2.0
// @description  Very fast macro to enhance gameplay!
// @author       Unknown
// @match        http://agario.link/
// @grant        none
// ==/UserScript==

var interval;
var switchy = false;
$(document).on('keydown',function(e){

if(e.keyCode == 69){

if(switchy){
return;
}
switchy = true;
interval = setInterval(function() {

$("body").trigger($.Event("keydown", { keyCode: 87}));
$("body").trigger($.Event("keyup", { keyCode: 87}));
}, 3);//increase this number to make it fire them out slower
}
})

$(document).on('keyup',function(e){

if(e.keyCode == 69){

switchy = false;
clearInterval(interval);
return;
}
})

var f5 = setInterval(chat,100);

function chat(){

            document.getElementById("chat_textbox").onkeyup = function() {
                if (this.value == "1") {
                    this.value = "Virus him!";
                }
                 if (this.value == "2") {
                    this.value = "Load me!";
                }
                if (this.value == "3") {
                    this.value = "Split him!";
                }
            }
       
}