This userscript is one that I have wanted myself for awhile now, because I manage a handful of twitter accounts now (@erikvold, @voldsoftware, @bettergwo, and @superbga) and I have made a few mistakes where I thought I was in one account but was really in another and followed someone on the wrong account, or worse posted a tweet from the wrong account. Another reason that got me motivated was that I have not seen another userscript that did everything I wanted, and nor was there one that achieved what embøl was looking for as he describes on the userscripts.org forum.
However, as you will see this userscript is extremely useful to Twitter users with only one account as well.
- It's not easy to tell which account you are logged into on every page.
- It takes a number of steps to switch accounts. Signing out, focusing on input fields, retyping the same old username and passwords over and over again to log back in.
- It takes a number of steps to login initially in the first place, again focusing on input fields, retyping the same old username and passwords, yet again.
Once you install the "Twitter Account Switcher" UserScript all of the above stated unpleasantries are taken care of gracefully, and here is how it works:
First of all I have added a username url variable to the http://twitter.com/login which will take the provided username and auto insert it into the username field on the login form, then focuses on the password field (which will kick Firefox's password manager in to action), after which it checks to see if a password was inserted and if so it automatically submits the login form. This means that when I go to http://twitter.com/login?username=erikvold (which I now have bookmarked) I will automatically be logged in; when you go to http://twitter.com/login?username=erikvold you will see "erikvold" in the username input field of the login form and the focus will be on the password input field because you do not have the password for my twitter.com account in your Firefox password manager, and if you use an incorrect password then you will receive an alert from twitter telling you so.
This is obviously good for all Twitter accounts because it allows you create totally safe auto login bookmarks for the accounts.
The second benefit is only useful to those Twitter users that manage multiple accounts, because it will help you switch between all of your accounts very simply. First you will notice that a new drop down menu was added in the top navigation to the right of Profile or Login link, depending on if you are logged in or not, this is the profile manager. By default it will display either "NULL" which does nothing, or the username of the account that you are currently logged into. To switch or choose an account to log in to quickly, just use this drop down menu.
Note: Once you install this userscript it will remember the username of every account which you successfully logged in to. You can also manually add usernames if you want to quickly create a long list, and if desired you can manually remove usernames from the username list, but remember that the username will be automatically added to the list if you log in to the account again.