Ov+Mhod's Macro

Fastest W-Feeding, , (D) Doublesplit Macro, (A) Max Split, and More to be Added!

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!)

Autor
Relsxx
Installationen heute
0
Installationen gesamt
132
Bewertungen
0 0 0
Version
1.1.2
Erstellt am
16.12.2023
Letzte Aktualisierung
16.12.2023
Größe
2,03 KB
Lizenz
n/a
Wird angewandt auf

// ==UserScript==
// @name Ov+Mhod's Macro
// @version 1.1.2
// @description Fastest W-Feeding, , (D) Doublesplit Macro, (A) Max Split, and More to be Added!
// @author Ov And Mhod
// @match http://micos.io/*
// @match http://germs.io/*
// @match http://agar.io/*
// @grant none
// @run-at document-end
// @namespace https://greasyfork.org/users/101624
// @downloadURL https://update.sleazyfork.org/scripts/27269/Ov%2BMhod%27s%20Macro.user.js
// @updateURL https://update.sleazyfork.org/scripts/27269/Ov%2BMhod%27s%20Macro.meta.js
// ==/UserScript==


document.getElementById("instructions").innerHTML += "

Macro byOvAndMhod

";


window.addEventListener('keydown', keydown);
window.addEventListener('keyup', keyup);

var SplitDown = false;
var EjectDown = false;
var speed = 0;
var speed2 = 100;

function keydown(event) {
if (event.keyCode == 87 && EjectDown === false) { //Change "87" to "69" if you want "E" to feed!
EjectDown = true;
setTimeout(eject, speed);
}
else if (event.keyCode == 65 && SplitDown === false) { // Key [A] Maxsplits
SplitDown = true;
setTimeout(split2, speed);
}
else if (event.keyCode == 68) { // Key [D] Doublesplits
split();
setTimeout(split, speed2);
}
}

function keyup(event) {
if (event.keyCode == 87) {
EjectDown = false;
}
else if (event.keyCode == 65) {
SplitDown = false;
}
}

function eject() {
if (EjectDown) {
window.onkeydown({keyCode: 87});
window.onkeyup({keyCode: 87});
setTimeout(eject, speed);
}
}

function split() {
$("body").trigger($.Event("keydown", { keyCode: 32}));
$("body").trigger($.Event("keyup", { keyCode: 32}));
}

function split2() {
if (SplitDown) {
$("body").trigger($.Event("keydown", { keyCode: 32}));
$("body").trigger($.Event("keyup", { keyCode: 32}));
setTimeout(split2, speed);
}
}