-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlinkedin-bulk-invitation-withdraw-script.js
More file actions
54 lines (47 loc) · 1.54 KB
/
Copy pathlinkedin-bulk-invitation-withdraw-script.js
File metadata and controls
54 lines (47 loc) · 1.54 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
Developed by: Md. Sabuj Sarker
Email: md.sabuj.sarker@gmail.com
Website: http://sabuj.me
You are free use this sceript anywhere with proper mentioning proper credit and contact info of the developer.
*/
(function run(){
console.log("Started");
var totalCount = 0;
var els = []
function populateEls(){
els = document.getElementsByClassName("artdeco-button__text");
}
function runWithdraw(){
console.log(els);
var idx = 0;
var len = els.length;
while(idx < len){
var el = els.item(idx);
console.log("IDX: " + idx + " El: " );
//console.log(el);
if (el){
setTimeout(function(elll, idx){
totalCount++;
console.log("running.. click "+totalCount);
elll.click();
if (len == idx+1){
console.log("Need to find new elems");
setTimeout(function(){
populateEls();
if(len == 0){
console.log("..........Done");
}
else{
console.log("Rerun withdraw...");
runWithdraw();
}
} , 1000);
}
}, idx * 300, el, idx);
}
idx++;
}
}
populateEls();
runWithdraw();
})();