Install WebExtensions on Firefox from the command line -


i found question how install firefox addon command line in scripts? seems work firefox extensions (i.e. ones install.rdf file) webextensions (extension manifest.json file instead)?

please see:

the question link on askubuntu: how install firefox addon command line in scripts? several years out of date, have information.

at point, mozilla add-ons, including firefox webextension add-ons, installed manually placing add-on's .xpi file in appropriate directory correct name extension without unpacking (unzipping) contents. [you can install them downloading them in firefox, drag-and-drop .xpi onto firefox/thunderbird, etc.]

you can determine add-ons must unpacked unpacking add-on's .xpi file , looking @ install.rdf file see if has <em:unpack>true</em:unpack>. webextensions don't have file, , installed without unpacking.

the .xpi file must called [extensionid].xpi. can find extension id either install.rdf file (non-webextension add-ons). in file, looking <em:id>thisentirestringistheaddonsid</em:id>

for webextension, id in manifest.json file under applications property:

"applications": {     "gecko": {         "id": "thisentirestringistheaddonsid"     } }, 

for both of above examples .xpi file must renamed thisentirestringistheaddonsid.xpi

if install.rdf file includes <em:unpack>true</em:unpack>, files in .xpi must unpacked (unzipped) , placed in subdirectory under extensions directory. in above install.rdf example (again webextensions not unpacked), directory named: thisentirestringistheaddonsid

extension directories:

the extension directories put .xpi file or unpacked directory (information partially copied mdn):

for users running particular version of firefox:
[firefox install directory]/browser/extensions/
firefox ask user confirm installation of add-on when version of firefox run. user not have ability remove extension, disable it. extension not automatically updated.

for users running particular version of firefox:
[firefox install directory]/distribution/extensions
extension installed users/profiles first time profile run version of firefox. extension copied profile's extensions directory , user able remove in addition disabling it. user not asked confirm installation. extension copied each profile automatically updated along other extensions installed profile. should not unpack .xpi files in directory. if file needs unpacked, done automatically firefox when extension installed in each profile.

for particular user's specific profile:
[profile directory]/extensions/

on windows:
profiles specific user:
%appdata%\mozilla\extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}\

profile directories located at:
\mozilla\firefox\profiles\*

osx:
users:
/library/application support/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/

just specific user, place in user's library folder hierarchy:
~/library/application support/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/

linux:
users:
/usr/lib/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
or
/usr/lib64/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
or
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/

just specific user:
~/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/

note:

the -install-global-extension option mentioned in question/answer linked removed firefox of gecko 1.9.2 ( long time ago).


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -