Astr.io - Respawn on R

Click R to respawn in Astr.io.

Tác giả
Bartek Jarząbek
Cài đặt hàng ngày
0
Số lần cài đặt
153
Đánh giá
0 0 0
Phiên bản
0.1.2
Đã tạo
10-02-2020
Đã cập nhật
10-02-2020
Size
756 Byte
Giấy phép
N/A
Áp dụng cho

// ==UserScript==
// @name Astr.io - Respawn on R
// @namespace http://gronlokke.github.io/
// @version 0.1.2
// @description Click R to respawn in Astr.io.
// @author Gronlokke
// @match http://astr.io/*
// ==/UserScript==
/* jshint ignore:start */
var key = 82; // Change this to any key you want, you can get the key code on keycode.info.

window.onload = function() {
var respawn = document.getElementsByClassName("rspwnBtn")[0];
var play = document.getElementById("playBtn");
window.onkeydown = function(e) {
if (e.keyCode == key && document.activeElement == document.body) {
rspwn(document.getElementById('nick').value);
play.click();
}
}
}
/* jshint ignore:end */