so wie ich mich erinnere, hatte ich das problem auch schon lange konnte keine lösung finden. ![]()
Beiträge von omar1979
-
-
Danke @oldman53 und Mira_Belle hab mich aber schon mit der Hilfestellung von FuchsFan bedient.

-
-
Hallo ihr..
In dem Script mit dem Firefox version, datum und zeit im menübar sind bei mir die Schrift und das Icon übereinander.
Habe die schrift mit dem datum und zeit verschoben können, aber die schrift mit firefox version ist immernoch auf dem icon (siehe Bild).
Kann mir jemand sagen wo ich das ändern kann?
Hier noch das Script:
JavaScript
Alles anzeigen(function() { function doDatClock() { var timestr = new Date().toLocaleDateString(locale, options); const blanks = ' -'; let i = timestr.lastIndexOf(','); timestr = timestr.substring(0, i)+ blanks + timestr.substring(i + 1) + ' Uhr'; if (count == 1) { var counter = new Date(1000 * sec).toISOString().substr(11, 8); // .replace(/^[0:]+/, '') // if you want to replace zeroes and colons timestr = timestr + ' (' + counter + ')'; sec++; } ClockLabel.setAttribute('value', timestr); } var count = 0; // if you don't want a counter set this to zero var agent = 1; // if you just want the clock set this to zero var language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR' var personalText = ' -'; // your personal text here var cssFontFamily = 'DejaVu Sans'; var cssColor = 'white'; // Font Color var bitnr = ` (${Services.appinfo.is64Bit ? 64 : 32}-bit)`; var css = 'padding-top: 5px; padding-left: 0;margin-right:2px;margin-left:4px; color: ' + cssColor + '; font-family: ' + cssFontFamily + '; font-weight:500; font-size:12px; text-shadow: none; width: 340px;'; var cssA = 'text-align: right; background: url("file:///C:/Users/Ramo/AppData/Roaming/Mozilla/Firefox/Profiles/g4mso52s.default-release/chrome/Icons/firefox.png")no-repeat !important; background-position: 5px 2px !important; min-height: 20px; max-height: 20px; padding-right: 0px; padding-bottom: 0px; padding-left: 5px !important; margin-right: 5px; margin-bottom: 0px; margin-left: 10px; width: 248px;'; var options = { weekday: 'long', year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' }; var sec = 0; var locale = language || window.navigator.languages[0]; var position = document.getElementById('helpMenu'); // Datumsangabe in Menüleiste // var position = document.getElementById('urlbar-container'); // Datumsangabe in Symbolleiste hinter Adressleiste var ClockLabel = document.createXULElement('label'); ClockLabel.setAttribute('id', 'statusbar-clock-display'); ClockLabel.setAttribute('class', 'statusbarpanel-text'); ClockLabel.setAttribute('style', css); position.parentNode.insertBefore(ClockLabel, position.nextSibling); if (agent == 1) { var AgentLabel = document.createXULElement('label'); AgentLabel.setAttribute('id', 'statusbar-agent-display'); AgentLabel.setAttribute('class', 'statusbarpanel-text'); AgentLabel.setAttribute('style', css + cssA); var FFstr = window.navigator.userAgent.split(' '); var FF = FFstr[FFstr.length - 1].replace('/', ' '); // var text = "Firefox Version: " + gAppInfo.version + personalText; // Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).QueryInterface(Ci.nsIXULRuntime); var text = " Firefox Version: " + AppConstants.MOZ_APP_VERSION_DISPLAY + bitnr + personalText; AgentLabel.setAttribute('value', text); position.parentNode.insertBefore(AgentLabel, position.nextSibling); } if (count == 1) { ClockLabel.addEventListener('dblclick', function() { sec = 0; }); } window.setInterval(doDatClock, 1000); })(); -
So. Ich stell mal die Code hier, falls wer es mal sucht.
Ich hab beide scripte in 1ne Datei/Script reinkopiert und jeweils oben geschrieben was es tut.
Hier das Script.
JavaScript
Alles anzeigen//Fügt hinter den Lesezeichen Ordner die Anzahl von Links und Unterordner hinzu, die in dem Ordner sind. (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 = ' (' + menuitemCount + ' / ' + menuCount + ')'; // 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); })(); //Fügt in den Lesezeichen Ordner ganz oben die Anzahl von Links und Unterordner hinzu. (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 (this.options?.extraClasses?.entry) { aPopup._endOptOpenAllInTabs.classList.add( this.options.extraClasses.entry ); } 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); } } setTimeout(function() { setFunction(); },50); })();und so sieht es aus.
-
BrokenHeart kannst du mir vielleicht sagen, was ich ändern muss, damit bei dem Script die Links zuerst und dann die Ordner angezeigt werden?
Beispiel: Firefox (5 / 2) <-das 5 sollte die Links sein und das 2 die Ordner.
Zur Zeit wird in dem Script zuerst die Ordner angezeigt.
Hab es selber rausgefunden. Dankeschön

-
-
-
Was genau ist denn anders?
Bei dem war es noch so, dass es auf allen ordnern stand wieviel unterordner und links es sich in dem ordner befinden. Ich muss mal mein altes thread suchen.

PS: hab den Link gefunden.
ThemaAnzahl Unterordner und Lesezeichen im Ordner anzeigen.
Ich will im Lesezeichen-Ordner, dass es jeweils anzeigt, wieviel Unterordner und Lesezeichen es hat.
Hier noch ein genaues Bild wie ich das meine:

Die erste Zahl ist jeweils für die Lesezeichen und die zweite für die Ordner. Ist das machbar? evtl. mit einem Script die jemand schon hat und es teilen kann?
Danke im Voraus.
omar197917. November 2021 um 22:28 -
Weil es neulich schon ein Update dafür gab

Dankeschön, werde es mal anschauen und testen.

Hmm... das funktioniert zwar, aber nicht wie das von aborix

-
Hallo @llen..
Ich benutze das unten gepostete script von aborix aber heute hab ich gemerkt, dass es nicht mehr funkt.
Es sollte die Anzahl ordner und links im ordner anzeigen. Kennt jemand den grund?
JavaScript
Alles anzeigen(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); })(); (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 = ' ' + menuitemCount + ' / ' + menuCount; 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; } } } }); } } let intId = setInterval(() => { if (window.PlacesViewBase) { clearInterval(intId); setFunction(); } }, 500); })();PS: hab grad gemerkt, dass es 2 scripte in einer datei sind.

-
Das Script das den Menüeintrag Grafik anzeigen erzeugt ersetzt den Eintrag Grafik in neuem Tab öffnen.
Danke für die Erklärung.

-
Ich hatte meinen Beitrag verändert.
Das hab ich natürlich übersehen. Danke

-
Dann muss du ja ein Skript dafür haben im Ordner chrome.
Das sind all die ich habe. Weiss nicht, ob eins von denen das tut.

-
Mir nicht bekannt.

hmm.. ich frag mich jetzt ob ich auch sowas habe oder nicht..
-
Rechtsklick auf ein Bild: Grafik anzeigen ergibt dann:
Das zeigt das Bild im aktuellem Tab an? Weil die Grafik in einem anderen Tab öffnen gibt es schon.

-
Hallo Ralfus bin zwar nicht sicher aber in den Einstellungen sollte sowas wie *Links im aktuellen Tab öffnen* hast du das evtl angekreuzt/häckchen vor dem gemacht?
-
Toi toi toi weiter so Mozilla.

-
Wolfram2 evtl hast du im htdocs von xampp eine .htaccess datei und dort drin eine code, die das umwandeln automatisch macht?
-
So wie ich weiss kann man xampp auch auf dem eigenen pc zu hause ausführen.
bevor ich meinen neuen pc gekauft habe, hatte ich auch xampp und habe auch auf localhost webseiten-tests gemacht. für solche tests finde ich xampp eine gute lösung.
