DividedGibon / Facebook_Messages_Bulk

A few simple scripts to move/archive facebook chats in bulk.
8 stars 4 forks source link

"undefined" error #3

Open stacksjb opened 1 year ago

stacksjb commented 1 year ago

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.

stacksjb commented 1 year ago

What can I do to help troubleshoot? I'm fairly familiar with Javascript.

DividedGibon commented 1 year ago

What can I do to help troubleshoot? I'm fairly familiar with Javascript.

Hi! I'm away for a machine for a few days so code testing is difficult.

Just to check, is it the same unarchive code erroring? Or is it the 'archive' code? What browser are you using?

The JS is essentially selecting all of the DIV elements which are menu items then iterating over the elements selection each one which matches the regex. If the names changes then the code would fail.

There is an error which will always appear - this is due to the fact we're implementing browser hacking.

And testing and input would be greatly appreciated.