1. Nachrichten
  2. Forum
    1. Unerledigte Themen
    2. Forenregeln
  3. Spenden
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. camp-firefox.de
  2. omar1979

Beiträge von omar1979

  • Schrift im DatumZeitImMenubar.uc.js ineinander verschoben.

    • omar1979
    • 17. April 2023 um 21:13

    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
    (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);
    })();
    Alles anzeigen
  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 20:39

    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
    //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);
      
    })();
    Alles anzeigen

    und so sieht es aus.

  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 20:21

    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 :)

  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 18:52
    Zitat von BrokenHeart

    Hatten wir auch schon:

    Dankeschön werde es mal anschauen. :)

  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 16:44
    Zitat von 2002Andreas

    Achso, dann musst du dich bitte gedulden, damit bin ich überfragt.

    Danke trotzdem :)

  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 16:36
    Zitat von 2002Andreas

    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.

    Thema

    Anzahl 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.
    omar1979
    17. November 2021 um 22:28
  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 16:27
    Zitat von 2002Andreas

    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 :(

  • Lesezeichen Ordner Anzahl Ordner und Links anzeigen funktioniert nicht mehr.

    • omar1979
    • 17. April 2023 um 16:11

    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
    (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);
    
    })();
    Alles anzeigen

    PS: hab grad gemerkt, dass es 2 scripte in einer datei sind. :)

  • Grafik anzeigen.uc.js funktioniert nicht mehr

    • omar1979
    • 13. April 2023 um 22:17
    Zitat von Dharkness

    Das Script das den Menüeintrag Grafik anzeigen erzeugt ersetzt den Eintrag Grafik in neuem Tab öffnen.

    Danke für die Erklärung. :)

  • Grafik anzeigen.uc.js funktioniert nicht mehr

    • omar1979
    • 13. April 2023 um 22:13
    Zitat von 2002Andreas

    Ich hatte meinen Beitrag verändert.

    Das hab ich natürlich übersehen. Danke :)

  • Grafik anzeigen.uc.js funktioniert nicht mehr

    • omar1979
    • 13. April 2023 um 22:09
    Zitat von 2002Andreas

    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. :)

  • Grafik anzeigen.uc.js funktioniert nicht mehr

    • omar1979
    • 13. April 2023 um 22:05
    Zitat von 2002Andreas

    Mir nicht bekannt. :/

    hmm.. ich frag mich jetzt ob ich auch sowas habe oder nicht..

  • Grafik anzeigen.uc.js funktioniert nicht mehr

    • omar1979
    • 13. April 2023 um 21:37
    Zitat von 2002Andreas

    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. :)

  • In einem Tab öffnen

    • omar1979
    • 5. April 2023 um 21:46

    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?

  • Der Glückwunsch-Thread

    • omar1979
    • 31. März 2023 um 13:24

    Toi toi toi weiter so Mozilla. :)

  • http statt https

    • omar1979
    • 16. März 2023 um 14:33

    Wolfram2 evtl hast du im htdocs von xampp eine .htaccess datei und dort drin eine code, die das umwandeln automatisch macht?

  • http statt https

    • omar1979
    • 14. März 2023 um 21:57

    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. :)

  • Icon in Takskleiste feht / ist nur noch weiß

    • omar1979
    • 14. März 2023 um 17:43
    Zitat von Chris23tr

    den PC neu gestartet da ist das icon wieder da

    Ja das neustarten löst hie und wieder auch die probleme. :)

  • Icon in Takskleiste feht / ist nur noch weiß

    • omar1979
    • 14. März 2023 um 17:30

    Lösche mal das Icon von der Taskleiste und starte danach firefox neu und dann mal nachschauen ob es funkt hat.


    Ich habe mal bemerkt, wenn programme nicht richtig deinstalliert worden sind, dass sowas passiert.


    PS: ich meine das Icon löschen, wenn du es auf die taskleiste angeheftet hast.

  • Webseiten Lade-Fehler

    • omar1979
    • 10. Februar 2023 um 18:20
    Zitat von .DeJaVu

    Also das Video läuft im Browser, im gleichen Browser, der lindi ch nicht anzeigen kann, ist das richtig?

    Richtig.

    Zitat von .DeJaVu

    Sind denn alle Browser betroffen? Was sagt Edge in dem Momenten?

    Auch Edge ist von dem Problem betroffen, dort kann ich auch keine Webseiten öffnen.

    Es tut mir leid, kann nicht immer sofort antworten, da mein Vater krank ist.

Unterstütze uns!

Jährlich (2026)

12,3 %

12,3% (80,00 von 650 EUR)

Jetzt spenden
  1. Kontakt
  2. Datenschutz
  3. Impressum
Community-Software: WoltLab Suite™
Mastodon