Agario Macro Eject

An agar.io extension to eject mass quickly

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

You will need to install an extension such as Stylus to install this style.

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

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

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

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

// ==UserScript==
// @name         Agario Macro Eject
// @namespace    Macro!
// @version      0.5
// @description  An agar.io extension to eject mass quickly
// @author       Vex
// @match        http://agar.io/*
// @match        http://agariohub.net/*
// @grant        none
// ==/UserScript==

var feedChar = "E"; /* The key you want to macro feed with */
var speed = 3; /* The number of milliseconds in between feeds, The greater you make it, the slower it shoots */

feedChar = feedChar.toUpperCase().charCodeAt(0);

var interval;
var switchy = false;
$(document).on('keydown', function(e) {
	if(e.keyCode == feedChar) {
		if(switchy) {
			return;
		}
		switchy = true;
		interval = setInterval(function() {
			$("body").trigger($.Event("keydown", {
				keyCode: 87
			}));
			$("body").trigger($.Event("keyup", {
				keyCode: 87
			}));
		}, speed);
	}
});

$(document).on('keyup', function(e) {
	if(e.keyCode == feedChar) {
		switchy = false;
		clearInterval(interval);
		return;
	}
});