From a quite long time i was getting lots of friend request on my Facebook and Foursquare account, as i dont know most of the people so I neither accepted them nor rejected them too which results in mass pending request on both of my account.

Last week I planned to clean them but as request list is quite long which will take hours to me if I click on each and every to reject, after few search here is a simple work around for both of the services.

For Facebook :-

  • Login to your account and visit this page to see all pending friend requests
  • Now past the following javascript to your address bar to perform the desired action :-


To accept

javascript:for( i = 1;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);

To reject

javascript:for( i = 1;i<document.getElementsByName("actions[hide]").length;i++){document.getElementsByName("actions[hide]")[i].click();}void(0);

When you past above code in address bar some web browser might remove Javascript and you have to write it manually.

On Foursquare

Login to your Foursquare account and then navigate to  Friends -> See All Friend Requests, now once page is loaded press Cmd+Alt+J (on Mac) or Ctrl+Shift+J (on Windows) to bring your Javascript console.

In Javascript console type following command as per your desire :-

To accept


To reject


That’s it your pending friend requests will be accepted or rejected as per the action performed by you. If you have any query or question then feel free to ask or share such thing with us.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.