-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchimpTest.js
More file actions
36 lines (30 loc) · 889 Bytes
/
chimpTest.js
File metadata and controls
36 lines (30 loc) · 889 Bytes
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
// demo version
function run(){
if(state != 1){return true};
if(document.querySelector(`div[data-cellnumber = "40"]`) != null){ return true }
let index = 1
let vCurrent = document.querySelector(`div[data-cellnumber = "${index}"]`)
while (vCurrent !== null) {
vCurrent.click()
index += 1
vCurrent = document.querySelector(`div[data-cellnumber = "${index}"]`)
}
setTimeout(() => {
document.getElementsByClassName("css-de05nr")[0].click()
run()
}, 10);
}
state = 1;
run()
// Twitter version aka less than 280 chars?
// while(1){
// function gt(pI){return document.querySelector(`div[data-cellnumber = "${pI}"]`)}
// i = 1
// cu = gt(i)
// while (cu != null){
// cu.click()
// i += 1
// cu = gt(i)
// }
// document.getElementsByClassName("css-de05nr")[0].click()
// }