Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Last active October 31, 2024 02:43
Show Gist options
  • Save jasonm23/9d718f9b716cced271f0f3e81e753988 to your computer and use it in GitHub Desktop.
Save jasonm23/9d718f9b716cced271f0f3e81e753988 to your computer and use it in GitHub Desktop.
GopassBridge-Dark For Firefox on Windows

GopassBridge-Dark For Firefox on Windows

Setup

Follow the setup instructions to install gopass

Next install gopassbridge-dark extension on Firefox.

Download gopass-jsonapi.exe from https://github.com/gopasspw/gopass-jsonapi/releases

From a terminal:

cd ~\Downloads
.\gopass-jsonapi.exe configure

Enter firefox as the browser, and note the json preview:

PS C:\Users\jason\Downloads> .\gopass-jsonapi.exe configure
For which browser do you want to install gopass native messaging? [brave,chrome,chromium,firefox] [chrome]: firefox
Install for all users? (might require sudo gopass) [y/N/q]: N
In which path should gopass_native_host.exe be installed? [C:\Users\jason\AppData\Local\gopass]:
Native Messaging Setup Preview:
Wrapper Script (C:\Users\jason\AppData\Local\gopass\gopass_native_host.exe)

Manifest File (Software\Mozilla\NativeMessagingHosts\com.justwatch.gopass = C:\Users\jason\AppData\Local\gopass\firefox\com.justwatch.gopass.json):
{
    "name": "com.justwatch.gopass",
    "description": "Gopass wrapper to search and return passwords",
    "path": "C:\\Users\\jason\\AppData\\Local\\gopass\\gopass_native_host.exe",
    "type": "stdio",
    "allowed_extensions": [
        "{eec37db0-22ad-4bf1-9068-5ae08df8c7e9}"
    ]
}
Install manifest and wrapper? [Y/n/q]:

In explorer open C:\Users\<your username>\AppData\Local\gopass\firefox\ and edit: com.justwatch.gopass.json

Edit the "allowed_extensions" section so that gopassbridge-dark is used:

    "allowed_extensions": [
        "gopassbridge-dark@ocodo"
    ]

If you want to use both gopassbridge-dark and gopassbridge extensions, (e.g. for comparison/debugging your installation) add both extension ids:

    "allowed_extensions": [
        "{eec37db0-22ad-4bf1-9068-5ae08df8c7e9}",
        "gopassbridge-dark@ocodo"
    ]

Restart firefox and check your passwords are found and decrypted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment