Detecting programatically whether addon installed on firefox

I would like to know 'How can we detect whether an addon/extension is installed on Mozilla Browser from our application? If suppose someone uninstalls it directly from the browser, then how our application come to know it.

Can it be possible using php,javascript or jquery?

You can use AddonManager for this. You can query whether a known extension is installed, and also use an AddonListener to be notified about changes.

You may not have sufficient privileges to do this from a web application. It isn’t considered a Web API. For obvious reasons, direct access to things like addons is not normally allowed from the web.

If you are trying to identify if the addon is installed from outside the Firefox environment, you can do so by reading from the file system.

You would open the extensions.json in the profile folder, for instance like this:

C:\Users\Noitidart\AppData\Roaming\Mozilla\Firefox\Profiles\392laks.default\extensions.json

Then parse that json, it is an array of objects, find the entry with the addon id you are looking for. If it’s not there, its not installed. If its there but userDisabled is true, then the user disabled it. If appDisabled is true then the addon is likely not compatible with the last version of firefox they ran in. softDisabled true means the user clicked uninstall but 1) if addon is a non-restartless addon - then it is waiting for user to restart browser and then it will be uninstalled 2) if the addon is restartless - then it is waiting for user to close the addon manager tab then it will be uninstalled completely

If you need help identifying the path to profiles, you should go to the profiles.ini this is always located in the user application data dir. That holds infos on the profiles.