Ich nutze dieses Skript, funktionierte nicht mehr in Nightly
Und ich habe noch eine weitere Variante:
JavaScript
// Open_library_in_new_tab.uc.js
(function() {
if (location != 'chrome://browser/content/browser.xhtml') return;
try {
CustomizableUI.createWidget({
id: 'library-button-2',
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: 'library-button-2',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
label: 'Library-Button',
tooltiptext: 'Open Library in tab',
style: 'list-style-image: url("file:///D:/Files/Icons/firefox-nightly.png")',
}; '
};
for (var p in props)
toolbaritem.setAttribute(p, props[p]);
toolbaritem.addEventListener('click', event => {
if (event.button == 0) {
openTrustedLinkIn("chrome://browser/content/places/places.xhtml", "tab");
}
});
return toolbaritem;
}
});
} catch(e) { };
})();
Alles anzeigen