Add-ons offline installation
I've an offline computer running Windows. I need to install add-on to the firefox. I am running latest version of firefox on that computer. This computer with internet, would not let me install Firefox. So, I'd have to download the add-on using another browser, and then use that for offline installation of the add-on on my other computer. Any clues on how to do this?
所有回复 (2)
I don't know if this can still be done.
Go to the add-ons webpage. Do Not select Install. Instead, download the file. Copy the file to where you want and then, with the browser open, drop the file into the browser window.
When you do not use Firefox then you can't download an extension's XPI file for offline installation. You would have to spoof the user agent to a valid Firefox to be able to download the XPI file via the right-click context menu.
There is JSON data send as part of the page code that does include the download location.
You can run this code in the Web Console to get this JSON data. The Addons website prohibits via CSP to run this code as a bookmarklet.
rss=document.querySelector('#redux-store-state'); nam=document.querySelector('.AddonTitle'); prompt('JSON data\n'+nam.textContent,rss.textContent); JSON.parse(rss.textContent);
I've added a screenshot that shows an example where to look to the download URL.
- versions -> GetId -> {id} -> platformFiles -> {all or windows} -> url