Hi,
I would like to add and remove addons to Firefox from the command line in an automated fashion. I am an admin and have to do this over 400 times, and I can’t do this by hand.
The first thing I need to do is to remove all addons. Am I right that it’s enough to just remove everything under $profile/extensions (e.g. ~/.mozilla/firefox/nogdglqv.myprofile/extensions) and then all the extensions will be gone? I mean normal addons, not stuff like flash or java.
Then I need to install the right extensions. How do I do this? Guides online are a bit old and there’s no official guide. Will it be ok to just drop the xpi in $profile/extensions? Some guides say you have to unpack the xpi to $profile/extensions/$gid where $gid is the gid in the xpi’s manifest. But when I look at extensions that have been installed manually (by clicking in the GUI), they’re just xpi files. What’s the right way to do this?
Other than modify what’s under $profile/extensions, do I need to do any other changes to the profile in order for the extension to become installed properly?
Thanks!