Basic browser extension using maxlath's wikibase-edit
- Clone repo
- Run
npm install
- Everything is hard-coded. Edit
main.js
to use your Wikidata credentials. - Run
npm run build
- Go to about:addons
- Click on the little gear and choose "Debug Add-ons"
- Click "Load Temporary Add-on"
- Choose this repo's
manifest.json
file - Click on "Inspect" next to "wikibase-edit-extension" to debug the extension.
- To run the edit hardcoded in
main.js
, click on the extension's button.
Each time you make a change to main.js
:
- Run
npm run build
again - "Reload" the wikibase-edit-extension addon in the "Debug Add-ons" page.
- Go to chrome://extensions/
- Click on "Load unpacked"
- Chooe this repo's folder
- Click on "Inspect views background page" to debug the extension
- To run the edit hardcoded in
main.js
, click on the extension's button.
Each time you make a change to main.js
:
- Run
npm run build
again - "Reload" the wikibase-edit-extension addon in Extensions page.