Sometime obtaining informations about components isn’t so quick, you must iterate over RDF, XML or call many API.
Sometime is very simple like get a pref string… well this time I’m lucky
The pref general.skins.selectedSkin contains the current active theme name.
var currentThemeName = Components.classes['@mozilla.org/preferences-service;1']
.getService()
.QueryInterface(Components.interfaces.nsIPrefBranch)
.getCharPref("general.skins.selectedSkin");
Amazon wish list