Evtl. kann dir Horstmann ja sein angepasstes Skript bezüglich der Pfade geben.
Kanner, wenn's denn auch klappt
.
Ich habe am Script von 2002Andreas etwas herumgepfuscht, scheint soweit zu funktionieren.
Das Icon (eines hängt wieder unten an) wird wieder in Profilname/chrome/icons erwartet, der Pfad ist im Script eingebunden, wie von Mira_Belle mal ausgetüftelt.
Die CSS zur Anpassung der Zustände Ein/Aus ist ausgelagert in eine externe CSS Datei, mach ich selber meist so, und war jetzt zu faul wieder nachzuschauen wie man das noch ins Script packt.![]()
In der CSS kann man beliebig Anpassungen vornehmen, hier ist jetzt nur das Icon bzw. Label im Aus Zustand bleicher gemacht.
Script:
JavaScript
// https://www.camp-firefox.de/forum/thema/136599-tooltips-nur-f%C3%BCr-die-bedienoberfl%C3%A4che-ausschalten/?postID=1249369#post1249369
// tooltip-toggle_5.uc.js raus#1
(function() {
if (location.href !== 'chrome://browser/content/browser.xhtml')
return;
try {
CustomizableUI.createWidget({
id: 'tooltip_button',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {
var currentProfileDirectory = Services.dirsvc.get("ProfD", Ci.nsIFile).path.replace(/\\/g, "/");
var buttonicon = "LettersT-2.png";
var toolbaritem = aDocument.createXULElement('toolbarbutton');
var props = {
id: 'tooltip_button',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
removable: true,
label: 'Tooltip Toggle',
tooltiptext: "toggle tooltips",
style: 'list-style-image: url("' + ("file:" + currentProfileDirectory + "/chrome/icons/" + buttonicon) + '");',
background: Services.prefs.getBoolPref('browser.chrome.toolbar_tips') ?
'red' : 'cyan',
oncommand: '(' + onCommand.toString() + ')()'
};
for (var p in props)
toolbaritem.setAttribute(p, props[p]);
return toolbaritem;
}
});
} catch(e) { };
function onCommand() {
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
var isEnabled = !prefs.getBoolPref('browser.chrome.toolbar_tips');
prefs.setBoolPref('browser.chrome.toolbar_tips', isEnabled);
if (isEnabled)
tooltip_button.setAttribute('background', 'red')
else
tooltip_button.setAttribute('background', 'cyan');
};
})();
Alles anzeigen
CSS:
CSS
/* tooltips OFF adjustments */
/* button in toolbar */
toolbar:not([customizing]) #tooltip_button[background ="cyan"]:not(:hover, :active) .toolbarbutton-icon {
opacity: 0.5 !important;
}
/* button in overflow menu */
:root:not([customizing]) #tooltip_button[background ="cyan"] label {
opacity: 0.5 !important;
}
/* tooltips on adjustments, optional */
/*
#tooltip_button[background ="red"]:not(:hover, :active) .toolbarbutton-icon {
outline: 2px solid green !important;
outline-offset: -1px !important;
}
*/
Alles anzeigen
![]()