A boilerplate template for building cross browser extensions (Chrome and Firefox).
A boilerplate template for building cross-browser extensions for Chrome and Firefox. The idea here is make easier to start a great extension for Chrome and Firefox. This template allow you start your cross-browser extension fast and also work with a organized code structure.
manifest.json
file and change the matches
URL to match exactly with the URL you want your script load."matches": ["https://any-url.com/*"],
$ npm install -g yarn
$ cd browser-extension-boilerplate/ && yarn
yarn start
yarn build
chrome://extensions/
in Chrome;browser-extension-boilerplate/extension
or the folder name you changed.src/app/main.js
file._locales
folder and create the respective language folder.en
to English (as default language) and pt
to Portuguese.messages.json
file and insert inside:{
"keyName": {
"message": "Value translatable",
"description": "Description of translatable value"
}
}