Skip navigation

This function will uninstall an extension from Firefox. Requires chrome elevated privileges of course. id is the GUID of the app such as “{2B904EEC-0D3E-11DF-A57C-648455D89593}” or “toolbar@google.com“, basically the name of the extensions folder in the extensions directory.

  
function uninstallExtension ( id ) {  
  var em = Components.classes["@mozilla.org/extensions/manager;1"]
  .getService(Components.interfaces.nsIExtensionManager);  
  em.uninstallItem(id);  
}; 
 

http://doxygen.db48x.net/mozilla/html/interfacensIExtensionManager.html#a521958f8991ceb91642a2144c28004d8

Posted via email from Apphacker’s learning curve

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: