/chromepass

Chrome autofill extension for the password store

Primary LanguageJavaScript

chromepass - Chrome autofill extension for pass

This is currently a work in progress, check back later ☺.

Chromepass screenshot

Setup

  1. Install chromepass extension from the Chrome Web Store.

  2. Install and setup the password store.

    # apt-get install pass
  3. Set up native host messaging (this process will be automated with a bash script later).

    a. Visit the extensions page.

    b. Enable Developer mode.

    c. Click Load unpacked extension... and browse to the extensions folder.

    d. Create a manifest file to register the host application at ~/.config/chromium/NativeMessagingHosts/com.leoxiong.chromepass.json with the following contents, where extension id is the Chrome extension ID.

    {
      "name": "com.leoxiong.chromepass",
      "description": "hi",
      "path": "/home/leoxiong/workspace/chromepass/host/chromepass.sh",
      "type": "stdio",
      "allowed_origins": [
        "chrome-extension://extension id/"
      ]
    }

    e. Make sure chromepass.py has execute permissions.

    f. Restart Chrome. If the native messaging host has not been successfully registered, kill all instances of Chrome and start with debugging enabled --enable-logging --v=1.

How it works

Write this later.

Todo / wishlist

  • search and select which password to fill
  • automatically match subdomains
  • toggle option to automatically fill
  • show errors from pass/gpg
  • fill multi-page logins (like Google)
  • detect login forms loaded after page load (eg. with ajax)
  • offer to save passwords
  • offer to generate passwords
  • write script to install host app

Notes

  • on the email page for Google's login, there is a hidden password input, presumably to still allow autofill to recognize it as a login form, chromepass currently fails because it has more than 1 input type text/email, need smarter form detection

Bugs and feature requests

If there are any bugs or feature requests, feel free to submit a pull request or contact me at hello@leoxiong.com.