-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwowReact.js
37 lines (29 loc) · 866 Bytes
/
wowReact.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
37
//alert("watup");
var profilePictureCount;
//function wowReact(){
var likeBtn = document.getElementsByClassName("_khz")
for(var i =0; i < likeBtn.length; i++)
{
likeBtn[i].click();
likeBtn[i].click();
}
var wows = document.querySelectorAll('[aria-label="Wow"]');
for(var i =0; i < wows.length; i++)
{
wows[i].click();
}
//}
function iterateThroughPhotos(){
var profilePictureCountString = document.getElementById('fbPhotoSnowliftPositionAndCount').innerHTML;
profilePictureCount = Number(profilePictureCountString.substring(profilePictureCountString.lastIndexOf(';')+1));
var delay=500; //.5 seconds
wowReact();
var delay = 250;
for(var i=0; i<profilePictureCount; i++){
setTimeout(function() {
document.getElementsByClassName('next')[0].click();
}, delay);
}
}
//wowReact();
//iterateThroughPhotos();