Requirements:
- node.js v20
First, run npm install
to install the dependencies and build the extension.
The built extension will be output to dist/
.
Then you can use npm run prepare
to rebuild the extension again once,
or npm run watch
to automatically rebuild on change.
To load the built extension in the browser:
- Firefox: Go to
about:debugging
, click "Load temporary Add-on" and selectdist/manifest.json
file. - Chrome: Go to
chrome:https://extensions
, click "Load unpacked" and select thedist/
folder
Before commit, run npm test
to check the code for errors.
You can use npm run format
to automatically fix format and linter errors.