Skip to content

Instantly share code, notes, and snippets.

@xdamman
Created December 21, 2012 07:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xdamman/4351186 to your computer and use it in GitHub Desktop.
Save xdamman/4351186 to your computer and use it in GitHub Desktop.
Facebook friend requests zero I had 236 pending friends requests, so I decided to accept them all as a gesture before the end of the world. I wasn't ready to click on them all so just made that quick script you can run in the console when you are on the page https://www.facebook.com/friends/requests/
var a = document.getElementsByTagName('input');
for(var i=0;i<a.length;i++) if(a[i].getAttribute('value')=='Confirm') a[i].click();
@natzar
Copy link

natzar commented Nov 9, 2013

For Spanish users:
var a = document.getElementsByTagName('input');
for(var i=0;i<a.length;i++) if(a[i].getAttribute('value')=='Confirmar') a[i].click();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment