Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@natzar 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