Autologin

Last update on Aug 28, 2005

Automatically enters form values and submits the form, typically for autologin functionality. No support (yet) for frames or non-text-input form elements. To add an autologin: fill out the log-in form, make sure one of the form fields is focused (contains the caret), go to Tools > User Script Commands > Create autologin from form, and bookmark the generated URL. Visit that bookmark to autologin. Look at the script code for details and examples.

Allows special URLs that automatically enter form values and submit the form, typically for autologin functionality.

No support (yet) for frames or non-text-input form elements

h4. To add an autologin:

# fill out the log-in form,
# make sure one of the form fields is focused (contains the caret),
# go to Tools > User Script Commands > Create autologin from form, and bookmark the generated URL.

Visit that bookmark to autologin.

Look at the script code for details and examples.

*Please note* that the @include has changed to "*". You might have to make this change manually if you upgrade the script, due to Greasemonkey shortcomings.




You could comment on this script if you were logged in.

15 comments Feed-icon

1 point
login to vote
esquifit scriptwright
Posted Mar 2, 2008

Concerning my last comment, see https://bugzilla.mozilla.org/show_bug.cgi?id=37...

1 point
login to vote
esquifit scriptwright
Posted Dec 31, 2007

Support for parameter values containing the '&' sign is broken again (see my comments at the bottom). This is due to the fact that location.hash automatically resolves any occurrence of '%26' into '&'. On the other hand, location or location.href do not do the conversion. Not sure whether a feature or a bug, because normally no '&'-separated 'param=value' pairs are expected after the '#' (no idea if the URL specs forbids this).

1 point
login to vote
Henrik N script's author
Posted Nov 29, 2007

idon'tknow: You set keyboard focus on it, e.g. click inside some form field so that if you would press a letter key, it would appear in the field.

1 point
login to vote
idon'tknow user
Posted Nov 28, 2007

i'm a total noob, how do i focus a form?

1 point
login to vote
Henrik N script's author
Posted Nov 15, 2007

Batshua: Weird. I see it with Fx 2.0.0.9. Are you looking under Tools > Greasemonkey > User Script Commands?

1 point
login to vote
Batshua user
Posted Nov 6, 2007

I'm using Firefox 2.0.0.9. I *just* installed this script, so I have no saved sites. I can't get this script to work, by which I mean "Create autologin from form" doesn't appear in the menu where it belongs.

1 point
login to vote
Posted Nov 12, 2006

"I'm using FF2.0 and I can't get this script to work. The Allow Password Remembering works great, though. I tested AutoLogin on Yahoo and Gmail and it didn't work for either. However the script "Gmail Auto-Login" works fine.

1 point
login to vote
Henrik N script's author
Posted Oct 14, 2006

Made it a lot easier to create autologins, by simply filling out the form and running a menu command. See description above.

Mysteriously Nameless User: Not really possible, I'm afraid, unless I'd fake out a "HTML prompt". Don't plan on doing that.

Matador: Don't have an account, but a quick test suggests this script should work with Hotmail.

Buggy Menot: auctionsniper.com does indeed not seem to work. Not really time to look into now, but perhaps it's a matter of them doing some onclick stuff that a submit() doesn't trigger.

1 point
login to vote
Buggy Menot scriptwright
Posted Jan 6, 2006

auctionsniper.com does not seem to work either. maybe i am doing something wrong?

1 point
login to vote
Matador user
Posted Jan 5, 2006

Would be nice to be able to login to hotmail accounts with this great tool.

1 point
login to vote
mar 1 scriptwright
Posted Dec 26, 2005

A little remark: In the current implementation of the prompt box for not given values, passwords are visible and not hidden by stars. Would it be possible to change this?

1 point
login to vote
Henrik N script's author
Posted Dec 22, 2005

Thanks, esquifit, added that piece of code. Also made it so that empty values are prompted for (e.g. "username=Blah&password=&foo=bar" will prompt you for the password).

1 point
login to vote
esquifit scriptwright
Posted Nov 27, 2005

Regarding my previous comment: the solution amounts to just replacing 'q[1]' by 'decodeURIComponent(q[1])' in the last but one line of the script. In this way you can use the url-encoded values in the parameters string.

1 point
login to vote
esquifit scriptwright
Posted Nov 27, 2005

Fine. Anyway, there's a problem with form parameters containing an '&'; in this case using '&' directly in the url causes the script to split the parameters list in a wrong way, whereas replacing it by '%26' doesn't work because this is not decoded back to '&'.

1 point
login to vote
Henrik N script's author
Posted Nov 10, 2005

Seems to work with Greasemonkey 0.6.3 but not with 0.6.2.

You could comment on this script if you were logged in.