- Firefox-Version
 - Firefox 78
 - Betriebssystem
 - Windows 10 - 64bit
 
Hallo,
habe in meiner Lesezeichen Menüleiste einen Button ohne Inhalt stehen:

hier Script dazu
Code
		
					
				//  Downloadbutton.uc.js
(function() {
   if (location != AppConstants.BROWSER_CHROME_URL) return;
    try {
             CustomizableUI.createWidget({
             id: 'Download-button',
             type: 'custom',
             defaultArea: CustomizableUI.AREA_NAVBAR,
             onBuild: function(aDocument) {         
                var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul','toolbarbutton');
                var props = {
                   id: 'Download-button',
                   class: 'toolbarbutton-1 chromeclass-toolbar-additional',
                   removable: true,
                   label: 'Download Fenster öffnen',
                   tooltiptext: 'Download Fenster öffnen',
                   style: 'list-style-image: url(file:///H:/Icons/downloadbutton.png)',
                   oncommand: "window.open('chrome://browser/content/downloads/contentAreaDownloadsView.xhtml', 'Downloads', 'chrome,resizable=yes,width=600,height=750,left=1220,top=100');"
                };          
                for (var p in props)
                    toolbaritem.setAttribute(p, props[p]);
                return toolbaritem;
            }
        });
        } catch(e) { };
   
})();
	
			Alles anzeigen
	Der Aufruf klappt >> lässt sich mein Button mit einem Icon ausfüllen?