Skip to content

Instantly share code, notes, and snippets.

View davidedmonson's full-sized avatar

David Edmonson davidedmonson

View GitHub Profile
@elibosley
elibosley / archive-all-facebook-messages.js
Last active March 6, 2024 03:36 — forked from tedmiston/archive-all-facebook-messages.js
Archive all of the messages in your Facebook Messages Inbox
function archive_all(testOnly) {
messages = $("._5blh")
console.log("Found", messages.length, "messages on messsenger.");
if (!testOnly) {
for (i = 0; i < messages.length; i++) {
try {
messages[i].click()// open dialog
$("li:contains('Archive')").last().click()