Skip to content

Instantly share code, notes, and snippets.

@sincerekamal
Created April 7, 2015 14:58
Show Gist options
  • Save sincerekamal/01a0a2290f50a4e77f62 to your computer and use it in GitHub Desktop.
Save sincerekamal/01a0a2290f50a4e77f62 to your computer and use it in GitHub Desktop.
Facebook Delete All Archived conversations at once
/**
Steps to follow:
1. Open facebook and navigate to archived messages
2. Open console and paste the below code
3. Press enter to run the code.
**/
(function() {
var messages = document.querySelectorAll('._l4');
for (i = 0; i < messages.length; i++) {
// Choose the message
messages[i].click();
// Click action button
document.querySelector('#u_0_1a').click();
// Choose delete conversation item from menu
document.querySelectorAll('#js_1p ._54nh')[15].click();
// Click delete conversation in popup
document.querySelector('[name="delete_conversation"]').click();
}
})();
@Nilkanth1999
Copy link

Doesn't work bro....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment