Skip to content

Instantly share code, notes, and snippets.

@debuggerpk
Last active December 19, 2015 19:29
Show Gist options
  • Select an option

  • Save debuggerpk/6006580 to your computer and use it in GitHub Desktop.

Select an option

Save debuggerpk/6006580 to your computer and use it in GitHub Desktop.
localte firefox extension
Components.utils.import("resource://gre/modules/AddonManager.jsm", null).AddonManager.getAllAddons(function (addons) {
alert(addons.filter(function (addon) {
return addon.type == "extension"
}).map(function (addon) {
return addon.name + ": " + addon.getResourceURI().spec
}).join("\n"))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment