Javascript code to Click on all "Add Friend" buttons on facebook

Moiz Ahmed

Newbie
Joined
Mar 5, 2017
Messages
33
Reaction score
4
Hello everyone, I got a javascript code which cancels all Sent Friend requests, and good thing is.. It also works on android , simply install "Inspect and edit html live" browser app fron playstore, open it, open m . Facebook . Com, open sent requests page and go to options, open "Javascript console prototype" , paste the code here and click on "send" , all "Undo" buttons will be clicked that are shown on that page. But mu question is, can any of you beautiful guys modify it to click on all "Add friend" buttons instead? Using the same method of android app.. Thank you so much.. Code is :
javascript:var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
for(var i=0; i<inputs.length;i++) {
inputs.click();
 
Okay I figured out how to modify it to click on all "add friend" buttons, but please can anyone tell me how to set time interval between two clicks?
 
Back
Top