Agar io script by HeadshoT ♥

By HeadshoT

目前为 2016-04-16 提交的版本。查看 最新版本

// ==UserScript==
// @name         Agar io script by HeadshoT ♥
// @namespace    HeadshoT
// @version      1
// @description  By HeadshoT
// @author       HeadshoT
// @match        http://agar.io/
// @grant        none
// ==/UserScript==
'use strict';

//presets
setShowMass(true); // Show your mass
setDarkTheme(true); // Enable Dark theme by default
$("#nick").val("Ɲɐʗ ♥нєαdѕнσт♥"); // SET  yYOUR NAME - / MAIS TON NOM ICI

//v1
//Press a will fire upto 8 feeds
/*$(document).on('keydown',function(e){
if(e.keyCode == 69){
for(var i = 0; i<8; i++){
$("body").trigger($.Event("keydown", { keyCode: 87}));
$("body").trigger($.Event("keyup", { keyCode: 87}));
}
}
})
*/

//v2
//Press a will fire upto 8 feeds
/*$(document).on('keyup',function(e){
if(e.keyCode == 69){
var count = 0;
var interval = setInterval(function() {
if(count > 7){
clearInterval(interval);
return;
}
count++
console.log('firing')
$("body").trigger($.Event("keydown", { keyCode: 87}));
$("body").trigger($.Event("keyup", { keyCode: 87}));
}, 50);
}
})*/

//v3
//Press Q will fire upto 20 feeds
/*var interval;
var theSwitch = false;
$(document).on('keyup',function(e){
if(e.keyCode == 69){
var count = 0;
if(theSwitch){
theSwitch = false;
clearInterval(interval);
return;
}
theSwitch = true;
interval = setInterval(function() {
if(count > 20){ //Change this number if you want more
theSwitch = false;
clearInterval(interval);
return;
}
count++
console.log('firing')
$("body").trigger($.Event("keydown", { keyCode: 87}));
$("body").trigger($.Event("keyup", { keyCode: 87}));
}, 10);//increase this number to make it fire them out slower
}
})*/

//v4
//Hold a down and it will keep firing untill you take your finger off!
console.log('called');
var interval;
var switchy = false;
$(document).on('keydown',function(x){
    console.log('keydown e.keyCode="'+x.keyCode+'"');
    if(x.keyCode == 88){
        console.log('keydown 88, switchy '+switchy);
        if(switchy){
            return;
        }
        switchy = true;
        interval = setInterval(function() {
            console.log('firing');
            $("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(x){
    console.log('keyup x.keyCode="'+x.keyCode+'"');
    if(x.keyCode == 88){
        console.log('stop firing');
        switchy = false;
        clearInterval(interval);
        return;
    }
})

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址