Agario Macro Eject

An agar.io extension to eject mass quickly

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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.

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

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

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 = 0; /* The number of milliseconds in between feeds, The greater you make it, the slower it shoots */

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

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;
	}
});