Greasy Fork 还支持 简体中文。

egres.io hax

movement using wasd teleport

נכון ליום 31-08-2017. ראה הגרסה האחרונה.

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         egres.io hax
// @namespace    http://egres.io/
// @version      1.0
// @description  movement using wasd teleport
// @author       Meatman2tasty
// @match        http://egres.io/
// @grant        none
// ==/UserScript==


document.addEventListener("keydown", function(a) { // press 'w' to go to top y
    if (a.keyCode == 87) {
        CplayerY = 60;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 's' to go to bottom y
    if (a.keyCode == 83) {
        CplayerY = 500;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'space' to go to middle x
    if (a.keyCode == 32) {
        CplayerX = 460;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'a' to go to left x
    if (a.keyCode == 65) {
        CplayerX = 60;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'd' to go to right x
    if (a.keyCode == 68) {
        CplayerX = 830;
    }
}, false);