Ich habe die Restart-Version aus #33 mal etwas eingedampft (auskommentierte Zeilen weg) und den Teil mit dem Icon umgestellt auf meinen "normalen" Icon-Pfad. wenn jemand testen mag (Pfad in Zeile 20 natürlich anpassen…:
Code
		
					
				// Restart_Firefox.uc.js
// RestartFirefoxButtonM.uc.js
// v. 0.6
// Source file https://www.camp-firefox.de/forum/thema/126132/?postID=1093563#post1093563
(function() {
    if (location.href !== 'chrome://browser/content/browser.xhtml') return;
    try {
        CustomizableUI.createWidget({
            id: 'restart-button2a',
            type: 'custom',
            defaultArea: CustomizableUI.AREA_NAVBAR,
            onBuild: function(aDocument) {
                var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');                
                let props = {
                    id: 'restart-button2a',
                    class: 'toolbarbutton-1 chromeclass-toolbar-additional',
                    label: 'Neustart',
                    tooltiptext: 'Neustart (der userChrome.js-Cache wird geleert)',
					style: 'list-style-image: url("file:///F:/ICONS/FF/Neustart.png")',
                };             
                for (let p in props)
                    toolbaritem.setAttribute(p, props[p]);  
                
    /* Neu */
                toolbaritem.addEventListener('click', event => {
                    if (event.button == 1) {
                      Services.startup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
                    }
                
                    if (event.button == 0 || event.button == 2) {
                      event.preventDefault();
                      Services.appinfo.invalidateCachesOnRestart();
                      Services.startup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
                    }
                  });
    /* Bis hier */
                return toolbaritem;
            }        
        });
    } catch(e) { };
  
    sss.loadAndRegisterSheet(uri, sss.AUTHOR_SHEET);
})();
	
			Alles anzeigen
	Icon: ![]()