Last active
May 12, 2020 13:55
-
-
Save AymaneHrouch/80cd7411baf884eb2ebb4a2b46d091da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Visit : https://mobile.facebook.com/friends/center/requests/outgoing/ | |
// scroll as much as you can | |
// past below code to the console, press enter and you're done! | |
// | |
// | |
let requests = document.querySelectorAll('[data-sigil="undoable-action"]'); | |
for (i=0; i < requests.length; i++) { | |
requests[i].children[1].children[0].children[2].children[2].children[0].click(); | |
} | |
alert(`${requests.length} request has been cancelled successfully`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment