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.
-
Bug with Firefox
There is a bug with Firefox.
Only half requests are deleted with that script. -
English langage required !
This script works only if your Facebook is displayed in english !
To change the langage, set the display langage setting toenglishhere : https://www.facebook.com/settings?tab=language
Steps
-
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 theShow more requestslink until there is no more requests to display (it depends on how much pending requests you have). -
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.).
-
Chrome users
Press :Ctrl+Shift+J(Windows) /Cmd+Opt+J(Mac) -
Firefox users
Press :Ctrl+F4
-
-
Execute the script
inputs=document.getElementsByTagName('button'); for(i in inputs){if(inputs[i].innerHTML == 'Delete Request' && inputs[i].id != ""){inputs[i].click();}}- Copy this script
- Paste it to your Javascript Console
- Execute it by pressing Enter
Result
You should see all the “Delete Request” buttons turning into “Mark as Spam” buttons.
Done.