Created
April 7, 2015 14:58
-
-
Save sincerekamal/01a0a2290f50a4e77f62 to your computer and use it in GitHub Desktop.
Facebook Delete All Archived conversations at once
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
/** | |
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(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work bro....