Inline Installation for Firefox extension

Hey everyone,

I have a Firefox extension here that is on the store: https://addons.mozilla.org/en-US/firefox/addon/giftibly-gift-assistant/

I was wondering if there was a way to do an inline install like Chrome is able to do, where you click a button which brings up a popover where the user can simply hit yes to have the extension installed. Exactly like Amazon does it: https://www.amazon.com/gp/BIT/ref=bit_v2_a0042?bitCampaignCode=a0042&defaultUWLExperience=true

Now, I’ve read all this documentation: https://developer.mozilla.org/en-US/docs/Installing_Extensions_and_Themes_From_Web_Pages

But it seems like you have to manually store the xpi and icon files on your site to link to and I’m still not sure how you get the hash. Is there a way to download this from the mozilla webstore without having to store the files on your site? I already have a Chrome extension so I really don’t want to update that, the Firefox extension on the webstore, AND the one on my site.

If there is a way to do this and if anyone could tell me how or point me in the right direction, that would be greatly appreciated.

You can try linking to the XPI on AMO fomr your site, but I think Firefox enforces that the origin of the file matches the origin you’re installing from.

It does not. That’s actually what I ended up doing but everytime I update which is often, I need to change the link on the server to get the latest version.

You can use this URL to point to the latest version every time:
https://addons.mozilla.org/firefox/downloads/latest/giftibly-gift-assistant/addon-895956-latest.xpi