-
Notifications
You must be signed in to change notification settings - Fork 26
/
clickbot-v2.js
32 lines (27 loc) · 893 Bytes
/
clickbot-v2.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
/* Get Vue instance */
const app = document.querySelector('#app').__vue__;
/* Set country code */
document.cookie = "country=MY;expires=Sat, 31 Dec 2022 12:00:00 UTC;path=/";
/* Make sure you click at least once */
document.dispatchEvent(new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
}));
/* Set iterator */
setInterval(() => { click() }, 29000);
/* Function: Set accumulator to max limits */
function click() {
/* API rate limits = 800 clicks per 30 seconds */
app.accumulator = 800;
/* Prevent bot detection */
app.bot = false;
app.sequential_max_pops = 0;
/* Increment pop count - REMOVE THIS LINE TO DISABLE POP ANIMATION */
pop();
}
/* Function: Increment pop count */
function pop() {
for (var i = 0; i <= 800; i++) {
setTimeout(() => { document.dispatchEvent(new KeyboardEvent('keydown', { key: 'g', ctrlKey: true })) }, 5);
}
}