You can install it for Chrome and Firefox.
In case you're not interested in installing the extension, or want to use it in an unsupported browser, you can use the bookmarklet:
javascript:(function(){var script = document.createElement('script');script.src = 'https://rawgit.com/Starcounter/DevTools/master/build/webextension/injected_script.js';document.body.appendChild(script);script.onload=()=>window.dispatchEvent(new CustomEvent('sc-debug-show-overlay'))})()
# install dependencies
npm install
# build for production with minification
npm run build
After you build, you'll have a build
directory with two sub-directories webextension
and firefox
. WebExtension folder can be used for every browser that supports WebExtension except Firefox, and you can use firefox
directory with you-guessed-it browser.
build/webextension
folder as an unpacked extension by going to chrome://extensions/
and clicking "Load unpacked extension".build/firefox
folder as an unpacked extension by going to about:debugging#addons
then clicking "Load Temporary Add-on" and selecting manifest.json
file.build/webextension
folder as an unpacked extension by clicking Menu (or press alt), then selecting "Extensions", then on the top-right corner select "Developer Mode" then "Load unpacked extension", then select the folder.You can run
npm install
npm run watch
This will watch for file changes and compile again after every file modification you make. Then in the browser, you'll need to "Reload extension" after each modification. Each modification will take you ~2 seconds to see live. Easy enough.
After you build, you'll need to zip
the extension and upload it to the desired store.
Write tests