forked from https://gist.github.com/tedmiston/c7ac401da96b55022aaf
- Load Facebook Messenger in a new tab.
- Open the JavaScript console and paste the contents of jquery.min.js into the console.
- Run this code below in console:
let all = document.querySelectorAll('div[aria-label="Menu"]');
if (all.length == 0) return;
let a = all[0];
a.click();
setTimeout(() => {
document.querySelectorAll('div[role=menuitem]').forEach(act => {
if (act.innerText.match(/Archive/)) act.click();
});
run();
}, 500);
})();
- Wait until all messages are archived.
Note, some 'special' messages may keep this script running forever - just keep an eye on it, and close the tab when it's done. There's no intelligence here. :)