Annoying meebo message on Firefox close or restart

Every once in a while I need to restart Firefox (e.g. to update an extension, or to remove Firefox memory consumption), or I need to restart my machine and close Firefox. Since I always have a meebo tab open, when I close Firefox I get this annoying message from meebo (which uses the onbeforeunload event):

If you leave, your meebo IM sessions will not be preserved!

Today I realized that this message is almost never useful – I never closes the meebo tab by mistake – I only do it when I want to close (or restart) the browser, and then I realized a quick user script can solve the problem. I checked into Meebo code, and so that the string is a member of the meebolang object that holds language-dependent strings. This string (meebolang.navigateAway) is returned in the onbeforeunload event, so to hide it, I can simply change that member.

A few trials taught me that in Firefox, the onbeforeunload event must return undefined (and not null or false) for the warning unload message to disappear. Once that was achieved, implementing the required user script was easy.


3 Responses to “Annoying meebo message on Firefox close or restart”

  1. Melvyn Says:

    Any chance you could update this so it works with the current meebo code and FF3.0? Feel free to mail me a response.

  2. splintor Says:

    @Melvyn: That’s strange. As I said, I no longer use Meebo, but Miranda IM. However, I tried it with FF 3.0 with Meebo current code, and it seems to work OK.

    Can you give more details, or try to debug the script?

  3. Michal Sanghvi Says:

    I savour, lead to I discovered just what I used to be looking for. You’ve ended my four day long hunt! God Bless you man. Have a nice day. Bye

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: