Assegnate 4 su 5 stelle

Hi,

Thanks for this simple but useful add-on :-)

Here is my "Clean and Restart" alternative:

cleanAndRestartApp: function() {
const XRE = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime);
if(typeof XRE.invalidateCachesOnRestart == 'function') {
XRE.invalidateCachesOnRestart();
} else {
const files = ['compreg.dat','xpti.dat','extensions.cache','extensions.ini','extensions.rdf'];

for each(var name in files) {
var file = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties)
.get("ProfD", Components.interfaces.nsIFile);

file.append(name);
if(file.exists()) {
file.remove(false);
}
}
}

// Restart
this.restartApp();
},