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.

Thanks!

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

    https://addons.mozilla.org/firefox/downloads/latest/1234/addon-1234-latest.xpi?src=search

    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.)

up vote 16 down vote accepted

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

  • 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.

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.

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.

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.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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