Und eine weitere hätt' ich auch noch beizutragen. ![]()
JavaScript
// JavaScript Document
// QuickLinkButton-cf.uc.js
// Source file https://www.camp-firefox.de/forum/thema/135613-quicklink-button/?postID=1213791#post1213791
(function() {
if (location.href !== 'chrome://browser/content/browser.xhtml') return;
try {
CustomizableUI.createWidget({
id: 'link-button-about',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {
let toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
let props = {
id: 'link-button-about',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
removable: 'true',
label: 'Quicklink: about:about',
tooltiptext: 'Quicklink:\nabout:about',
onclick: 'if (event.button == 0) { \ openTrustedLinkIn("about:about", "tab");\ }; '
};
for (var p in props)
toolbaritem.setAttribute(p, props[p]);
return toolbaritem;
}
});
} catch(e) { };
let ProfilePath = PathUtils.toFileURI(PathUtils.join(PathUtils.profileDir, 'chrome', 'icons')); // Pfad zum Profilordner und gleich in den entsprechenden Unterordner
let ButtonIcon = "firefox-logo.svg"; // Name & Dateiendung des anzuzeigenden Symbols!
let sss = Components.classes["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService);
let uri = Services.io.newURI("data:text/css;charset=utf-8," + encodeURIComponent(`
#link-button-about { list-style-image: url("${ProfilePath}/${ButtonIcon}") }
#link-button-about.toolbarbutton-1.chromeclass-toolbar-additional image.toolbarbutton-icon {
width: 30px !important;
height: 30px !important;
fill: #f1b508 !important;
fill-opacity: 1 !important;
}
`), null, null);
sss.loadAndRegisterSheet(uri, sss.AUTHOR_SHEET);
})();
Alles anzeigen

geldhuegel
Du hast die Wahl, welchen Weg Du nach Rom nimmst.