File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ browser.storage.onChanged.addListener((changes, area) => {
3636
3737browser . 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 ;
You can’t perform that action at this time.
0 commit comments