Eventuell sollte in Zeile 7 die Versions-Nr. auch angepaßt werden... ![]()
Beiträge von grisu2099
-
-
//Bitte mal den Schreibfehler im Thread-Titel berichtigen...

-
-
Ich habe gerade mit folgendem Skript, das im Lesezeichen-Menü die Anzahl der Ordner/Lesezeichen je Ordner anzeigt, herumgespielt...
JavaScript
Alles anzeigen(function() { if (!window.gBrowser) return; function setFunction() { PlacesViewBase.prototype._onPopupShowing = function PVB__onPopupShowing(aEvent) { let popup = aEvent.originalTarget; this._ensureMarkers(popup); if ("_delayedRemovals" in popup) { while (popup._delayedRemovals.length) { popup.removeChild(popup._delayedRemovals.shift()); } } if (popup._placesNode && PlacesUIUtils.getViewForNode(popup) == this) { if (!popup._placesNode.containerOpen) { popup._placesNode.containerOpen = true; } if (!popup._built) { this._rebuildPopup(popup); } this._mayAddCommandsItems(popup); } /* original function end */ for (let item of popup.children) { if (item.localName != 'menu' || item.id?.startsWith('history')) continue; setTimeout(() => { let itemPopup = item.menupopup; itemPopup.openPopup(); itemPopup.hidePopup(); let menuitemCount = 0; let menuCount = 0; for (let subitem of itemPopup.children) { if (subitem.classList.contains('bookmark-item') && !subitem.disabled && !subitem.hidden) { if (subitem.localName == 'menuitem') { menuitemCount++; } else if (subitem.localName == 'menu') { menuCount++; } } } if (!item.labelOriginal) { item.labelOriginal = item.label; } item.labelSuffix = ' (' + menuCount + '/' + menuitemCount + ')'; // item.setAttribute("id", "menu-menuitem-count"); // item.labelSuffix.setAttribute("color", "red"); // item.labelSuffix = className("menu-menuitem-count"); // item.labelSuffix.className = "menu-menuitem-count"; // menuitemCount.setAttribute("id", "menu-menuitem-count"); item.label = item.labelOriginal + item.labelSuffix; }, 100); } popup.addEventListener('popuphidden', function onPopuphidden(event) { if (event.target != this) return; popup.removeEventListener('popuphidden', onPopuphidden); for (let item of popup.children) { if (item.localName == 'menu') { if (item.labelOriginal) { item.label = item.labelOriginal; item.labelOriginal = undefined; } } } }); } } setTimeout(function() { setFunction(); },50); })();Ich suche nach einem Weg, nur die Anzeige der Ordner/Lesezeichenanzahl in einer anderen Farbe darzustellen, wie in dem zusammen gebastelten Screenshot.

Kann mir da jemand auf die Sprünge helfen?
-
Kann das uU. am verwendeten Theme liegen? (Arc Dark Theme)
Ja - deshalb sollte so etwas (also ein verwendetes Theme) gleich im ersten Post angegeben werden. Spart ggf. unnötige Sucherei...

-
Das heißt es ist normal dass der anfangs paarmal so "zuckt"
Aber so was von...

-
Da rührt sich nichts, jedenfalls nicht in die gewünschte Richtung.
Dann mußt du weiter experimentieren.
2002Andreas schrieb nicht umsonst:
Damit bist du dann eine ganze Weile beschäftigt.
-
-
Vorteile hast du dadurch auf jeden Fall nicht.
...aber sobald die ersten Nachteile auftauchen, merken wir das wieder ...

-
Man kann beides mit einer(!) aktuellen Installation und zwei getrennten Profilen.
Somit ist deine Begründung haltlos...
-
Ich nutze ein dunkles Systemtheme
also die vorhandene userContent.css und auch die userChrome.css sicherheitshalber auskommentiert und eine neue userContent.css angelegt.
...

-
Aber nur mit Brille...

-
Dann funktionieren meine Augen ja noch...

-
So sieht dein Code hier aus
Hast du die Rahmenstärke auch geändert?

Kommt mir jedenfalls so vor.
-
Dann bin ich mit meinem Latein auch am Ende...

-
Siehe Bild in #11

-
Also hier wird nix überschrieben...

Probiert bitte selber mit folgender CSS für about:config:
CSS
Alles anzeigen@-moz-document url("about:config") { /*** Hintergrund allgemein ***/ html, body { background-color: rgb(40,40,42) !important; color: white !important; } :root { --in-content-border-active-shadow: unset !important; --in-content-border-active: 1px solid red !important; } /*** Warnseite ***/ .container { border: 2px ridge lightgrey !important; border-radius: 20px !important; padding: 80px 27px 76px 80px !important; } .title { border: 2px ridge lightgrey !important; border-radius: 20px !important; background-position: 280px 20px !important; background-color: rgb(200,0,0) !important; min-width: 200px !important; max-width: 625px !important; padding: 25px 0 0 100px !important; margin-left: 0 !important; } #warningTitle { color: white !important; margin-left: 250px !important; } #warningText, #showWarningNextTime { padding-left: 20px !important; } #showWarningNextTime { border: 2px ridge lightgrey !important; border-radius: 5px !important; fill: rgb(0,200,0) !important; height: 24px !important; } input[type="checkbox"] { background-color: black !important; } input[type="checkbox"]:checked { background-image: url("file:///F:/FIREFOX-ICONS/Icons/checkmark.png") !important; } #warningButton { border: 2px ridge lightgrey !important; border-radius: 10px !important; background-color: red !important; color: white !important; outline: none! important; margin-left: 250px !important; } #warningButton:hover { background-color: green !important; } /*** Hauptseite ***/ /* Kopf */ #toolbar { background-color: rgb(40,40,42) !important; padding: 0 !important; } #search-container { background: transparent !important; max-width: 1300px !important; margin: 30px 0 0 300px !important; } #about-config-search { border: 2px ridge lightgrey !important; border-radius: 10px !important; background: black url("file:///F:/FIREFOX-ICONS/Icons/Lupe.png") no-repeat 1435px center !important; color: white !important; opacity: .99 !important; outline: none !important; max-width: 1367px !important; margin: 20px 50px 20px 100px !important; } #about-config-show-only-modified { border: 2px ridge lightgrey !important; border-radius: 5px !important; width: 24px !important; height: 24px !important; fill: green !important; margin: 0 9px 0 -2px !important; } .checkbox-container { margin: 0 0 0 2px !important; } .checkbox-container > span:nth-child(2) { color: rgb(0,200,0) !important; } #show-all { border: 2px ridge lightgrey !important; border-radius: 10px !important; background-color: green !important; padding: 0px 20px !important; } /* Tabelle */ #prefs { border: 2px ridge lightgrey !important; border-radius: 10px !important; max-width: 1705px !important; margin: 0 100px 50px !important; } #prefs > tr:hover { background-color: darkgreen !important; } #prefs > tr > td > button:nth-child(1) { border: 2px ridge lightgrey !important; border-radius: 5px !important; } .deleted > th:nth-child(1), .deleted > td:nth-child(2), .deleted > td:nth-child(3), .deleted > td:nth-child(4) { border-top: 2px ridge lightgrey !important; } .deleted > th:nth-child(1)::before, .deleted > td:nth-child(2)::before, .deleted > td:nth-child(3)::before, .deleted > td:nth-child(4)::before { display: none !important; } input[type="radio"] { border: 2px ridge lightgrey !important; background-color: black !important; fill: rgb(0,200,0) !important; } /* Symbole rechts */ #prefs > tr > td.cell-reset { padding-right: 30px !important; } .button-delete { fill: red !important; } .button-edit { background-color: transparent !important; fill: yellow !important; } .button-toggle { background-color: transparent !important; fill: green !important; } .button-reset { fill: yellow !important; } .button-add { background-color: transparent !important; fill: green !important; } html body.table-shown table#prefs tr.deleted.add.odd:hover { background-color: rgb(40,40,42) !important; } }Mit diesen Farbeinstellungen getestet...
Oder brauch ich doch langsam eine neue Brille?

-
-
Wo ist das Problem?
Den richtigen Selektor hast du doch?
Hier funktioniert das einwandfrei... -
Und diese Anpassung möchte ich beim erneuten Browserstart nicht wieder einstellen müssen.
Cookies nicht löschen - fertig...
