Feodor2 / Centaury

web browser
58 stars 8 forks source link

Extensions compatibility #38

Open zakius opened 3 years ago

zakius commented 3 years ago

Many newer extensions with min version set pretty high will work just fine but won't install easily. I've tried using extensions.checkCompatibility.{version.number} available in Firefox for a long time but it either doesn't work or I can't figure out what number to put there. Is there a way to disable these checks?

LaOrhyUAcMji commented 3 years ago

I edit the install.rdf file of extensions to force compatibility. For example, to force Pale Moon compatibility:

    <!-- pale moon -->
    <em:targetApplication>
      <Description>
        <em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
        <em:minVersion>0.*</em:minVersion>
        <em:maxVersion>9999.*</em:maxVersion>
      </Description>
    </em:targetApplication>

For firefox:

        <!-- Firefox -->
        <em:targetApplication>
            <Description>
                <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                <em:minVersion>0.*</em:minVersion>
                <em:maxVersion>9999.*</em:maxVersion>
            </Description>
        </em:targetApplication>

for Basilisk:

  <!-- Basilisk -->
  <em:targetApplication>
    <Description>
      <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
      <em:minVersion>0.*</em:minVersion>
      <em:maxVersion>9999.*</em:maxVersion>
    </Description>
  </em:targetApplication>

for SeaMonkey:

<!-- Seamonkey -->
        <em:targetApplication>
            <Description>
                <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
                <em:minVersion>0.*</em:minVersion>
                <em:maxVersion>9999.*</em:maxVersion>
            </Description>
        </em:targetApplication>
zakius commented 3 years ago

I am aware of that, just having to download the file, extract, modify and re-package without signature is inconvenient

Feodor2 commented 3 years ago

No way to disable check extensions.checkCompatibility available in Firefox Nightly only we do not build nightly so this setting dummy and do nothing.

zakius commented 3 years ago

could you enable it in future builds?

LaOrhyUAcMji commented 3 years ago

@zakius - - as an aside, I'm personally considering building a tool that'll be able to edit chrome.manifest and install.rdf files and force compatibility for XPI files in bulk, I was just wondering if you have some info: is the GUID specification only in install.rdf and chrome.manifest, or are there any other files that have it? I'll write my tool accordingly

zakius commented 3 years ago

for WebExtensions there's manifest.json, and while the support here isn't great some of them will work just fine or mostly fine