bug-gnu-pw-mgr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-pw-mgr] auto-insert user/pass in Conkeror


From: Brandon Invergo
Subject: [Bug-gnu-pw-mgr] auto-insert user/pass in Conkeror
Date: Sun, 27 Apr 2014 11:46:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi all,

For anyone out there who's using Conkeror as their main browser, I've
written some functions to easily insert usernames and passwords from
gnu-pw-mgr into login forms.  If you're not familiar with Conkeror, it's
an XULRunner-based browser (like Firefox), that's modeled after Emacs,
albeit implemented in javascript rather than lisp.  Unfortunately, my
experience with javascript is limited to, well, these functions, so
perhaps they can be improved a bit.  Anyway, they work for me.

To use them, either put the attached script in your .conkerorrc
directory or, if .conkerorrc is a file, just copy the function
definitions into it.  (note the file has to be gzipped otherwise Mailman
complains about the attachment; it's not big)

Attachment: gnu-pw-mgr.js.gz
Description: Binary data


Executive summary:

Command   Function                      Description
-------   --------                      -----------

C-x n     gnu-pw-mgr-get-user           Insert a username in the current
                                        field.

C-x p     gnu-pw-mgr-get-pass           Insert a password in the current
                                        field.

C-x P     gnu-pw-mgr-get-user-pass      Insert a username in the current
                                        field, advance to the next
                                        field, and then insert the
                                        corresponding password.

When you run them, you'll be prompted to enter a password ID.  Of
course, you need to run these commands when the appropriate form field
is focused.  By default the password associated with the most recent
seed is used.  To select a different seed, prefix the command with the
universal argument: e.g., to use the first seed, do C-u 1 C-x p.

I still need to think of a good way to handle annoying cases like my
bank that requires gnu-pw-mgr's --select option to put 3 characters from
the password into 3 subsequent fields, but that's a corner case.  Do be
warned that Paypal and presumably other sites are doing some asinine
thing with javascript so that the password field only hides the input
when entered via the keyboard; thus, using the above functions results
in your password being visible, which is annoying.  Anyway, a
20-character gnu-pw-mgr-derived password that's only visible momentarily
probably won't be remembered by prying eyes.  But if anyone finds a way
around it, I'd be happy to hear it.

Enjoy!
Brandon

-- 
Brandon Invergo
http://brandon.invergo.net

Attachment: pgpkF7P70SiGW.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]