More often than not you find someone interesting and send them a friend request but don’t get a response. That sucks. Well, getting to undo these sent friend requests sucks more.

More often than not you find someone interesting and send them a friend request but don’t get a response. That sucks. Well, getting to undo these sent friend requests sucks more.
So, here’s an easy way to do it. It worked till 2018-05-21
โก Step#1: Go to this link on Facebook (it’s a mobile site link).
https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main
โก Step#2: Scroll to the very end till all requests you sent are loaded.
โก Step#3: Open Chrome Inspector/DevTools by right-clicking on the page anywhere and selecting Inspect
or just press โ
+ โฅ
+ J
on Mac for Chrome.
โก Step#4: Paste the following script and press enter :) โ and you’re done.
javascript: var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
for (var i = 0; i < inputs.length; i++) {
inputs[i].click();
}
All it does is click on all the Undo
buttons for you.
Peace! โ
Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!
Thank you so much
Works Beautifully! Thank you so much!
Awesome! ๐ฏ
but if i want to undo this how can i do that ? vice versa
mean i want to add them all again at once how can i do that
please give me script for that….
but where must I paste it in that INSPECT box?
Just read a little more about you and I thnk its SO cool you and your wife are a team and work together. #GoalsAF! Keep killing it you guys, love conquers all!
Thank you :)
Unfortunately this method doesn’t work anymore
I worked well for the last 2 or 3 years but this year everyone got message “undefined”
Any idea how to work out this?
Did you access the mobile site? I just used it last month and it was working.
I just tried and it works. `undefined` doesn’t mean anything โ it means that there was no ouput.
this doesnt work it does nothing when using this script in the console
You must be doing it wrong then.
I did this just now and it worked perfectly. Thank man! :D
Awesome! ๐ฏ
OMG IT ACTUALLY FREAKING WORKED!!!!! ive been trying to figure this out foreverrrrrr!! everyones biggest mistake is not going to the mobile site. omg im tickled right how lol
Glad for you :)
i just wanted to note in case it may be helpful to someone, but i had to scroll to the bottom of my requests, then type in the code. at first it was only deleting the loaded sent requests, so once i scrolled down to the bottom (1000 people took about 3 minutes) it then deleted them all no problem.
Woow intrestingi…It really works n a great work mann
It’s worked I can’t believe you’ve saved my time!
Wow it worked like a charm! thank you!!!
Thank you genius!
Please Help Where To Paste The Script.?
Sir i want to ask a question
I and my friend allow all to send friend request but we are unable to add each other it is bcz we have accidentally deleted requests of each other now there is no option to add how can we be friends on Facebook??
Thank you
eliminar amigos
WOW! That’s awesome bro
for windows whats the command?
Please what of how to unfriend in active friends. The solutions I saw over the internet doesn’t work for me. Maybe I have over 4 thousand friends. Please any help??
Wow it is working. by right clicking you just need to click on inspect and then select console then simply paste the string given in this article (in step# 4). press enter. boom. you are done. magic. Thank You. got rid of big headache.
Little modification to delete a lot of them
const deleteRequestsTillBottom =()=>{
const deleteAllRequests =()=>{
javascript: var inputs = document.getElementsByClassName(‘_54k8 _56bs _56bt’);
for (var i = 0; i {
window.scrollBy(0, 1000);
deleteAllRequests();
}, 5000)
}
it work perfectly. thanks
How do I do it?
Great love you brother