Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.53 KB

HACKING.md

File metadata and controls

76 lines (53 loc) · 1.53 KB

Hacking

Getting the Source Code

git clone -b 0.0.2 https://github.com/guesant/ava-pro.git
cd ava-pro

Development with Docker (recommended)

We recommend the usage of Docker to develop the extension (due security reasons lol [1]).

make dev # -> packages/webextension/dist/dev
make build # -> packages/webextension/dist/prod
make sh # starts a shell session
make stop # stop the running container
make clear # delete the dist files and the parcel cache

Development with the NodeJS from your machine

npm i -g pnpm
pnpm install
pnpm run dev # -> packages/webextension/dist/dev
pnpm run build # -> packages/webextension/dist/prod

Load the extension build

Chrome

tl;dr;

  • Open the Extension Management page by navigating to chrome://extensions.

  • Enable Developer Mode by clicking the toggle switch next to Developer mode.

  • Click the Load unpacked button and select the extension directory.

Userful resources:

Firefox

tl;dr;

  • open Firefox

  • enter "about:debugging" in the URL bar

  • click "This Firefox"

  • click "Load Temporary Add-on"

  • open the extension's directory and select any file inside the extension, or select the packaged extension (.zip file).

Userful resources: