Skip to content
Configuration example to create a keyboard interface to the web
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc
.gitignore
Makefile
README.md
UNLICENSE
background.js
config.js
fetch
manifest.json
package.json

README.md

Configuration for Firefox

Configuration example to create a keyboard interface to the web.

Dependencies

Extensions

  • Commands (Chrome API to perform browser actions)
  • Shell (Chrome API to execute external commands)

Installation

make

Open about:debugging in Firefox, click Load Temporary Add-on and select the manifest file.

See Your first extension for more information.

Post-installation

Cross-extension messaging

Replace the key property for the manifest of Chrome extensions with the applications property.

Example – Modify the manifest of Commands:

chrome-commands/manifest.json

{
  "applications": {
    "gecko": {
      "id": "commands@alexherbo2.github.com"
    }
  }
}

Update your configuration accordingly.

config.js

commands.port = chrome.runtime.connect('commands@alexherbo2.github.com')

See Chrome incompatibilitiesManifest "key" property for more details.

Native messaging

Replace the allowed_origins property for the manifest of Chrome applications with the allowed_extensions property.

Example – Modify the host manifest of Shell:

chrome-shell/host/shell.json

{
  "allowed_extensions": [
    "shell@alexherbo2.github.com"
  ]
}

Install the manifest to its appropriate location.

You can’t perform that action at this time.