swordzio tricks

Support extension for SwOrDz.Io

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         swordzio tricks
// @namespace    Reiwilo09
// @version      1.7.0
// @description  Support extension for SwOrDz.Io
// @author       Reiwilo
// @match        *.swordz.io
// @grant        ur mum
// ==/UserScript==
// @license MIT

document.onkeydown = function (key) {
    switch(key.keyCode) {
        case 13: //on ENTER
            inputChat();
            break;
        case 81: //on Q
            changeCap(28);
            break;
        case 86: //on V
            changeCap(29);
            break;
        case 88: //on X
            changeCap(30);
            break;
        case 87:
            inputAttack(true)
            break;
    }
}
document.onkeyup = function (key) {
      switch(key.keyCode) {
           case 87:
             inputAttack(false)
             break; 
     }
}
 function onRender() {
    
    ctx.fillStyle = "red";
    ctx.fillText("Hat 28 [Q]", 80, 80);

    ctx.fillStyle = "red";
    ctx.fillText("Hat 29 [V]", 80, 100);

    ctx.fillStyle = "red";
    ctx.fillText("Hat 30 [X]", 80, 120);

    
    requestAnimationFrame(onRender);

}
 
onRender();