Lastpass in Conkeror using bookmarlets and webjumps

Having recently discovered Conkeror, I’ve been trying to get LastPass to work with it. Unfortunately, the Lastpass plugin is not yet compatible with Conkeror at the time of writing. Using the Lastpass bookmarklet works well enough for me though, and here I’ll explain one way it can be used in Conkeror.

First, get your Lastpass bookmarklets by logging in to lastpass.com and selecting “Bookmarklets” in the dropdown menu found in the upper right of the screen. Copy the one named “LastPass Login!”. Then define a webjump in .conkerorrc using the copied bookmarklet code (beware that the LastPass bookmarklet changes when you change the master password though):

define_webjump(“login-lastpass”, “BOOKMARKLET_CODE_HERE”) After having reloaded .conkerorrc (alt-x reinit), you can now do the following when needing to log in to a site using Conkeror (provided you’re logged in to lastpass.com):

Press ‘g’ to activate the ‘Find url in current buffer’-function. Navigate to the ‘login-lastpass’ webjump by entering it’s first few characters and select it. If there’s just one user/password-pair for the site, the LastPass bookmarklet will automatically fill out the form and log in. If there’s more than one, the bookmarklet promps for which user you want to log on with. It’s worth mentioning that even though the Lastpass plugin is not fully compatible with Conkeror, it can be used for logging on to LastPass and for managing passwords. It also makes it possible to avoid being logged off LastPass when restarting Conkeror.

To install it in Conkeror, first download the Lastpass Firefox plugin xpi file and follow these instructions. Then, having installed the plugin, add the following webjump to your .conkerorrc-file:

define_webjump(“lastpass-home”, “chrome://lastpass/content/home.xul”) This webjump will then open the LastPass XUL application.

Hopefully there’ll be a fully compatible LastPass plugin for Conkeror down the road, but for now this is a workaround that lets me use Conkeror as my primary browser without too much hassle.