This code was something I quickly put together to archive over 5000 text messages in Google Messages. I have no idea if Google frowns on this or not, but it's basically the same as if a human sat there and archived all the messages by hand.
Tested and working as of Monday, November 4, 2019.
- Sign into https://messages.google.com/web/
- Open Chrome Developers console by going to
View
>Developer
>JavaScript Console
. - Copy and paste the code below into console. It should automatically run.
Don't run any code before you know what it does. Review it and make sure it's safe. I accept no fault if something goes wrong. Google may change their code at anytime and this code may not work. I provide no support.
Okay, going to share what I ended up with, with some enhanced console logging (ty AI) and some stop functions. Also, if it hits something Google won't let it archive, it goes to the next record. Again, you can run these both at the same time and then just leave it running in the background. (I got a new phone, everything got unarchived and I had to churn through 2k messages 😢 )
to stop run either:
scroll:
archive: