Ahmad Awais



Cancel All Facebook Sent Freind Requests!

Ahmad AwaisAhmad Awais

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).


➡ 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++) {

All it does is click on all the Undo buttons for you.
Peace! ✌

👨‍🏫 Edutainer at VSCode.pro 🎩 An award-winning open-source engineer and developer advocate 🦊 Google Developers Expert for web 🌳 Node.js foundation Community Committee member ✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer 📣 TEDx Speaker 🙌 Leading developers and publishing technical content for over a decade 😂 Self-confessed tech comedian cracking silly jokes in the JavaScript web and cloud communities 💜 Loves his wife (Maedah) ❯ Learn more about Awais ↣

Say 👋 on Twitter @MrAhmadAwais | Subscribe to the Developers Takeaway!


TheDevTakeaway: Developers' Newsletter!

Takeaway my professional opinion about Open Source, JavaScript/Cloud, Full Stack Development, building a business, growing a family, and everything in between! Delivered to your inbox once a month. 🤣 I'm even funny some times. 👻 I hate spam! Pinky Promise!