Seite 1 von 1

Addons im Firefox aktivieren

Verfasst: 19 Aug 2014, 12:29
von D1Ck3n
Hallo,
ich wollte Firefox direkt mit installierten Addons verteilen und habe da leider das Problem, dass die Addons nach der installation immer deaktiviert sind. Gibt es eine Möglichkeit die Addons auch sofort zu aktivieren?

Gruß
D1Ck3n

Re: Addons im Firefox aktivieren

Verfasst: 19 Aug 2014, 13:21
von ritsovih
Sorry, for poor German writing capabilities, so I'll reply in English.

You can try the following.

Create a file called local-settings.js

It should contain at least the following:

Code: Alles auswählen

 pref("general.config.obscure_value", 0); // not sure if this is really needed, but I have it in my config
 pref("general.config.filename", "mozilla.cfg");
Create a file called mozilla.cfg

It should contain at least the following:

Code: Alles auswählen

pref("extensions.autoDisableScopes", 0);
pref("extensions.enabledScopes", 15);
download your *.xpi extension(s) and unpack them to separate folders with a compression program (I use 7-zip)

each unpacked folder should contain a file called install.rdf, open it with a texteditor and grab the top-most guid (including the curly brackets).

Code: Alles auswählen

<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

  <Description about="urn:mozilla:install-manifest">
    <em:id>{543b3a01-7ab2-13d4-5e02-004008928ae5}</em:id>
    <em:version>1.7</em:version>
    <em:type>2</em:type> <!-- type = extension -->
    <em:unpack>true</em:unpack>

    <!-- Target Applications this extension can install into,
         with minimum and maximum supported versions. -->
    <em:targetApplication>
      <Description>
        <!-- Thunderbird -->
        <em:id>{2110f702-f582-3d05-4a08-321d09bdfdc6}</em:id>
        <em:minVersion>24.0</em:minVersion>
        <em:maxVersion>34.0</em:maxVersion>
    <em:type>2</em:type> <!-- type = extension -->
    <em:unpack>true</em:unpack>
In this example the guid is {543b3a01-7ab2-13d4-5e02-004008928ae5}

rename the unpacked folder to this guid.

Now you silently install firefox and after install copy everything to the firefox program dir as follows:

installdir == c:\program files\Mozilla\firefox

local-settings.js ==> installdir\defaults\pref
mozilla.cfg ==> installdir
unpacked extensiondir(s) ==> installdir\extensions

so ultimately is should look something like this:

Code: Alles auswählen

c:\program files\Mozilla\firefox\
                                               firefox.exe
                                               mozilla.cfg
                                               defaults\pref\local-settings.js
                                               extensions\{543b3a01-7ab2-13d4-5e02-004008928ae5}

Re: Addons im Firefox aktivieren

Verfasst: 19 Aug 2014, 14:27
von D1Ck3n
Thanks for your answer. It has worked for me, but only the NoScript addon. I want to install HTTPS-Everywhere and Adblock Edge as well, but that did not work.

In the install.rdf of HTTPS Everywhere are also two em: id, which should i take?

Code: Alles auswählen

<em:id>https-everywhere@eff.org</em:id>
or

Code: Alles auswählen

<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
?

Code: Alles auswählen

<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

    <Description about="urn:mozilla:install-manifest">
        <em:name>HTTPS-Everywhere</em:name>
        <em:creator>Mike Perry & Peter Eckersley</em:creator>
        <em:aboutURL>chrome://https-everywhere/content/about.xul</em:aboutURL>
        <em:id>https-everywhere@eff.org</em:id>
        <em:description>Encrypt the Web! Automatically use HTTPS security on many sites.</em:description>
        <em:version>3.5.3</em:version>
        <em:homepageURL>https://www.eff.org/https-everywhere</em:homepageURL>
        <em:optionsURL>chrome://https-everywhere/content/meta-preferences.xul</em:optionsURL>
        <em:iconURL>chrome://https-everywhere/skin/https-everywhere.png</em:iconURL>
        <em:updateURL>https://www.eff.org/files/https-everywhere-update-2048.rdf</em:updateURL>
		<em:unpack>true</em:unpack> <!-- Required for Firefox 4 -->
        <em:updateKey>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6MR8W/galdxnpGqBsYbqOzQb2eyW15YFjDDEMI0ZOzt8f504obNs920lDnpPD2/KqgsfjOgw2K7xWDJIj/18xUvWPk3LDkrnokNiRkA3KOx3W6fHycKL+zID7zy+xZYBuh2fLyQtWV1VGQ45iNRp9+Zo7rH86cdfgkdnWTlNSHyTLW9NbXvyv/E12bppPcEvgCTAQXgnDVJ0/sqmeiijn9tTFh03aM+R2V/21h8aTraAS24qiPCz6gkmYGC8yr6mglcnNoYbsLNYZ69zF1XHcXPduCPdPdfLlzVlKK1/U7hkA28eG3BIAMh6uJYBRJTpiGgaGdPd7YekUB8S6cy+CQIDAQAB</em:updateKey>
        <!-- firefox -->
        <em:targetApplication>
            <Description>
                <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                <em:minVersion>20</em:minVersion>
                <em:maxVersion>35.*</em:maxVersion>
            </Description>
        </em:targetApplication>
        <!-- Seamonkey -->
        <em:targetApplication>
            <Description>
                <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
                <em:minVersion>2.17</em:minVersion>
                <em:maxVersion>3.*</em:maxVersion>
            </Description>
        </em:targetApplication>
        <!-- thunderbird --> 
        <em:targetApplication> 
            <Description> 
                <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> 
                <em:minVersion>17.0.5</em:minVersion>
                <em:maxVersion>32</em:maxVersion>
            </Description> 
        </em:targetApplication> 
        <!-- Conkeror -->
        <em:targetApplication>
          <Description>
            <em:id>{a79fe89b-6662-4ff4-8e88-09950ad4dfde}</em:id>
            <em:minVersion>0.1</em:minVersion>
            <em:maxVersion>99.*</em:maxVersion>
          </Description>
        </em:targetApplication>
    </Description>
</RDF>

Re: Addons im Firefox aktivieren

Verfasst: 19 Aug 2014, 14:43
von ritsovih
name the extension folder https-everywhere@eff.org

If it doesn't work that way try copying that folder to: c:\program files\mozilla firefox\browser\extensions