A browser extension to reduce energy consumption during web navigation.
$ npm install
$ npm run watch
$ npm run build
By changing the TARGET_BROWSER
environment variable, you can specify which browser you are developing for.
This will compile a different manifest.json
. The default is Firefox, but to use Chrome, for example:
$ TARGET_BROWSER=chrome npm run watch
The same applies to the build command above.
- Open Chrome and go to
chrome://extensions/
. - Enable Developer mode (toggle in the top right).
- Click on Load unpacked.
- Select the output directory (
build/
).
- Open Firefox and go to
about:debugging#/runtime/this-firefox
. - Click on Load Temporary Add-on...
- Select the manifest file (
public/manifest.json
) from the output directory.
We use ESLint and Prettier to lint and format our code. To automatically reformat files and fix some of the issues, run:
$ npm run fix
$ npm run lint
$ npm run lint:fix
$ npm run format
$ npm run format:fix
Licensed under the MIT License.