Last active
September 26, 2020 07:56
-
-
Save RobertEves92/87d788274c83f1deaf28329b23f37486 to your computer and use it in GitHub Desktop.
Archive all Facebook messenger chats
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
(function run() { | |
let all = document.querySelectorAll('div[aria-label="Conversation actions"]'); | |
if (all.length == 0) return; | |
let a = all[0]; | |
a.click(); | |
setTimeout(() => { | |
document.querySelectorAll('a[role=menuitem]').forEach(act => { | |
if (act.innerText.match(/Hide/)) act.click(); | |
}); | |
run(); | |
}, 250); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open https://www.messenger.com/ on chrome
Open developer tools and paste the code into console
Hit Enter key
Wait