Skip to content

Commit 19cf549

Browse files
firefox specific guide
1 parent a26f5b1 commit 19cf549

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,19 @@
5252
- Enable "Developer Mode" (toggle in the top-right).
5353
- Click "Load unpacked" and select the `dist/chrome` folder inside the cloned repository.
5454

55-
**For Firefox (Gecko):**
56-
- Navigate to `about:debugging` in Firefox.
57-
- Click on "This Firefox" in the left sidebar.
58-
- Click "Load Temporary Add-on...".
59-
- Select the `manifest.json` file inside the `dist/firefox` folder.
60-
- *Note: The extension will remain active only for the current browser session. If you need persistence, consider using Firefox Developer Edition.*
55+
**For Firefox (Gecko):**
56+
57+
- after you have built the extension run the following:
58+
```
59+
cd dist/firefox
60+
zip -r extension.zip *
61+
mv extension.zip extension.xpi
62+
```
63+
- Navigate to `about:config` in Firefox and set xpinstall.signatures.required = false.
64+
- go to extensions & themes from right hand side hamburger menu
65+
- Click on settings under manage your extenisions
66+
- Click "Load Temporary Add-on...".
67+
- Select the `extension.xpi` file inside the `dist/firefox` folder.
6168

6269
## Usage
6370

src/scripts/background.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ browser.storage.onChanged.addListener((changes, area) => {
3636

3737
browser.action.onClicked.addListener((tab) => {
3838
try {
39+
// Firefox uses sidebarAction API; sidePanel is Chrome-only
40+
if (typeof browser.sidebarAction?.toggle === 'function') {
41+
browser.sidebarAction.toggle();
42+
return;
43+
}
44+
3945
if (!browser.sidePanel?.open) {
4046
console.warn('Side panel API not available.');
4147
return;

0 commit comments

Comments
 (0)