Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.17 KB

README.md

File metadata and controls

48 lines (30 loc) · 2.17 KB

Hello, Word! – Extension

Download: Chrome/Chromium | Firefox | Safari | Website | Buy us a coffee

Badge Badge

Private variables in a storage

__devMode – for dev development

Building

Rename config.json.example to config.json and adjust configuration as desired.

There are also other build scripts available. Install npm, then run npm install in the repository to install dependencies.

Run npm run build to generate a Chrome extension.

Use npm run build:firefox to generate a Firefox extension.

The result is in dist. This can be loaded as an unpacked extension

Developing with a clean profile

Run npm run dev to run the extension using a clean browser profile with hot reloading. Use npm run dev:firefox for Firefox. This uses web-ext run.
Known chromium bug: Extension is not loaded properly on first start. Visit chrome://extensions/ and reload the extension.

Debugging

Content: Developer Tools > Content scripts > ${extension_name}

Popup: Click on icon > Mouse Right Click on the popup > View code

window.location.reload()

Background: Go to chrome://extensions/?id=${extension_id} > Inspect views > Background

Options: Mouse Right Click on the popup settings > View code