-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchsender.js
31 lines (22 loc) · 971 Bytes
/
searchsender.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
// search-result__action-button search-result__actions--primary artdeco-button artdeco-button--default artdeco-button--2 artdeco-button--secondary
var No_of_pages_to_go = 5; // Enter The Number of pages you want to go
var no_of_accounts_to_follow = 30; // Enter a Desired Number
// Enter n = 0 if want to follow by number_of_pages
// Enter n = 1 if want to follow by number_of_accounts_to_follow
var n = 0; // Enter Here 0 or 1
var x = document.getElementsByClassName('search-result__action-button search-result__actions--primary artdeco-button artdeco-button--default artdeco-button--2 artdeco-button--secondary');
var p = 0
while((No_of_pages_to_go || n!=0)){
if((n==1 || p==no_of_accounts_to_follow))break;
for(var i=0; i<x.length(),p!=no_of_accounts_to_follow; i++){
try{
x[i].click();
p+=1;
}
catch{
continue;
}
}
No_of_pages_to_go-=1;
var = document.getElementsById('ember2101').click();
}