// ==UserScript==
// @name FaLgOy's Macro for .io Games
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Sets show mass and dark theme to true, provides a tricksplit with E or 4, triplesplit with 3, doublesplit with D or 2, faster feeding with Q, and split with 1
// @author FaLgOy
// @match https://abs0rb.me/*
// @match https*://agar.io/*
// @match https://agarabi.com/*
// @match https://agarly.com/*
// @match https://en.agar.bio/*
// @match https://agar.biz/*
// @match https://germs.io/*
// @match https://vanish.io/*
// @grant none
// @run-at document-end
// @downloadURL https://update.greasyfork.icu/scripts/390310/FaLgOy%27s%20Macro%20for%20io%20Games.user.js
// @updateURL https://update.greasyfork.icu/scripts/390310/FaLgOy%27s%20Macro%20for%20io%20Games.meta.js
// ==/UserScript==
window.addEventListener('keydown', keydown);
window.addEventListener('keyup', keyup);
var Feed = false;
var Dingus = false;
var imlost = 25;
var instructions = document.getElementById("instructions");
instructions.style.lineHeight = "1.15";
instructions.style.fontSize = "12.5px";
instructions.style.marginTop = "-30px";
instructions.innerHTML += "
Press E or 4 to split 4x" +
" Press 3 to split 3x" +
" Press D or 2 to split 2x" +
" Press and hold Q for macro feed";
function keydown(event) {
if (event.keyCode == 81) {
Feed = true;
setTimeout(fukherriteindapussie, imlost);
} // Tricksplit
if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
ilikedick();
setTimeout(ilikedick, imlost);
setTimeout(ilikedick, imlost*2);
setTimeout(ilikedick, imlost*3);
} // Triplesplit
if (event.keyCode == 51 || event.keyCode == 69) {
ilikedick();
setTimeout(ilikedick, imlost);
setTimeout(ilikedick, imlost*2);
} // Doublesplit
if (event.keyCode == 68 || event.keyCode == 50) {
ilikedick();
setTimeout(ilikedick, imlost);
} // Split
if (event.keyCode == 49) {
ilikedick();
}// When Player Lets Go Of Q, It Stops Feeding
if (event.keyCode == 83) { //key S
X = window.innerWidth/2;
Y = window.innerHeight/2;
$("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
}// Freeze
}
function keyup(event) {
if (event.keyCode == 81) {
Feed = false;
}
if (event.keyCode == 79) {
Dingus = false;
}
}
// Feed Macro With Q
function fukherriteindapussie() {
if (Feed) {
window.onkeydown({keyCode: 87});
window.onkeyup({keyCode: 87});
setTimeout(fukherriteindapussie, imlost);
}
}
function ilikedick() {
$("body").trigger($.Event("keydown", { keyCode: 32}));
$("body").trigger($.Event("keyup", { keyCode: 32}));
}
//FaLgOy's Macro Pro Version :v