Pages at the https://addons.mozilla.org/en-US/firefox site often feature buttons that say "Add to Firefox".

Clicking on such a button causes a Firefox extension to be downloaded and installed.

I am looking for a convenient way to limit this action to the download step only, so that in the end I am left with the downloaded *.xpi file in my disk.


P.S. The following approach is not only inconvenient: it doesn't work!.

  1. Inspect the HTML for the button, and extract a URL like


    give or take the stuff after .xpi.

  2. at the command-line prompt, download this URL with wget or curl.

This download attempt just hangs. (Even if it didn't, I'd like to find a less cumbersome approach.)


In Firefox, right-click on the download button and select "save link as" has always worked for me.

| improve this answer | |
  • 2
    This method still works 5 years later! It also works if the addon you're looking at is marked as 'incompatible'. The button is disabled, but if you inspect it, you'll be able to copy the URL and effectively force-install it. – BoffinBrain Aug 12 '17 at 2:13

Go to the add-on you want to install and just right click on the +Add to Firefox button and select save link as. After downloading the file just go to File>Open File and just select the extension you have downloaded work like a charm for me.

| improve this answer | |

Open the addons page in a chrome browser. Then right lick on 'Add to Firefox' link and click 'Copy Link Address'. Open a new tab and Paste the same link there. Hit Enter. It will download the .xpi file.

| improve this answer | |

Using another browser to download the plugin solves your problem.

Or you can just change the user-agent string and make your firefox look like another browser so you can download the extension.

But I know it isn't the best solution.

| improve this answer | |
  • 1
    Does not work anymore: If the firefox addon site does not recognise a compatible firefox browser (+ version), it shows instead a button to download firefox. How to get the .xpi-file with an arbitrary browser? – Golar Ramblar Jul 29 '19 at 18:44

Don't know about older versions, but in new firefox there is a setting in about:config page called browser.altClick which if set to true, will allow you to download the xpi files(or any files) without directly running it.

Worth giving a try, if you don't prefer right-click or your context menu is too long.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.