1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'FaceBook' started by Moiz Ahmed, Mar 25, 2017.

  1. Moiz Ahmed

    Moiz Ahmed Newbie

    Joined:
    Mar 5, 2017
    Messages:
    36
    Likes Received:
    3
    Gender:
    Male
    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();
     
  2. Moiz Ahmed

    Moiz Ahmed Newbie

    Joined:
    Mar 5, 2017
    Messages:
    36
    Likes Received:
    3
    Gender:
    Male
    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?