HowTo - Delete your pending friend's requests on Facebook

 07 Aug 2016

This tutorial has its own repository

A tutorial to show you how to execute a small script, to delete all your pending friend’s requests at once.

This script works well with the Google Chrome webbrowser.

Steps

  1. Go to the Friend’s requests page

    You’ll find that page here : https://www.facebook.com/friends/requests/?fcref=jwl
    Then scroll down a bit and click on the Show more requests link until there is no more requests to display (it depends on how much pending requests you have).

  2. Open the Javascript Console

    It may ask you to type some words to allow you to execute a script command. This is to prevent you to execute bad scripts (viruses, malwares, etc.).

    1. Chrome users
      Press : Ctrl + Shift + J (Windows) / Cmd + Opt + J (Mac)

    2. Firefox users
      Press : Ctrl + F4

  3. Execute the script

    inputs=document.getElementsByTagName('button'); for(i in inputs){if(inputs[i].innerHTML == 'Delete Request' && inputs[i].id != ""){inputs[i].click();}}
    
    1. Copy this script
    2. Paste it to your Javascript Console
    3. Execute it by pressing Enter

Result

You should see all the “Delete Request” buttons turning into “Mark as Spam” buttons.
Done.