Page 1 of 1

Why I Can't Install Some Addons

Posted: 2017-12-05, 15:04
by Walpurgisnacht
I can't install some legacy Firefox addons like this: https://addons.mozilla.org/it/firefox/a ... p-blocker/

I can install that addon on Firefox version 48+, Waterfox, but on Basilisk I get this error:

Re: Why I Can't Install Some Addons

Posted: 2017-12-05, 21:46
by GMforker
Walpurgisnacht wrote:I can't install some legacy Firefox addons like this: https://addons.mozilla.org/it/firefox/a ... p-blocker/

I can install that addon on Firefox version 48+, Waterfox, but on Basilisk I get this error:
After adding the following lines (to "manifest.json"):

Code: Select all

"applications": {
  "gecko": {
    "id": "addon@example.com"
  }
}
the problem was solved.

AFAIK: The default values (because optional=true) are wrong (I cannot look for it now)...

Re: Why I Can't Install Some Addons

Posted: 2017-12-06, 10:34
by Walpurgisnacht
GMforker wrote:
Walpurgisnacht wrote:I can't install some legacy Firefox addons like this: https://addons.mozilla.org/it/firefox/a ... p-blocker/

I can install that addon on Firefox version 48+, Waterfox, but on Basilisk I get this error:
After adding the following lines (to "manifest.json"):

Code: Select all

"applications": {
  "gecko": {
    "id": "addon@example.com"
  }
}
the problem was solved.

AFAIK: The default values (because optional=true) are wrong (I cannot look for it now)...

I've added those lines to "manifest.json", but I still get the same error... :|

Re: Why I Can't Install Some Addons

Posted: 2017-12-06, 11:23
by GMforker
Do you have a valid JSON file?

False:

Code: Select all

  "short_name": "Poper Blocker"
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
True:

Code: Select all

  "short_name": "Poper Blocker",
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
This works for me.

Re: Why I Can't Install Some Addons

Posted: 2017-12-06, 14:08
by Walpurgisnacht
GMforker wrote:Do you have a valid JSON file?

False:

Code: Select all

  "short_name": "Poper Blocker"
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
True:

Code: Select all

  "short_name": "Poper Blocker",
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
This works for me.
I'm still getting the same error: will you upload the valid .json file, please? :crazy:

Thanks!

Re: Why I Can't Install Some Addons

Posted: 2017-12-06, 15:58
by coffeebreak
Walpurgisnacht wrote:I'm still getting the same error

The edit worked here: the extension installed with no problem.
Use the code box designated "True:". The first line in that code box is actually already present at the bottom of the page (line 66) - Either overwrite it or add a 'comma'

Before and after pictures. Note Line 66 (and following)...
before editing.
poperblocker-before-edit.png
after editing.
poperblocker-edited.png

Re: Why I Can't Install Some Addons

Posted: 2017-12-06, 16:31
by Walpurgisnacht
coffeebreak wrote:
Walpurgisnacht wrote:I'm still getting the same error

The edit worked here: the extension installed with no problem.
Use the code box designated "True:". The first line in that code box is actually already present at the bottom of the page (line 66) - Either overwrite it or add a 'comma'

Before and after pictures. Note Line 66 (and following)...
before editing.
poperblocker-before-edit.png
after editing.
poperblocker-edited.png
I've just done that but I still get this error:

so please upload your edited "poper" addon file,
or at least your edite"manifest.json" file,
'cause I don't understand where I go wrong with it... :?

Re: Why I Can't Install Some Addons

Posted: 2017-12-07, 19:53
by dark_moon
Just a simple question: did you rebuild the addon with the modified file? Else nothing happens

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 10:57
by Walpurgisnacht
dark_moon wrote:Just a simple question: did you rebuild the addon with the modified file? Else nothing happens
I've "unzipped" that addon, using winrar and edited "manifest.json", just like they've written above.
And then I've rebuilt the addon with the edited "manifest.json" file, but nothing has changed: I'm still getting the same error.

Why don't you upload the modified addon or, at least, a valid edited "manifest.json" file?

I really don't understand where I go wrong... :roll:

Thanks!

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 12:00
by coffeebreak
Walpurgisnacht wrote:I really don't understand where I go wrong...

When you rebuilt, did you zip up the folder that contained the manifest.json and other files? (NOT correct).
Or just the files? (correct).
Because those files need to be in the root directory of the xpi (if they were there originally, before editing).

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 14:00
by Walpurgisnacht
coffeebreak wrote:
Walpurgisnacht wrote:I really don't understand where I go wrong...

When you rebuilt, did you zip up the folder that contained the manifest.json and other files? (NOT correct).
Or just the files? (correct).
Because those files need to be in the root directory of the xpi (if they were there originally, before editing).
Just the file.
My rebuilt addon and the orginal one are the same, except for "manifest.json" files contained.

So I really don't know what to do to make it compatible with Basilisk.

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 14:15
by gracious1
GMforker wrote:Do you have a valid JSON file?

False:

Code: Select all

  "short_name": "Poper Blocker"
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
True:

Code: Select all

  "short_name": "Poper Blocker",
  "applications": {
    "gecko": {
      "id": "addon@example.com"
    }
  }
This works for me.
I don't really see any difference between these two??

Also, would it be possible just to upload the modified manifest.json file ?

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 16:10
by coffeebreak
gracious1 wrote:I don't really see any difference between these two??

The 'comma':
the-difference.png
the-difference.png (42.63 KiB) Viewed 1837 times

Re: Why I Can't Install Some Addons

Posted: 2017-12-08, 16:20
by Walpurgisnacht
coffeebreak wrote:
gracious1 wrote:I don't really see any difference between these two??

The 'comma':
the-difference.png

Thank you very much coffeebreak!

Re: Why I Can't Install Some Addons

Posted: 2017-12-13, 16:48
by Hitchhiker
Some advice please folks.

I have the same problem as the OP albeit with a different extension which is this one.

There's no manifest.json in the root of my profile so I created one using Notepad with the following code:

Code: Select all

  "short_name": "Anti-Paywall",
  "applications": {
    "gecko": {
      "id": "addon@https://addons.mozilla.org/en-US/firefox/addon/anti-paywall/"
    }
  }
I tried without the https:// as well, but it doesn't make any difference.

There is manifest.json file present in the gmp-widevinecdm\1.4.8.903 directory but that appears to be related to the Google Widevine Decryption module judging by its name so I assume that's not the one I want.

Re: Why I Can't Install Some Addons

Posted: 2017-12-13, 21:29
by GMforker

Re: Why I Can't Install Some Addons

Posted: 2017-12-14, 12:52
by Hitchhiker
GMforker wrote:See also issue #238 (moebius).
I think I'll have to shelve that extension until a later date. It's supposed to be compatible with FF48+, but the first release didn't become available until November 25 this year. That in turn seems to indicate that it's a WebExtension rather than legacy.

The developer also stated on issue #7 that it's not compatible with Basilisk which more or less confirms it as a WebExtension I think.

Thanks for the response anyway.