background: url("file:///Profiles/xxx.Aktuell/chrome/icon/test.png") no-repeat !important;
versuch mal mit: background: url("..//icon/test.png") no-repeat !important;
background: url("file:///Profiles/xxx.Aktuell/chrome/icon/test.png") no-repeat !important;
versuch mal mit: background: url("..//icon/test.png") no-repeat !important;
Grml.. immer wenn ich die breite des Tabs "Neuer Tab" ändern will kommt das mit dem Hiddentabs in der Chronik.
Sowohl die Skriptversion aus Beitrag #23 als auch die Version aus Beitrag #35 bzw. von mir vervollständigt in Beitrag #38 zeigen sowohl die Anzahl der Links und der Ordner an.
Hat sich Dank 2002Andreas erledigt. Danke
Siehe bitte Beitrag Nr. 42
Danke dir.
Hier im Bild sieht man dass es im Menüleiste unter "Lesezeichen" es auch anzeigt.
Meine Frage: Warum zeigt es nicht hier an?
Weil es eine Zusatzleiste ist?
Wenn ja, in einem Script:
Danke ich teste es mal.
Was erwartest du also, wenn du beide Scripte nutzt?
ich hatte 2 Scripte. das Eine zeigte hinter den Ordnernamen wieviel unterordner/links es drin hatte.
das 2.te war das übliche die im Ordner drin es anzeigte. So wie es hier bei dir Anzeigt im Bild.
Und ich wollte Beides.
Siehe mein Beitrag-Nr: #1 hier im Thema.
Hier doch noch das vollständige Skript:
Danke.
Hmm.. diese 2 Script's laufen zusammen nicht.
Eine ist das Obere und eine ist dafür, um hinter den Ordnernamen anzuzeigen, wieviele Links und Ordner es darin hat.
Das Obere für die Links und Ordner im Ordner drin.⬇️
⬇️
(function() {
if (!window.gBrowser)
return;
function setFunction() {
PlacesViewBase.prototype._mayAddCommandsItems =
function PVB__mayAddCommandsItems(aPopup) {
let hasMultipleURIs = false;
let menuitemCount = 0;
let menuCount = 0;
if (aPopup._placesNode.childCount > 0) {
for (let item of aPopup.children) {
if (item._placesNode) {
if (item.localName == 'menuitem') {
menuitemCount++;
} else if (item.localName == 'menu') {
menuCount++;
}
}
}
if (menuitemCount > 0 || menuCount > 0) {
hasMultipleURIs = true;
}
}
if (!hasMultipleURIs) {
aPopup.setAttribute("nofooterpopup", "true");
if (aPopup._endOptOpenAllInTabs) {
aPopup.removeChild(aPopup._endOptOpenAllInTabs);
aPopup._endOptOpenAllInTabs = null;
aPopup.removeChild(aPopup._endOptSeparator);
aPopup._endOptSeparator = null;
}
return;
}
aPopup.removeAttribute("nofooterpopup");
if (!aPopup._endOptOpenAllInTabs) {
aPopup._endOptSeparator = document.createXULElement("menuseparator");
aPopup._endOptSeparator.className = "bookmarks-actions-menuseparator";
aPopup.insertBefore(aPopup._endOptSeparator, aPopup.firstChild);
aPopup._endOptOpenAllInTabs = document.createXULElement("menuitem");
aPopup._endOptOpenAllInTabs.className = "openintabs-menuitem";
if (typeof this.options.extraClasses.entry == "string") {
aPopup._endOptOpenAllInTabs.classList.add(
this.options.extraClasses.entry
);
}
if (typeof this.options.extraClasses.footer == "string") {
aPopup._endOptOpenAllInTabs.classList.add(
this.options.extraClasses.footer
);
}
aPopup._endOptOpenAllInTabs.setAttribute(
"oncommand",
"PlacesUIUtils.openMultipleLinksInTabs(this.parentNode._placesNode, event, " +
"PlacesUIUtils.getViewForNode(this));"
);
aPopup._endOptOpenAllInTabs.setAttribute(
"onclick",
"checkForMiddleClick(this, event); event.stopPropagation();"
);
aPopup.insertBefore(aPopup._endOptOpenAllInTabs, aPopup.firstChild);
}
let label = menuitemCount + " Link";
if (menuitemCount != 1) {
label += "s";
}
label += " / " + menuCount + " Ordner."
if (menuitemCount == 1) {
label += " -> Link in Tab öffnen."
} else if (menuitemCount > 1) {
label += " -> Links in Tabs öffnen."
}
aPopup._endOptOpenAllInTabs.setAttribute("label", label);
}
}
let intId = setInterval(function() {
if (window.PlacesViewBase) {
clearInterval(intId);
setFunction();
}
}, 500);
})();
Alles anzeigen
Und das ist für die Anzahl die hinter dem Ordnernamen angezeigt wird, wieviel Links und Ordner es beinhaltet. ⬇️
⬇️
(function() {
if (!window.gBrowser)
return;
function setFunction() {
PlacesViewBase.prototype._mayAddCommandsItems = function PVB__mayAddCommandsItems(aPopup) {
if (aPopup == this._rootElt)
return;
let hasMultipleURIs = false;
let menuitemCount = 0;
let menuCount = 0;
if (aPopup._placesNode.childCount > 0) {
for (let item of aPopup.children) {
if (item._placesNode) {
if (item.localName == 'menuitem') {
menuitemCount++;
} else if (item.localName == 'menu') {
menuCount++;
}
}
}
if (menuitemCount > 0 || menuCount > 0) {
hasMultipleURIs = true;
}
}
if (!hasMultipleURIs)
aPopup.setAttribute("nofooterpopup", "true");
else
aPopup.removeAttribute("nofooterpopup");
if (!hasMultipleURIs) {
if (aPopup._endOptOpenAllInTabs) {
aPopup.removeChild(aPopup._endOptOpenAllInTabs);
aPopup._endOptOpenAllInTabs = null;
aPopup.removeChild(aPopup._endOptSeparator);
aPopup._endOptSeparator = null;
}
} else if (!aPopup._endOptOpenAllInTabs) {
aPopup._endOptSeparator = document.createXULElement("menuseparator");
aPopup._endOptSeparator.className = "bookmarks-actions-menuseparator";
aPopup.insertBefore(aPopup._endOptSeparator, aPopup.firstChild);
aPopup._endOptOpenAllInTabs = document.createXULElement("menuitem");
aPopup._endOptOpenAllInTabs.className = "openintabs-menuitem";
if (typeof this.options.extraClasses.entry == "string") {
aPopup._endOptOpenAllInTabs.classList.add(
this.options.extraClasses.entry
);
}
if (typeof this.options.extraClasses.footer == "string") {
aPopup._endOptOpenAllInTabs.classList.add(
this.options.extraClasses.footer
);
}
aPopup._endOptOpenAllInTabs.setAttribute(
"oncommand",
"PlacesUIUtils.openMultipleLinksInTabs(this.parentNode._placesNode, event, " +
"PlacesUIUtils.getViewForNode(this));"
);
aPopup._endOptOpenAllInTabs.setAttribute(
"onclick",
"checkForMiddleClick(this, event); event.stopPropagation();"
);
let label = menuitemCount + " Link";
if (menuitemCount != 1) {
label += "s";
}
label += " / " + menuCount + " Ordner."
if (menuitemCount == 1) {
label += " -> Link in Tab öffnen."
} else if (menuitemCount > 1) {
label += " -> Links in Tabs öffnen."
}
aPopup._endOptOpenAllInTabs.setAttribute("label", label);
aPopup.insertBefore(aPopup._endOptOpenAllInTabs, aPopup.firstChild);
}
}
}
let intId = setInterval(function() {
if (window.PlacesViewBase) {
clearInterval(intId);
setFunction();
}
}, 500);
})();
Alles anzeigen
Da hilft üben, üben, üben.
Ja aber ich weiss nie welcher den ganz richtige Begriff ist.
Der Begriff den ich hatte war eigentlich auch richtig aber nicht ganz.
Fehlen natürlich noch die anderen Bezeichnungen.
Bei mir ist immer das Problem, den richtigen Begriff dafür zu finden.
Danke dir vielmal.
toolbarbutton[data-l10n-id="browser-window-minimize-button"]:hover {
background: lightgrey url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/minimize.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -5px !important;
}
klappt irgendwie nicht so.
Hallo..
Ich hab mal eine Code für die Menüleiste zusammenerstellt und habe ein Problem.
Habe auch die Icons für minimieren, maximieren, verkleinern und schliessen geändert.
Mein Problem wenn ich mit der Maus auf die Icons gehe, haben sie keinen grauen Hintergrund (Hover)
Hab auch schon wie ihr im Code sieht, hinter dem ersten ein Hover gesetzt im Code, aber funkt nicht.
Und wenn ich auf dem Button "schliessen" bin und mit dem Maus ganz wenig nach links rutsche, zeigt es sofort den Tooltip für den vorherigen an.
Was mach ich falsch?
Besten Danke im Voraus.
Hier die Code:
@-moz-document url-prefix("chrome://browser/content/browser.xhtml") {
toolbarbutton[data-l10n-id="browser-window-minimize-button"] {
list-style-image: none !important;
background: url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/minimize.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -5px !important;
}
toolbarbutton[data-l10n-id="browser-window-minimize-button"]:hover {
background: url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/minimize.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -5px !important;
}
toolbarbutton[data-l10n-id="browser-window-maximize-button"] {
list-style-image: none !important;
background: url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/maximize.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -15px !important;
}
toolbarbutton[data-l10n-id="browser-window-restore-down-button"] {
list-style-image: none !important;
background: url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/mreduce1.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -5px !important;
}
toolbarbutton[data-l10n-id="browser-window-close-button"] {
list-style-image: none !important;
background: url("file:///C:/Users/askas/AppData/Roaming/Mozilla/Firefox/Profiles/use9514s.default-release/chrome/favicons/mClose.png") no-repeat !important;
margin-top: 5px !important;
margin-right: -20px !important;
}
/* Menübar (7 Menüs ganz Oben) Farbe ändern */
#toolbar-menubar {
background-color: blue !important;
color: white !important;
}
#main-menubar menupopup {
--panel-background: blue !important;
--panel-color: white !important;
}
#main-menubar menupopup:hover {
--panel-background: blue !important;
--panel-color: white !important;
}
#main-menubar menupopup menu:hover,
#main-menubar menupopup menuitem:hover {
background-color: #3333FF !important;
color: white !important;
}
/* Menü-Separator von allen Menüs im Menübar entfernen*/
#main-menubar menuseparator {
display: none !important;
}
/* Rahmen um den Popup-Fenster in allen Menüs im Menübar entfernen */
menupopup {
--panel-border-color: none !important;
}
/* Menüleiste 7 Menüs farbig, Hover und Border pünktet */
menu[id="file-menu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="file-menu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="edit-menu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="edit-menu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="view-menu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="view-menu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="history-menu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="history-menu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="bookmarksMenu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="bookmarksMenu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="tools-menu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="tools-menu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
menu[id="helpMenu"] {
background-color: blue !important;
color: white !important;
border-width: 2px !important;
border-style: dotted !important;
}
menu[id="helpMenu"]:hover {
background-color: red !important;
color: white !important;
border-width: 4px !important;
border-style: dotted !important;
}
}
Alles anzeigen
Teste:
Tausendmal Danke aborix es funktioniert tiptop.
Ganz oben:
Hab das aus grad genommen. Dankeschön.
Teste:
Das funkt leider garnicht. Nicht beim Tab anklicken, nicht wenn es aktiv ist und auch nicht wenn es der inaktive tab ist. Garnicht.