Coder Social home page Coder Social logo

facebook_messages_bulk's Introduction

Facebook Messages Bulk Changes

This repository contains code to bulk edit Facebook Messenger chats/messages by archiving, unarchiving, or deleting them. Unfortunately, Facebook does not provide a built-in function for bulk editing of chats, hence this code works at the browser level to manipulate the browser console.

Usage

  1. Open Facebook Messenger in a desktop web browser. Google Chrome is recommended (tested as of May '23).
  2. Navigate to the chat folder you want to bulk edit (main chats, marketplace, or already archived chats).
  3. Open the Chrome "three dots menu" located at the top-right next to your profile picture and click "More Tools" -> "Developer Tools". Alternatively, use the keyboard shortcut "CTRL+SHIFT+I". This will open the developer web tools, which should split the web interface window and open on the right-hand of the screen (or in a separate window).
  4. In the developer interface, click on "Console" at the top (next to "Elements").
  5. Choose one of the following code files: Archive.js, Unarchive.js, or Delete.js.
  6. Paste the contents of the chosen file into the console and hit Enter.
  7. You'll get a browser-level prompt to confirm you want the code to run. Finally, leave it to do its thing. If you have hundreds of chats, it may take some time to complete.

Notes

  • This code has only been tested in Google Chrome but may work in other browsers.
  • This code is efficient, but if you have hundreds of chats, you may need to take a break and leave the browser open to finish the task.
  • Facebook Messenger's web build may change at any time, which may cause this code to stop working.

facebook_messages_bulk's People

Contributors

dividedgibon avatar bbodenmiller avatar

Stargazers

 avatar Thomas Nelson avatar  avatar Marco Antonio avatar Mary Jane P. Calulang avatar  avatar Chris Sanchez avatar Jesse avatar

Watchers

Jesse avatar  avatar

facebook_messages_bulk's Issues

Handle message requests

I have several hundred message requests (including a bunch under "spam") that I would love to delete. This doesn't seem to work with those - do you know if this will work on those?

not working

tried to archive all chats, but not working.
Maybe due to some UI changes, please update.

Delete.js does not work

The JS to delete does not function.

  1. The Regex - should be /Delete Chat/
  2. FB have now an additional confirmation prompt to ok the delete which the JS misses.

Error on final message

Not a big deal as it works very well - thanks for writing this! ๐Ÿ’ฏ

When I run it, it throws error "Cannot read properties of undefined (reading 'click')/ Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs." when it gets to the last message, leaving one final message in the box.

(Of course, it's easy to delete the last one manually and this might be by design, since there is no way to know how many), but wanted to check/note.

Thanks!

"undefined" error

I tried this a few days on my archived messages and it worked to unarchive

However I'm testing it today and I'm just getting the "undefined" error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.