Skip to content

Instantly share code, notes, and snippets.

@afzafri
Created January 1, 2018 17:39
Show Gist options
  • Save afzafri/b83d2b0cad8cd05332b00a5a9e91749f to your computer and use it in GitHub Desktop.
Save afzafri/b83d2b0cad8cd05332b00a5a9e91749f to your computer and use it in GitHub Desktop.
Auto confirm and delete Facebook friends request script 2018
/*
Usage:
Open this page: https://www.facebook.com/friends/requests/
Open console (F12), copy and paste the script and enter
*/
var butArea = document.getElementsByClassName("ruResponseButtons");
for(i=0;i<butArea.length;i++)
{
var confirmBut = butArea[i].getElementsByTagName("button")[0];
confirmBut.click();
}
/*
Usage:
Open this page: https://www.facebook.com/friends/requests/
Open console (F12), copy and paste the script and enter
*/
var butArea = document.getElementsByClassName("ruResponseButtons");
for(i=0;i<butArea.length;i++)
{
var deleteBut = butArea[i].getElementsByTagName("button")[1];
deleteBut.click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment