Warning
This guide is a work in progress and may not be complete.
This is a basic contributing guide and is a work in progress.
- Fork the repository.
- Create a branch in your fork!
- Install and test (see Quick Start).
- Commit and push your changes.
- Create a PR to this repository.
- Verify the tests pass, otherwise resolve.
- Make sure to keep your branch up-to-date.
First, clone (or download) this repository and change into the directory.
Second, install the dependencies:
npm installFinally, to run Chrome or Firefox with web-ext, run one of the following:
npm run chrome
npm run firefoxAdditionally, to Load Unpacked/Temporary Add-on make a manifest.json and run from the src folder, run one of
the following:
npm run manifest:chrome
npm run manifest:firefoxChrome: https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked
Firefox: https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/
For more information on web-ext, read this documentation.
To pass additional arguments to an npm run command, use --.
Example: npm run chrome -- --chromium-binary=...
Install the requirements and copy libraries into the src/dist directory by running npm install.
See gulpfile.js for more information on postinstall.
npm installTo create a .zip archive of the src directory for the desired browser run one of the following:
npm run build
npm run build:chrome
npm run build:firefoxFor more information on building, see the scripts section in the package.json file.
- Build or Download a Release.
- Unzip the archive, place the folder where it must remain and note its location for later.
- Open Chrome, click the
3 dotsin the top right, clickExtensions, clickManage Extensions. - In the top right, click
Developer Modethen on the top left clickLoad unpacked. - Navigate to the folder you extracted in step #3 then click
Select Folder.
- Build or Download a Release.
- Unzip the archive, place the folder where it must remain and note its location for later.
- Go to
about:debugging#/runtime/this-firefoxand clickLoad Temporary Add-on... - Navigate to the folder you extracted earlier, select
manifest.jsonthen clickSelect File. - Optional: open
about:configsearch forextensions.webextensions.keepStorageOnUninstalland set totrue.
If you need to test a restart, you must pack the addon. This only works in ESR, Development, or Nightly. You may also use an Unbranded Build: https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds
- Run
npm run build:firefoxthen useweb-ext-artifacts/{name}-firefox-{version}.zip. - Open
about:configsearch forxpinstall.signatures.requiredand set tofalse. - Open
about:addonsand drag the zip file to the page or choose Install from File from the Settings wheel.