Swordz.io Fast teleport

Support extension for SwOrDz.Io

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Swordz.io Fast teleport
// @namespace    Alpha
// @version      1.1.3
// @description  Support extension for SwOrDz.Io
// @author       Alpha
// @match        *.swordz.io
// ==/UserScript==
// @license MIT
 
var respawn = false;
 
function onUpdate() {
    if(respawn && document.getElementById('homeDiv').style.display === 'block') {
        document.getElementById('signDiv-signIn').click()
     } else {
        deathTimer = 60;
     }
}
setInterval(onUpdate, 150)
document.onkeydown = function(e) {
   switch(e.keyCode) {
      case 68:
         respawn = !respawn
         break;
      case 87:
         inputAttack(true)
         break;
       }
}
 
function onRender() {
    ctx.fillStyle = respawn? 'green': 'red'
    ctx.fillText('Auto Respawn[D]', 120, 140)
 
        ctx.beginPath(),
        ctx.arc(WIDTH - 155 + 140 * Player.leaderboardTopX / mapWIDTH, HEIGHT - 60 - 155 + 140 * Player.leaderboardTopY / mapHEIGHT, 5.5, 0, 2 * Math.PI),
        ctx.fillStyle = '#ff0000',
        ctx.fill(),
        ctx.lineWidth = 5,
        ctx.strokeStyle = '#333',
        ctx.stroke();
    requestAnimationFrame(onRender)
}
onRender()