-
1.
1. open js console while standing in the spot you want to spin on
-
2.
2. make sure the focus is not on the chat window or it won't work
-
3.
3. Paste this into js dev console:
-
4.
-
5.
function simulateKey (keyCode, type, modifiers) {
-
6.
var evtName = (typeof(type) === "string") ? "key" + type : "keydown";
-
7.
var modifier = (typeof(modifiers) === "object") ? modifier : {};
-
8.
var event = document.createEvent("HTMLEvents");
-
9.
event.initEvent(evtName, true, false);
-
10.
event.keyCode = keyCode;
-
11.
for (var i in modifiers) {
-
12.
event[i] = modifiers[i];
-
13.
}
-
14.
document.dispatchEvent(event);
-
15.
}
-
16.
let currentState = 0;
-
17.
-
18.
function progress() {
-
19.
simulateKey(currentState+37, 'up');
-
20.
currentState = (currentState+1)%4;
-
21.
simulateKey(currentState+37);
-
22.
}
-
23.
-
24.
4. to start spinning, enter:
-
25.
let interval = setInterval(progress, 650)
-
26.
-
27.
650 is time per spin - 650ms. Note that due to lag lower values are likely to look like random movements elsewhere and only look good for you.
-
28.
-
29.
5. To stop spinning, enter
-
30.
clearInterval(interval)
-
31.
(to start spinning again, repeat step 4 without the 'let' word)
-
32.
-
33.
(it may be a good idea to prepare the stop command in the input field)
-
34.
alternatively, just restart the tab
by Guest
by Guest
by Guest
by Guest
by Guest