MozillaZine

How to download *.xpi but NOT install it?

User Help for Mozilla Firefox
therube

User avatar
 
Posts: 18007
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted December 4th, 2017, 7:31 pm

https://addons.mozilla.org/en-US/firefo ... ack-shine/

"Themes" (cough, Personas) are different then extensions.
Not sure offhand how to download locally, but it might be a bit more involved then an extension?


And that said, ran into this yesterday, https://addons.mozilla.org/en-US/firefo ... favorites/, & it was nothing but a PITA to deal with.
Usually, disabling JavaScript, "gives" you a link to the download.
In this case, you don't see anything.
And if you enable JavaScript, you only get the Green Wall of Death.
After farting around with it a bit (screw you Mozilla), I pulled the link from the page source.
(Ridiculous.)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

therube

User avatar
 
Posts: 18007
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted December 4th, 2017, 9:16 pm

See noways question & gingerbreadman's response, Saving themes to disk.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

morat
 
Posts: 2496
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 4th, 2017, 9:32 pm

@therube

I use the following bookmarklet in Chrome to download Firefox xpi files. (may also work in SeaMonkey)

Code: Select all
javascript:(function(){
var url = "https://addons.mozilla.org/";
if (document.domain == "addons.mozilla.org") {
  var anchor = document.querySelector('a[href="#desktop"]');
  if (anchor && anchor.textContent == "View classic desktop site") {
    anchor.click();
  } else {
    var app = document.querySelector("body").
      getAttribute("data-app");
    var addon = document.querySelector('div[class="install-shell"] div').
      getAttribute("data-addon");
    var downloadUrl = url + app + "/downloads/latest/";
    if (document.querySelectorAll('a[class*="download platform windows"]').length) {
      downloadUrl += addon + "/platform:5/addon-" + addon + "-latest.xpi";
    } else {
      downloadUrl += addon + "/addon-" + addon + "-latest.xpi";
    }
    var a = document.createElement("a");
    a.href = downloadUrl;
    document.body.appendChild(a);
    a.click();
    a.parentNode.removeChild(a);
  }
} else {
  open(url);
}
})();

Bookmarklet Builder
http://subsimple.com/bookmarklets/jsbuilder.htm

Platform Number: 2, Platform Name: "Linux"
Platform Number: 3, Platform Name: "Mac OS X"
Platform Number: 5, Platform Name: "Windows"

You cannot use bookmarklets with AMO using Firefox. (content security policy error)

Brummelchen
 
Posts: 2738
Joined: March 19th, 2005, 10:51 am

Post Posted December 5th, 2017, 7:28 am

for chrome, much easier

Chrome extension source viewer
https://chrome.google.com/webstore/deta ... diffmgedin

same developer for firefox - not needed for firefox to save firefox extensions (right mouse click on green or yellow button -> save as)
https://addons.mozilla.org/en-US/firefo ... crxviewer/
usfull for loading chrome extensions in chrome store with firefox - not for end users, only usefull with firefox developer or nightly build because beta and final could not load zip file (not signed).

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot] and 17 guests