Because who doesn't have an inbox full of "I got a new phone", event-based group chats, and old lingering messages in their Facebook Messages?
Surprisingly, Facebook has not implemented a way to archive many messages in your inbox. This script provides that solution.
UPDATE: THIS SCRIPT HAS BEEN UPDATED TO WORK AND IS TESTED AS WORKING (OCTOBER 31st, 2017 (spooky)). LET ME KNOW IF IT DOESN'T WORK FOR YOU!
Load Facebook Messages in a new tab.
Open the JavaScript console and paste the contents of jquery.min.js into the console.
Paste the contents of archive-all-facebook-messages.js
into the console.
If you want to only test the results before actually running the archiving, there's a param for that:
archive_all(testOnly=true);
When you're ready to run for real:
archive_all();
- Currently only detects the list of messages visible to the user in the page. You can work around this by repeatedly scrolling the message list pane to the bottom until all messages are loaded. I plan to automate this step soon. (Maybe)
- There is no way to whitelist certain messages from being archived. Currently, you can manually unarchive select messages from the archived view.
- Sometimes the messages page remains cached after the script reloads it. Reloading it once by hand solves this.
I reproduced steps to the letter on Chrome's regular and Incognito mode (to rule out plugins interfering with the outcome) with no success.
Running
archive_all();
on @hyiltiz 's code:returns:
on both facebook.com/messages and messenger.com.
Running
archive_all();
on on @hyiltiz 's code:on facebook.com/messages console returns:
on messenger.com console returns:
The only hidden conversations, are those which I manually hide following @surajk63 instructions.
FIX:
Change Facebook's language to English