extension-boilerplate
v0.0.2
Published
A template for creating cross-browser extensions
Downloads
5
Readme
Similarly to MetaMask, BandMask allows developers to build dApp UI on website. It exposes instance of Band Protocol Client to the web, and allows the dApp to communicate with blockchain without having to manage user wallet credentials itself.
I have extracted this from the browser extensions that I built for my side-project, Email This.
Side note: Do check out Email This. It is a simpler alternative to bookmarking tools like Pocket, Readability & Instapaper. Email This will remove ads & distractions from an article and send you a nice email with just the text/images. No need to install any additional applications or login to another app just to access your bookmarks. The Chrome Extensions is available on the Chrome Web Store.
Features
You can also set custom data variables based on the platform (different variable for Chrome, FF, Opera).
Installation
$> yarn install
$> yarn build
Alternately, if you want to try out the sample extension, here are the download links. After you download it, unzip the file and load it in your browser using the steps mentioned below.
Load the extension in Chrome & Opera
- Open Chrome/Opera browser and navigate to chrome://extensions
- Select "Developer Mode" and then click "Load unpacked extension..."
- From the file browser, choose to
extension-boilerplate/build/chrome
or (extension-boilerplate/build/opera
)
Load the extension in Firefox
- Open Firefox browser and navigate to about:debugging
- Click "Load Temporary Add-on" and from the file browser, choose
extension-boilerplate/build/firefox
Developing
The following tasks can be used when you want to start developing the extension and want to enable live reload -
npm run chrome-watch
npm run opera-watch
npm run firefox-watch
Packaging
Run npm run dist
to create a zipped, production-ready extension for each browser. You can then upload that to the appstore.
TODO
- [ ] Add support for Safari
- [x] Add Firefox & Opera Promo images
- [x] Add sample screenshot templates
- [ ] Write a guide for using config variables & JS preprocessor
This project is licensed under the MIT license.
If you have any questions or comments, please create a new issue. I'd be happy to hear your thoughts.
Bharani, Email This