-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAutoRoll.js
36 lines (33 loc) · 863 Bytes
/
AutoRoll.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
// ==UserScript==
// @name Heet Bhimani
// @namespace MAhaK6al
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://freebitco.in/?op=home
// @grant none
// ==/UserScript==
(function(){
var freebitcoin = {
init: function() {
this.checkBox = $('#play_without_captchas_button');
this.rollBtn = $('#free_play_form_button');
this.checkBoxVisible = this.checkBox.is(':visible');
this.rollBtnVisible = this.rollBtn.is(':visible');
if(this.checkBoxVisible) {
this.handleClick(this.checkBox);
this.handleClick(this.rollBtn);
} else if(this.rollBtnVisible) {
this.handleClick(this.rollBtn);
}
},
handleClick: function(elem) {
setTimeout(function(){
elem.click();
}, 1000);
}
};
setTimeout(function(){
freebitcoin.init();
}, 5000);
})();