To test the extension you can load it locally in the Firefox browser but there is a simple build step required.
In the terminal run this command:
node scripts/build_firefox.js
This just copies the files from extension to browser_variants/firefox.
- In Firefox go to the Debugging page.
- Click on the
Load Temporary Add-onbutton under the "Temporary Extensions" heading. - In the file selector that comes up navigate to your
browser_variants/firefoxfolder and select themanifest.jsonfile there and press the Open button. - You should now see the local WikiTree Sourcer extension under the "Temporary Extensions" heading.
You should now see the WikiTree Sourcer extension under the puzzle piece icon when on any web page. You may need pin it to make it show up in the task bar.
- Run the command
node scripts/build_firefox.js - In Firefox go to the Debugging page.
- Click the reload button in under WikiTree Sourcer in Temporary Extensions. This will reload the extension with your changes.
- Go back to the record page you are testing and reload the page.
- Run the command
node scripts/build_firefox.js - In Firefox just bring up the Sourcer menu on an page. It should have your changes.