Google Account Multi-Login

By Jarett Last update Oct 6, 2009 — Installed 368,113 times.

Script Summary: Replaces "Sign Out" link on Google pages with a select box of accounts.



IMPORTANT!

If the script is requesting to update every day, especially through a big huge alert box full of nonsense, please delete all copies of the script currently installed and reinstall.

Propaganda

My script was featured on Lifehacker, and WorthaWow put together a nice post with instructions and a video.
Thanks, guys! :D

Like this script? You might like to too.

Screenshot

Notes

Important Note: I am no longer actively working on this script. It was fun to build, and I certainly appreciated all of the positive feedback and the fact that people found it useful. However, since it seems that the script is about as stable as it can get and seems to be working for most people and I'm working on other projects at the moment, I simply don't have the time to develop it any more. Should Google make some changes to their code that break the script, I will most definitely fix it (I use this thing too, ya know), but I will not be doing any other work on it.

Some Google services, like Google Docs and Google Webmaster Tools, use a separate login than the normal Google account and won't change the account signed in to all services. This script will not work for AdSense or AdWords.

This script checks itself daily for updates using my Script Update Checker.

This script works in every language GMail supports; however, only the US English GMail has the new version of GMail. All other languages will work in all Google services besides GMail.

Script has been tested and works in:

  • GMail
  • Google Apps
  • Google search pages
  • iGoogle
  • Picasa Web Albums
  • Google Docs and Spreadsheets
  • Google Reader
  • Google Calendar
  • Google Bookmarks
  • Google History
  • Google Notebook
  • Google Webmaster Tools

Recent Updates

  • [10/05/09]: I managed to completely break adding and removing accounts with the last update. Oops. All better now.
  • [10/03/09]: Google added a nice XSRF value to their login pages. Even though it was a good idea security-wise, it broke my script. I fixed that, and added a "Check for Script Updates" option to the dropdown. The script will now also open a new window/tab if you select a Google Apps account in a domain different than the one you're currently on, since you can be logged into multiple Google Apps accounts and one Gmail account simultaneously.
  • [07/23/09]: Fixed a problem introduced with Firefox 3.5 that caused the script to stop working. Fixed support for Google Apps, which was apparently also broken for who-knows-how-long.
  • [04/29/09]: Fixed a problem with Firefox 3.0.10 that was making GMail not work at all with the script enabled. Added the newest version of my Update Checker script.
  • [07/03/08]: Fixed the problem with GMail's Greasemonkey API and Firefox 3. The dropdown should be showing up much more regularly now. Also made the dropdown look less ugly in Firefox 3.
  • [06/29/08]: Fixed some code that prevented Google Apps logins from working.
  • [03/05/08]: Added support for Google Apps. Someone else is going to have to test it out and make sure that it works, though; I don't have a Google Apps account.
  • [02/23/08]: Fixed GMail support (again). Hopefully it will stay fixed this time.
  • [02/17/08]: Multi-language support is here! See above for additional notes.
  • [02/16/08]: Added code for GMail to fall back on if something changes internally.
  • [01/23/08]: Added support for Picasa Web Albums, hopefully fixed a bug that caused GMail to sometimes stop at the "Loading..." page when switching accounts.
  • [01/19/08]: Added support for Google Calendar.
  • [01/17/08]: Added support for Google Webmaster Tools.
  • [01/16/08]: Finally figured out how to get Google Docs supported. Also fixed all (?) of the weird redirect issues and the problem with adding accounts to a fresh install. Enjoy.
  • [01/15/08]: Added dividers and fixed the redirect on logout. Also no longer need to refresh the page for changes to accounts to take effect. We'll see how well my update check code works; if it does what it's supposed to, someone please comment to put my mind at ease. :P
  • [01/14/08]: I know you've all been waiting for it: iGoogle support is here! Also added per-account autologin settings instead of one for all accounts. Any accounts already set up that you want autologin enabled for need to be removed and added again. The script also now checks itself daily for updates and is enabled for all Google domains, not just ".com".
  • [01/13/08]: Added the option to prompt for password each time instead of storing it, since some people have requested it. Also tweaked the code a bit to keep it from possibly slowing down the rest of the page.
  • [01/13/08]: Patched a security hole which could potentially allow a malicious site to steal your passwords. Anyone who has installed this script before January 13th should reinstall immediately. Details of the problem can be found here.