Macro para CELL.SH

Dê massa rapidamente e splite rapidamente também! Use as teclas W e T.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

ผู้เขียน
Miguel Gameplays
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
52
คะแนน
0 0 0
เวอร์ชัน
0.0.1.20170301012758
สร้างเมื่อ
15-03-2021
อัปเดตเมื่อ
15-03-2021
Size
1.38 กิโลไบต์
สัญญาอนุญาต
ไม่มี
ปรับใช้กับ

// ==UserScript==
// @name Macro para CELL.SH
// @author MIGUEL FERNANDES
// @description Dê massa rapidamente e splite rapidamente também! Use as teclas W e T.
// @match http://agar.io/*
// @match https://cell.sh/
// @match http://es.agareoz.com/*
// @grant none
// @version 0.0.1.20170301012758
// @namespace https://greasyfork.org/users/106355
// ==/UserScript==

window.settings = {
start: function(){
this.macros();
},

macros: function(){
window.addEventListener('keydown', keydown);
window.addEventListener('keyup', keyup);

var ejecting = false;
var splitSpeed = 26;
var ejectSpeed = 28;

function keydown(event) {
if (event.keyCode == 87 && ejecting === false) {
ejecting = true;
setTimeout(eject, ejectSpeed);
}
if (event.keyCode == 84) {
split();
setTimeout(split, splitSpeed);
setTimeout(split, splitSpeed*2);
setTimeout(split, splitSpeed*3);
}
}

function keyup(event) {
if (event.keyCode == 87) {
ejecting = false;
}
}

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

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