-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuicide.user.js
38 lines (34 loc) · 1.19 KB
/
Suicide.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ==UserScript==
// @name Suicider
// @version 0.1
// @description Secretly drops health to 1 or 2 by dropping and picking up the iTrackie
// @author Innokentiy ([email protected])
// @match http://mush.twinoid.com/
// @downloadURL https://raw.githubusercontent.com/insoln/mush/master/Suicide.user.js
// @grant none
// ==/UserScript==
/* jshint -W097 */
(function() {
'use strict';
// Your code here...
})();
function DropRadio() {
$('.heroSerialActions [webdata="'+$('*[data-id="SUPER_TALKY"]').attr("serial")+'"] a:contains("Drop")').click();
}
function PickRadio() {
$('.roomItemActions [webdata="'+$('*[data-id="SUPER_TALKY"]').attr("serial")+'"] a:contains("Pick up")').click();
}
function ToggleRadio() {
// Actions are asynchronous, so only one happens;
DropRadio();
PickRadio();
}
function PullTheTrigger() {
$("#dialog_body:contains('That wasn't supposed to happen. In the heat of the action you hurt yourself...')").parent().find("a").click();
if ($(".pvsmbar").find("span")[0].innerHTML>2) {
ToggleRadio();
setTimeout(PullTheTrigger,500);
}
}
console.log('Suicider activated');
setTimeout(PullTheTrigger,5000);