WASD tp for BETA

allows to tp in beta of brofist.io

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         WASD tp for BETA
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  allows to tp in beta of brofist.io
// @author       CiNoP & ARCH
// @match        https://brofist.io/beta/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=brofist.io
// @license      GPL-3.0-only
// @grant        none
// ==/UserScript==
/* jshint esversion: 11 */

var c = Function.prototype.call;

Function.prototype.call = function(...a) {
    a[0]?.[0]?._name == 'Ref' && cinop(a[0][0]._components[0]?.mapManager)
    return c.apply(this, a)
};

function cinop(temp1) {
    document.body.onkeydown = (event) => {
    if (event.key.toLowerCase() == 'a') {
      temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x-300,
        temp1.characters[0].node.getPosition().y,0
      )
    }
    if (event.key.toLowerCase() == 'w') {
      temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x,
        temp1.characters[0].node.getPosition().y+300,0
      )
    }
    if (event.key.toLowerCase() == 'd') {
      temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x+300,
        temp1.characters[0].node.getPosition().y,0
      )
    }
    if (event.key.toLowerCase() == 's') {
      temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x,
        temp1.characters[0].node.getPosition().y-300,0
        )
    }
}
}