- Thunderbird-Produkt
- Thunderbird für Windows
- Thunderbird-Version
- 128.11.1
- Betriebssystem
- Win 10
Hallo,
ich habe ein UserScript gefunden von firefox der ein kleines Symbol in der Menüleiste anzeigt und bei klick auf Profil Ordner verweist.
kann das jemand Umschreiben für Thunderbird oder gibt es sowas bereits ?
Code
(function() {
if (location != 'chrome://browser/content/browser.xhtml') return;
try {
CustomizableUI.createWidget({
id: 'Profilordner',
type: 'custom',
defaultArea: CustomizableUI.AREAS,
onBuild: function(aDocument) {
var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
var props = {
id: 'Profilordner',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
removable: true,
// Name im AnpassungFenster
label: 'zum Aktuellen Profilordner',
// Name bei MausHover wenn in Symbolleiste
tooltiptext: 'zum Aktuellen Profilordner',
// style: 'list-style-image: url(file:///C:/Users/xxx/AppData/Roaming/Mozilla/Firefox/Profiles/zlmsqesg.default-release/chrome/icon/dateiname.png)',
style: 'list-style-image: url(file:///C:/Users/xxx/AppData/Roaming/Mozilla/Firefox/Profiles/zvjpsewu.DBI/chrome/icon/userProfil.ico)',
// oncommand: "Services.dirsvc.get('ProfD', Ci.nsIFile).launch();"
};
for (var p in props)
toolbaritem.setAttribute(p, props[p]);
toolbaritem.addEventListener('click', event => {
if (event.button == 0) {
Services.dirsvc.get("ProfD", Ci.nsIFile).launch();
}
});
return toolbaritem;
}
});
} catch(e) { };
})();
Alles anzeigen