Navigate to … a.click(); 2. if (act.innerText.match(/Hide/)) act.click(); Scripts provided above doesn't work anymore. Sometimes the messages page remains cached after the script reloads it. scroll the Facebook Messenger chat panel on the right to the bottom with mouse manually. run(); let all = document.querySelectorAll('div[aria-label="Conversation actions"]'); Go to https://www.facebook.com and login to your account. This script provides that solution. Now click on the "Messages" option. document.querySelectorAll('a[role=menuitem]').forEach(act => { Follow the steps to retrieve Facebook messages on desktop (messenger.com): Step 1: Open Facebook Messenger on your PC and click the gear icon. You can reach this by hitting the gear icon that appears when you hover over a conversation and clicking “Archive.” This moves it to a separate folder where your old messages can live, safely tucked away from your new ones. From a Computer: 1. Follow the steps below to quickly find old messages on Facebook Messenger. In the previous method, we looked into how you can view unread messages in the Facebook Messenger. Sometimes the messages page remains cached after the script reloads it. UPDATE - So just after posting this, it started working. if (all.length == 0) return; Then sign in your Facebook on Messenger app. @elibosley could you please include this information in your description? Sending a message to that person will automatically unarchive messages. In your first message you indicate that you are working on a solution for scrolling down. View Archived Messages on Facebook Messenger via iPhone . Once you successfully archived facebook messenger messages, below find out how to unarchive facebook messenger messages to recover them back. 4. In this part, we will learn how to view archived messages on Facebook Messenger app. You can try on both link: facebook.com/messages or messenger.com on chrome latest browser. There is no way to whitelist certain messages from being archived. Archive Messages On Facebook on PC/Laptop. Step 2: From the list of items, select the “Archived threads” option. Click on the messages thread you want to archive and from the right side of the page you will find the name of that person's profile. Whatsapp also provides this feature to hide the chat. setTimeout(() => { I just wanted to state for the record, this worked perfectly. setTimeout(() => { 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? For Voice for Google Workspace accounts managed by your work or school, text messaging is available only in the U.S. Archive text conversations, calls, or voicemails. }); I was using the new facebook beta and it does not work. if (act.innerText.match(/Hide Conversation/)) act.click(); That's all! I clued in when I tried to refresh my tab and it stopped responding. ; Search the person's name in the search bar. setInterval(function(){ archive_andGoToNextPage(false); }, 3000); Still working like a charm! My Facebook Messenger is broken: Now it just shows an empty white screen after archiving a lot of messages. A janky way you can get around this is to literally copy paste jQuery.js into the console, and then execute the script. Beware of using this script! I used the second code, first you have to load jquery code and then this function. So, guys, this the guide on ‘how to find archived messages on Messenger app‘. Settings "Switch to Classic FB". Thanks a lot :). What browser are you using? Then you need to call this: As above, sign-in to your Facebook account. scroll the Facebook Messenger chat panel on the right to the bottom with mouse manually. This is really great! Chrome extension: Delete All Messages for Facebook. Try this one again, it should work. Use this: (function run() { Strange. How to unhide messages on the Messenger app The conversation is available in the main chat list Clone with Git or checkout with SVN using the repository’s web address. Now, we will share with you the tips on how you can mark read messages as unread on Messenger. let all = document.querySelectorAll('div[aria-label="Conversation actions"]'); This is above your list of messages on the left side of the screen; clicking "More" will prompt a drop-down menu. 1. Cheers. Now tap See all in Messenger option at the bottom of the chat screen. }, 250); I plan to automate this step soon. So, you need to search for that chat thread to view the messages. To automate on every page, you need to add this function and to change "Afficher les plus anciens" by the text on the link to display the next messages in your own language. a.click(); })(); Same steps as before, run (https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js) then run the code above. Then choose "Archive" in the pop-up note. If you are using the Facebook Messenger app on an iPhone, you can easily view the archived messages. First open the facebook masseges in new tab, check the address bar, it should say only https://www.facebook.com/messages, if you found the link with some other conversation then archieve that manually first, and then process the following steps. I copied the long script, pasted into the JavaScript consoles and hit enter. See here: HERE. }, 250); Tap on an archived conversation and send that person a message. Accessing and retrieving Messenger messages deleted in this way, from a computer, is child’s play: all you need to know is where … But who said that you have to search manually. this code results to undefined on my end.. Help please, This is not working, I tried changing the "Conversation Actions" to "Menu" but only clicks on the menu of the conversation, doesn't click on "Hide" option. It doesn't work anymore in any browser or any laptop. Otherwise the script won't work. There is no way to whitelist certain messages from being archived. 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? let a = all[0]; Life-saver. let a = all[0]; Step 2 Archive Conversations on Android Go to recent conversation list. You signed in with another tab or window. This will open your Archived messages folder, from which you can delete your archived messages. Hi, how to archive all messages? Select the “Archive” option from the list. If that doesn't work DL chrome and run it. Archiving a conversation hides it from your inbox until the next time you chat with that person, while deleting a conversation permanently removes the message history from your inbox. Then tap on the three-bar icon. Start the process in Facebook Messenger: Hover over the conversation you’d like to remove. Be mindful that following the steps below will remove those messages as well. Once you see the person’s profile, tap on it. Then, tick the box in the „ Messages “ section (2) to download your chats only. Surprisingly, Facebook has not implemented a way to archive many messages in your inbox. Nothing changes even after a refresh. This feature is useful to hide the chat on facebook messenger. From the More dropdown menu in your Messenger inbox, tap Archived. … if (all.length == 0) return; Full guide you can read here How To View Archived Messages On Facebook Messenger? Open the JavaScript console and paste the contents of jquery.min.js into the console. The Official, but Slow Way. To archive a message thread on the mobile apps, tap and hold the chat. Amazing! Stil, thanks so much! let a = all[0]; It operates similar to Emmanuel's comment above. Tested in up-to-date Firefox Developer Version or Chrome. (Maybe). You sent me the same codes I have tried and quoted in my question. It does works till today's date: Just stating the facts. Before deleting all of your messages, you may want to archive them instead of doing a full and permanent delete. Currently, you can manually unarchive select messages from the archived view. Nothing changes even after a refresh. It will automatically unhide the chat. The free trial of the program will let you export one page of Messenger messages so that you get a good feel for the program and whether it is helpful for your needs. I tried it and it does not work. Then you can call the function as many times as you required. For french language, the text is currently "Voir la suite". tedmiston/archive-all-facebook-messages.js, Currently only detects the list of messages visible to the user in the page. let all = document.querySelectorAll('div[aria-label="Menu"]'); Big problem after using it. If you want to save or print all your Messenger messages, you can upgrade to the paid version of the program and instantly export all your chat messages. Did you go to facebook.com/messages or messenger.com? Messenger.com was blank for about 48 hours. To unhide messages on the Messenger app: Open the Messenger app. Did anybody else have this problem? Running archive_all(); on @hyiltiz 's code: on both facebook.com/messages and messenger.com. }); This script provides that solution. Then trying it on a smaller number of messages showed the proportional lag involved. document.querySelectorAll('a[role=menuitem]').forEach(act => { Clone with Git or checkout with SVN using the repository’s web address. @riginoommen Make sure you load jquery by pasting it into the terminal before running the script. Hey there, Facebook newly changed the messages link, they integrated system with the messenger. Correctly reports finding several hundred items, and after a while returns undefined but nothing happens to the chat. Select the Settings gear icon in the upper-left corner of the Messenger window. setTimeout(() => { Correctly reports finding several hundred items, and after a while returns undefined but nothing happens to the chat. You need to open Messenger app and Tap and hold on the conversation or Chat thread to archive … THIS SCRIPT HAS BEEN UPDATED TO WORK AND IS TESTED AS WORKING (OCTOBER 31st, 2017 (spooky)). For Facebook.com, open Messages. Select the three-dot menu that's visible when you hover the mouse pointer over the thread in the conversation you want to archive. Facebook renamed Archive to Hide. Facebook will then prepare the download of your messages. paste and run archive_all function definition in the console. Tap Settings (Gear icon) then Hidden Chats. You can archive conversations and view archived messages on Facebook Messenger, if you're looking to clear up your inbox without deleting conversations. Thanks for answering. Archive all of the messages in your Facebook Messages Inbox. You can unarchive any of them by sending a new message to the recipient. 5 Click the "Archived" option. Once found, click the Archive option (x icon) available at the bottom-right corner of the target conversation to archive all its messages. Running archive_all(); on on @hyiltiz 's code: on facebook.com/messages console returns: The only hidden conversations, are those which I manually hide following @surajk63 instructions. Select See All in Messenger. Here, you'll see all the messages you've archived. Swipe left on the conversation you want to archive. Instantly share code, notes, and snippets. ErrorUtils caught an error: "Cannot read property 'count' of undefined". I got this error after running it the second time: You don't have jQuery. Correctly reports finding several hundred items, and after a while returns undefined but nothing happens to the chat. It is Simple to Archive conversation on Messenger app. Instantly share code, notes, and snippets. Install the Delete all messages for Facebook Chrome extension. run archive_all(); Result. Finally, just click on „ Create File “ (3) in the top right corner. Note: Currently, there is no option to see only unread messages on the Messenger app for Android or iOS devices. If you want to only test the results before actually running the archiving, there's a param for that: I made some modifications so I could expand to older messages without archiving and I could delete messages from and i > 0. You signed in with another tab or window. See this repo for the implementation for the more recent versions of messenger. This extension allows you to select multiple chats simultaneously on Messanger opened by the browser. Thanks in advance! Once you click on the messages folder, you will find all the options regarding messages such as archived threads, filtered threads, inbox, etc. Click on it and at the bottom of the pop-up window, click again on "See All in Messenger." if (act.innerText.match(/Hide/)) act.click(); The script has been running for the last couple of minutes and has already archived hundreds of messages ;) I just tried today and it is working perfectly. It's at the top of Facebook on the same menu bar as your profile name. Reloading it once by hand solves this. Correctly reports finding several hundred items, and after a while returns undefined but nothing happens to the chat. Mark Read Messages As Unread. So these javascripts are not working anymore. Scroll down to make sure all the chats you want to delete are already loaded on the page. }, 250); Step 6: Now, all the messages will be shown along with other conversations that are not archived. For some reason it just throws back gray "undefined" without any other errors? Conversation selected will be archived. Find the conversation you wish to archive on the left-hand pane. Steps To Unarchive Facebook Messenger Messages on iPhone. Archive all of the messages in your Facebook Messages Inbox. I plan to automate this step soon. By doing this you can hide the messages that you want to keep. Select See All in Messenger at the bottom of the message window. run(); })(); Hey there, I’m a safari user - how do implement this script? 3. UPDATE: As I mentioned earlier, when the messages seem “deleted” from the main chat, these are actually moved between the messages stored and not permanently deleted by Messenger. setTimeout(() => { If you want to archive everything at the click of a button, simply create a bookmark with the code as URL, prefixed by javascript:. With time we find ourselves having a huge archive of messages. This works beautifully, but Facebook have renamed "Archive" to "Hide" so it needed tweaking as below: this code results to undefined on my end.. Help please, it does come up with the undefined error when i run it too, but as long as you are running it on https://www.messenger.com/ rather than https://www.facebook.com/ it should still work, (function run() { scroll the Facebook Messenger chat panel on the right to the bottom with mouse manually. This makes it really taxing and time-consuming to search for a specific conversation on messenger. Open Messenger in Chrome. Are making sure you are using classic facebook? Could you write a new javascript for archiving all messages. reportError @ -vtndqSSWSu.js:61. Surprisingly, Facebook has not implemented a way to archive many messages in your inbox. From the menu, select Archive. Nothing changes even after a refresh. You can archive a text conversation, call, or voicemail from your Google Voice inbox without deleting it. Working as of 10-March-2019. Archive Messages On Facebook Messenger App. https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js. Tap the hamburger icon. paste and run jquery.min.js in the console. open the console panel by right clicking, and paste the jquery into the console, you will get true in return, and then copy the function from above (archive-all-facebook-messages.js) and copy the function call named as: archive_all(); This is not working reproducing the error. Step 3: Here you will find all the hidden Facebook messages. })(); }); Facebook renamed Archive to Hide. Click on the tiny “Gear” icon next to the conversation you want to archive. I found the solution: Facebook language has to be set to English. }); All your hidden messages are in your archives if you have selected the messages to be archived and not deleted. Tested in up-to-date Firefox Developer Version or Chrome. Select "Archived Messages" from the dropdown menu. run(); I have messages of 9 years old and scrolling down is not possible :( so mutch are there. Now click on "See all in Messenger" at the bottom of the messages window. Here is how to archive messages on Facebook messenger. document.querySelectorAll('a[role=menuitem]').forEach(act => { Scripts provided above doesn't work anymore. paste and run archive_all function definition in the console. Hmmm. Hey, I've updated this to work on the newest version of messenger. First, click „ Deselect All “ (1). Open Facebook messages through Facebook.com or through Messenger.com. Thank you. (function run() { You will have the messages in the inbox folder which are the same as in the messenger chats. And yes, it works wonderfully. 1. It still works, you just gotta paste jquery first, then the archive-all.js, and then you just have to type. }, 250); Only thing that was non-intuitive was learning that I had to wait while the code did its thing in the background for large numbers of messages; during that time, it didn't look like anything was happening due to inactivity in the foreground. 1. Open the JavaScript console and paste the contents of jquery.min.js into the console. Thanks a lot! let a = all[0]; Use 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. Open Facebook Messenger in your preferred desktop browser on your PC or Mac computer. How to recover deleted Messenger messages. Archive Messages On Facebook In Smartphone Browser. if (act.innerText.match(/Hide/)) act.click(); Works oke on my phone. The extension, Facebook-Delete All Messages, instantly deletes your entire inbox with just a few clicks. I can confirm @EmmanuelOga code is working perfectly, and is runnable directly from messenger.com. Login to FB then tap the Messenger icon at the top right. Scroll down and choose a contact. Subsequent errors won't be logged; see https://fburl.com/debugjs. But, Messenger doesn’t provide any option to view the chat after hiding it. You can hide messages and conversations or delete them from Google Voice. Choose Hide from the pop-up menu. You can work around this by repeatedly scrolling the message list pane to the bottom until all messages are loaded. It is easy to backup and archive Facebook messages on Android and website. Type a message and send it. Or does somebody know how to fix it? And it archives all. Other tools and extensions did not work for me. Currently only detects the list of messages visible to the user in the page. In the Search at the top, type in the person name. Part 2. document.querySelectorAll('a[role=menuitem]').forEach(act => { run archive_all(); Result. a.click(); Open Chats inside the Messenger app. Click on your messages an HTML file to find all your messages. How to archive messages on Facebook. This is the error message I get in Chrome console: Got the same "Undefined" messages. STEP 2- Go to the search bar and look for the conversation you think you deleted.STEP 3- When you see the desired chat, send another message to the recipient, which will unarchive the entire conversation.To Perform Facebook Messages Recovery On Desktop: STEP 1- On your PC, Launch FB Messenger … Currently, you can manually unarchive select messages from the archived view. Hopefully, you'll find your "deleted" message here. Paste the contents of archive-all-facebook-messages.js into the console. You will find it at the top blue bar and in the right side of your profile name. paste and run jquery.min.js in the console. Open your desktop Messenger application by clicking on the “Message” icon and selecting “See all in Messenger.”. How To Archive Messages On Facebook Messenger App. If you want to only test the results before actually running the archiving, there's a param for that: Flawless, thanks for the code and tutorial! Did you use top or the bottom code? Long tap the contact. Step 1: Verify your archive. if (all.length == 0) return; Reloading it once by hand solves this. Tap the Archive option. let all = document.querySelectorAll('div[aria-label="Conversation actions"]'); LET ME KNOW IF IT DOESN'T WORK FOR YOU! Nothing changes even after a refresh. You can work around this by repeatedly scrolling the message list pane to the bottom until all messages are loaded. scroll the Facebook Messenger chat panel on the right to the bottom with mouse manually. Anyone knows how it might be fixed? STEP 1- Launch the Facebook Messenger App on your device.Make sure you’re logged in! Paste the contents of archive-all-facebook-messages.js into the console. Method 02: From the Open Conversation (In the Right Pane of the Messages Page) 1. Click the person's name to open the conversation. Search Facebook Messages. a.click(); After that I copied again from here the line to archive, pasted, enter and got RefError can’t find variable archive_all. Thank you for creating! If the message is open and displays at the bottom of Facebook, find the Open in Messenger option from the drop-down menu next to the user's profile image. Desktop App and Desktop (messenger.com): Click Search at the top. run(); if (all.length == 0) return; 1. })(); As of July 2020 in "Classic Facebook" mode the following code works: (function run() { 2.