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. Endor

Beiträge von Endor

  • Download Scripts funktionieren nicht richtig bzw. gar nicht.

    • Endor
    • 4. Dezember 2019 um 16:25

    Hier mal die übersetzte Version vom Script:

    JavaScript: Downloadstatusbarmodoki.uc.js
    // ==UserScript==
    // @name           ucjsDownloadsStatusModoki.uc.js
    // @namespace      http://space.geocities.yahoo.co.jp/gl/alice0775
    // @description    Downloads Status Modoki
    // @include        main
    // @compatibility  Firefox 71+
    // @author         Alice0775
    // @note           ucjsDownloadsStatusModoki.uc.js.css muss über die userChrome.css Datei geladen werden
    // @version        2019/10/20 12:30 workaround Bug 1497200: Apply Meta CSP to about:downloads, Bug 1513325 - Remove textbox binding
    // @version        2019/09/08 19:30 fix scrollbox
    // @version        2019/05/21 08:30 fix 69.0a1 Bug 1551320 - Replace all createElement calls in XUL documents with createXULElement
    // @version        2018/10/27 12:00 fix for 64+
    // @version        2018/06/12 21:00 fix for private window mode
    // @version        2018/06/07 12:00 fix file name for history
    // @version        2018/02/10 12:00 try catch error when DO_NOT_DELETE_HISTORY = true
    // @version        2017/12/10 12:00 fix error when DO_NOT_DELETE_HISTORY = true
    // @version        2017/12/10 12:00 remove workaround Bug 1279329. Disable btn while clear list is doing, close button styling for 57.
    // @version        2016/06/10 12:00 modify style independent of font-family
    // @version        2016/06/10 07:00 modify style of close button, fix typo
    // @version        2016/06/10 00:00 Workaround Bug 1279329. adjust some padding
    // @version        2015/05/08 00:00 remove padding due to Bug 1160734
    // @version        2014/03/31 00:00 fix for browser.download.manager.showWhenStarting
    // @version        2013/12/22 13:00 chromehidden
    // @version        2013/12/19 17:10 rename REMEMBERHISTOTY to DO_NOT_DELETE_HISTORY
    // @version        2013/12/16 23:28 fixed initialize numDls
    // @version        2013/12/16 23:24 open only download added
    // @version        2013/12/16 23:10 open only download started
    // @version        2013/12/16 21:20 modify css Windows7 Aero
    // @version        2013/12/16 21:00 modify css
    // @version        2013/12/16 19:30 add autocheck false
    // @version        2013/12/16 18:31 fix pref name
    // @version        2013/12/16 18:30
    // @note
    // ==/UserScript== 
    var ucjsDownloadsStatusModoki = {
      _summary: null,
      _list: null,
    
      get downloadsStatusModokiBar() {
        delete downloadsStatusModokiBar;
        return this.downloadsStatusModokiBar = document.getElementById("downloadsStatusModokiBar");
      },
    
      get toggleMenuitem() {
        delete toggleMenuitem;
        return this.toggleMenuitem = document.getElementById("toggle_downloadsStatusModokiBar");
      },
    
      init: function() {
        if (document.documentElement.getAttribute("chromehidden") !="" )
          return;
    
        XPCOMUtils.defineLazyModuleGetter(window, "Downloads",
                  "resource://gre/modules/Downloads.jsm");
    
        var style = ` 
          @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); 
          #ucjsDownloadsStatusModoki { 
            width: 100%; 
            max-height: 100px; 
            height: 39px; 
          } 
         `.replace(/\s+/g, " ");
        var sspi = document.createProcessingInstruction(
          'xml-stylesheet',
          'type="text/css" href="data:text/css,' + encodeURIComponent(style) + '"'
        );
        document.insertBefore(sspi, document.documentElement);
        sspi.getAttribute = function(name) {
          return document.documentElement.getAttribute(name);
        };
    
    
        var toolbar = document.createXULElement("vbox");
        toolbar.setAttribute("id", "downloadsStatusModokiBar");
        toolbar.setAttribute("collapsed", true);
    
        var bottombox = document.getElementById("browser-bottombox");
        bottombox.appendChild(toolbar);
        var browser = toolbar.appendChild(document.createXULElement("browser"));
        browser.setAttribute("disablehistory", true);
        browser.setAttribute("remote", false);
        browser.setAttribute("id", "ucjsDownloadsStatusModoki");
        browser.addEventListener("load", function(event){ucjsDownloadsStatusModoki.onload(event)}, true);
        browser.setAttribute("src", "chrome://browser/content/downloads/contentAreaDownloadsView.xul?StatusModoki");
        var menuitem = document.createXULElement("menuitem");
        menuitem.setAttribute("id", "toggle_downloadsStatusModokiBar");
        menuitem.setAttribute("type", "checkbox");
        menuitem.setAttribute("autocheck", false);
        menuitem.setAttribute("label", "Download Leiste");
        menuitem.setAttribute("checked", false);
        menuitem.setAttribute("accesskey", "D");
        menuitem.setAttribute("oncommand", "ucjsDownloadsStatusModoki.toggleDownloadsStatusModokiBar()");
        var ref = document.getElementById("menu_customizeToolbars");
        ref.parentNode.insertBefore(menuitem, ref.previousSibling);
    
        // Ensure that the DownloadSummary object will be created asynchronously.
        if (!this._summary) {
          Downloads.getSummary(Downloads.ALL).then(summary => {
            this._summary = summary;
            return this._summary.addView(this);
          }).then(null, Cu.reportError);
        }
        if (!this._list) {
          Downloads.getList(Downloads.ALL).then(list => {
            this._list = list;
            return this._list.addView(this);
          }).then(null, Cu.reportError);
        }
    
        window.addEventListener("unload", this, false);
      },
    
      uninit: function() {
        window.removeEventListener("unload", this, false);
        if (this._summary) {
          this._summary.removeView(this);
        }
        if (this._list) {
          this._list.removeView(this);
        }
      },
    
      handleEvent: function(event) {
        switch (event.type) {
          case "unload":
            this.uninit();
            break;
        }
      },
    
      toggleDownloadsStatusModokiBar: function() {
        var collapsed = this.downloadsStatusModokiBar.collapsed;
        this.downloadsStatusModokiBar.collapsed = !collapsed;
        this.toggleMenuitem.setAttribute("checked", collapsed);
      },
    
      openDownloadsStatusModoki: function() {
        this.downloadsStatusModokiBar.collapsed = false;
        this.toggleMenuitem.setAttribute("checked", true);
      },
    
      hideDownloadsStatusModoki: function() {
        this.downloadsStatusModokiBar.collapsed = true;
        this.toggleMenuitem.setAttribute("checked", false);
      },
    
      onDownloadAdded: function (aDownload) {
        Cu.import("resource://gre/modules/Services.jsm");
        var showWhenStarting = true;
        try {
          showWhenStarting = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.showWhenStarting");
        } catch(e) {}
        this.numDls = 0;
        if (showWhenStarting) {
          if (this._list) {
            this._list.getAll().then(downloads => {
              for (let download of downloads) {
                if (!download.stopped)
                  this.numDls++;
              }
              if (this.numDls > 0)
                this.openDownloadsStatusModoki(false);
            }).then(null, Cu.reportError);
          }
        }
      },
    
      onSummaryChanged: function () {
        Cu.import("resource://gre/modules/Services.jsm");
        if (!this._summary)
          return;
        if (this._summary.allHaveStopped || this._summary.progressTotalBytes == 0) {
          var closeWhenDone = false;
          try {
            closeWhenDone = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.closeWhenDone");
          } catch(e) {}
          if (closeWhenDone) {
            this.hideDownloadsStatusModoki();
          }
        }
      },
    
    
    
      // chrome://browser/content/downloads/contentAreaDownloadsView.xul
      onload: function(event) {
        var doc = event.originalTarget;
        var win = doc.defaultView;
        doc.documentElement.setAttribute("ucjsDownloadsStatusModoki", "true");
    
        var button = doc.createXULElement("button");
        button.setAttribute("label", "Löschen");
        button.setAttribute("id", "ucjs_clearListButton");
        button.setAttribute("accesskey", "L");
        var ref = doc.getElementById("downloadCommands");
        var vbox = doc.createXULElement("vbox");
        var box = vbox.appendChild(doc.createXULElement("hbox"));
        box.appendChild(button);
        box.appendChild(doc.createXULElement("spacer")).setAttribute("flex", 1);
        var textbox = doc.createElementNS("http://www.w3.org/1999/xhtml", "input");
        textbox.setAttribute("id", "downloadFilter");
        textbox.setAttribute("clickSelectsAll", true);
        textbox.setAttribute("type", "search");
        textbox.setAttribute("placeholder", "Suchen...");
        box.appendChild(textbox);
        var closebtn = doc.createXULElement("toolbarbutton");
        closebtn.setAttribute("id", "ucjsDownloadsStatusModoki-closebutton");
        closebtn.setAttribute("class", "close-icon");
        closebtn.setAttribute("tooltiptext", "Download-Leiste schließen");
        box.appendChild(closebtn);
        ref.parentNode.insertBefore(vbox, ref);
        doc.getElementById("ucjs_clearListButton").addEventListener("command", function(event) {
            win.ucjsDownloadsStatusModoki_clearDownloads();
          });
        doc.getElementById("downloadFilter")
                .addEventListener("input", function(event) {
            win.ucjsDownloadsStatusModoki_doSearch(event.target.value);
          });
        doc.getElementById("ucjsDownloadsStatusModoki-closebutton")
                .addEventListener("command", function(event) {
            win.ucjsDownloadsStatusModoki_doClose();
          });
    
    /*
        // xxx Bug 1279329 "Copy Download Link" of context menu in Library is grayed out
        var listBox = doc.getElementById("downloadsRichListBox");
        var placesView = listBox._placesView;
        if (placesView) {
          var place = placesView.place;
          placesView.place= null;
          placesView.place = place;
        }
    */
        win.ucjsDownloadsStatusModoki_clearDownloads = function ucjs_clearDownloads() {
          var DO_NOT_DELETE_HISTORY = true; /* custmizable true or false */
          var richListBox = doc.getElementById("downloadsRichListBox");
    
          Cu.import("resource://gre/modules/Services.jsm");
          var places = [];
          function addPlace(aURI, aTitle, aVisitDate) {
            places.push({
              uri: aURI,
              title: aTitle,
              visits: [{
                visitDate: (aVisitDate || Date.now()) * 1000,
                transitionType: Ci.nsINavHistoryService.TRANSITION_LINK
              }]
            });
          }
          function moveDownloads2History() {
            if (DO_NOT_DELETE_HISTORY &&
                !PrivateBrowsingUtils.isWindowPrivate(window)) {
              try {
                for (let element of richListBox.childNodes) {
                  let download = element._shell.download;
                  let aURI = makeURI(download.source.url);
                  // let aTitle = document.getAnonymousElementByAttribute(element, "class", "downloadTarget").value
                  let aTitle = download.target.path;
                  aTitle = aTitle.match( /[^\\]+$/i )[0];
                  aTitle = aTitle.match( /[^/]+$/i )[0];
    
                  let aVisitDate = download.endTime || download.startTime;
                  addPlace(aURI, aTitle, aVisitDate)
                }
              } catch(ex) {}
            }
    
            // Clear List
            richListBox._placesView.doCommand('downloadsCmd_clearDownloads');
    
            if (DO_NOT_DELETE_HISTORY &&
                !PrivateBrowsingUtils.isWindowPrivate(window)) {
              try {
                if (places.length > 0) {
                  var asyncHistory = Components.classes["@mozilla.org/browser/history;1"]
                           .getService(Components.interfaces.mozIAsyncHistory);
                    asyncHistory.updatePlaces(places);
                }
              } catch(ex) {}
            }
          }
          var btn = doc.getElementById("ucjs_clearListButton");
          btn.setAttribute("disabled", true);
          moveDownloads2History();
          btn.removeAttribute("disabled");
    
          // close toolbar
          var closeWhenDone = false;
          try {
            closeWhenDone = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.closeWhenDone");
          } catch(e) {}
          if (closeWhenDone) {
            top.ucjsDownloadsStatusModoki.hideDownloadsStatusModoki();
          }
        };
    
        win.ucjsDownloadsStatusModoki_doSearch = function ucjs_doSearch(filterString) {
          var richListBox = doc.getElementById("downloadsRichListBox");
          richListBox._placesView.searchTerm = filterString;
        };
    
        win.ucjsDownloadsStatusModoki_doClose = function ucjs_doClose() {
          top.ucjsDownloadsStatusModoki.hideDownloadsStatusModoki();
        };
    
      }
    
    }
    ucjsDownloadsStatusModoki.init();
    Alles anzeigen

    Muss ich hier aber erst noch testen.
    Mfg.Endor

  • Download Scripts funktionieren nicht richtig bzw. gar nicht.

    • Endor
    • 4. Dezember 2019 um 16:18

    Teste mal die Version für Firefox 71:

    der Autor hat mittlerweile ja viele Scripte für verschiedene Firefoxversionen im angebot.

    Jeweils im entsprechenden Ordner:

    https://github.com/alice0775/user…tusModoki.uc.js

    Mfg.
    Endor

  • Mehrzeilige Tabreihen (Nightly)

    • Endor
    • 4. Dezember 2019 um 16:03

    Hallo zusammen.

    Der Autor hat seine Scripte gestern wieder aktualisiert.

    10 Scripte für Firefox 71

    10 Scripte für Firefox 72 wahrscheinlich gehen die auch im 73er Nightly

    Da mir die Zeit fehlt zum Übersetzen habe ich mal das ganze Archiv hochgeladen

    https://github.com/Endor8/userChr…wtabs/M%C3%BCll

    Wäre für jede Hilfe bei der Übersetzung dankbar.

    Mfg.
    Endor

  • Nummerierung der Erweiterungen

    • Endor
    • 24. November 2019 um 19:37

    Hallo 2002Andreas .

    Auch von mir vielen Dank.

    :klasse:

    Habe ich sofort eingebaut.

    Mfg.
    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 17:47

    So habe meinen CSS Code Submenu-WebEntwickler.css aktualisiert:

    Submenu-WebEntwickler.css

    Jetzt sollte er überall gleich aussehen.

    Auch die neue Option die erst in Nightly dabei ist wird angesprochen.

    BrokenHeart

    Ich habe mir mal das Symbol für JavaScript von Dir geklaut. :wink:

    gefällt mir viel besser als meines.

    Vielen Dank.

    Sören Hentzschel

    auch Dir vielen Dank für den Hinweis.

    Mfg.

    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 17:00

    Ich versuche es gerade so:

    #PanelUI-developerItems > toolbarbutton[label="Werkzeuge ein-/ausblenden"]

    usw.

    Funktioniert soweit.

    Baue meinen CSS Code mal um.

    Melde mich.

    Mfg.
    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 16:51

    Das wäre mir sogar am liebsten.

    Bloß wie mache ich das mit dem Inspektor?

    Der gibt ja keine eindeutige Bezeichnung her.

    Nur sowas:

    #PanelUI-developerItems > toolbarbutton:nth-child(10)

    Mfg.

    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 16:26

    Das mit der Zuordnung ist etwas schwieriger, denn nicht jeder User hat

    die gleiche Anzahl der Einträge. Denn das hängt davon ab was man in den Einstellungen

    der Entwicklerwerkzeuge angehakt hat.

    Wie man sieht habe ich hier bei Laufzeitanalyse keinen Haken, daher

    passt der CSS Code wieder nicht. Danke für den Hinweis.

    Das werde ich noch ändern.

    Mfg.

    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 14:42

    Alles in Hamburger-Panel.css

    Habe das nicht extra in eine eigene Datei gepackt.

    Achja. die Datei

    Submenu-WebEntwickler.css

    habe ich auch aktualisiert.

    Da war einiges durcheinander.

    Mfg.
    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 22. November 2019 um 14:18

    So habe es geschafft, habe heute die Codes aktualisiert:

    Siehe hier: https://github.com/Endor8/CSS/tre…Hamburger-Panel

    So sieht es bei Konto jetzt aus:


    Mfg.
    Endor

  • Lesezeichenordner ohne klicken öffnen

    • Endor
    • 20. November 2019 um 16:20

    Wie wäre es mit diesem Script:

    Code
    // ==UserScript==
    // @name AutoPopup.uc.js
    // @description Auto popup menulist/menupopup
    // @compatibility Firefox 69
    // @author GOLF-AT, modified by gsf & aborix
    // @version 2019.08.09
    // ==UserScript==
    
    
    (function() {
    
    
    const showDelay = 200; // delay of showing popups
    const hideDelay = 500; // delay of hiding popups
    const AlwaysPop = false; // show popups also when window is not focused
    
    
    var overElt = null;
    var PopElt = null;
    var PopTimer = null;
    var HideTimer = null;
    
    
    // elements are CSS selector strings
    var BlackIDs = [];
    
    
    // whitelist, and trigger action
    var whiteIDs = [
    {
    id: 'omnibar-defaultEngine',
    popMemu: 'omnibar-engine-menu',
    run: function(overElem) {
    document.getElementById('omnibar-in-urlbar').click(0);
    }
    },
    {
    id: 'ucjs_zoom_statuslabel',
    popMemu: 'ucjs_zoom-context',
    run: null
    },
    {
    id: 'UserScriptLoader-icon',
    popMemu: 'UserScriptLoader-popup',
    run: null
    },
    {
    id: 'readLater',
    popMemu: 'readLater-popup',
    run: null
    //function(overElem) {PopElt.popup();}
    },
    {
    id: 'foxyproxy-toolbar-icon',
    popMemu: 'foxyproxy-toolbarbutton-popup',
    run: null
    }
    ];
    var whitesInx = -1;
    
    
    const popupPos = ['after_start', 'end_before', 'before_start', 'start_before'];
    const searchBar = window.BrowserSearch ? BrowserSearch.searchBar : null;
    
    
    function IsButton(elt) {
    return elt && (elt.localName == 'toolbarbutton' || elt.localName == 'button');
    }
    
    
    function IsWidgetBtn(elt) {
    return IsButton(elt) &&
    ((elt.hasAttribute('widget-id') && elt.getAttribute('widget-type') == 'view')
    || elt.id == 'fxa-toolbar-menu-button' || elt.id == 'library-button'
    || elt.id == 'alltabs-button');
    }
    
    
    function IsSearchBtn(elt) {
    return (elt && elt.className == 'searchbar-search-button') || whitesInx == 0;
    }
    
    
    function IsPanelMenuBtn(elt) {
    return elt && elt.id == 'PanelUI-menu-button';
    }
    
    
    function IsDownloadBtn(elt) {
    return elt && elt.id == 'downloads-button';
    }
    
    
    function IsMenuBtn(elt) {
    return IsPanelMenuBtn(elt) || IsDownloadBtn(elt) || IsWidgetBtn(elt)
    || (IsButton(elt) && getPopupMenu(elt));
    }
    
    
    function IsOverflowBtn(elt) {
    return elt && elt.id == 'nav-bar-overflow-button';
    }
    
    
    function IsUrlbarDropmarker(elt) {
    return elt && elt.classList && elt.classList.contains('urlbar-history-dropmarker');
    }
    
    
    function IsCustomizationBtn(elt) {
    return IsButton(elt) && elt.className == 'customizationmode-button';
    }
    
    
    function IsAutoComplete(elt) {
    try {
    return elt.getAttribute('type').substr(0, 12) == 'autocomplete';
    } catch(e) { }
    }
    
    
    function isBlackNode(elt) {
    return BlackIDs.some(function(css) {
    try {
    var nodes = document.querySelectorAll(css);
    } catch(e) {
    return false;
    }
    for (var node of nodes) {
    if (node == elt)
    return true;
    }
    return false;
    })
    }
    
    
    function getPopupNode(node) {
    if (whitesInx > -1 && PopElt)
    return PopElt;
    
    
    if (IsSearchBtn(node) || IsOverflowBtn(node) || node.id == 'sidebar-switcher-target')
    return node;
    
    
    var elt, isPop, s;
    
    
    for (; node != null; node = node.parentNode) {
    if (node == PopElt)
    return node;
    
    
    isPop = false; // node isn't popup node
    s = node.localName;
    if (s == 'menupopup' || s == 'popup' || s == 'menulist'
    || IsAutoComplete(node) || IsMenuBtn(node) || IsUrlbarDropmarker(node)) {
    isPop = true;
    } else if (s == 'dropmarker' && node.getAttribute('type') == 'menu'
    && node.parentNode.firstChild.localName == 'menupopup') {
    isPop = true;
    } else if (s == 'menu') {
    isPop = (node.parentNode.localName == 'menubar');
    } else if (IsButton(node)) {
    for (elt = node; (elt = elt.nextSibling) != null;) {
    if (elt.localName == 'dropmarker' && elt.width > 0 && elt.height > 0)
    break;
    }
    if (elt)
    break;
    }
    if (isPop)
    break;
    }
    if (PopElt && node) {
    // whether node is child of PopElt
    for (elt = node.parentNode; elt != null; elt = elt.parentNode) {
    if (elt == PopElt)
    return PopElt;
    }
    }
    return isPop ? node : null;
    }
    
    
    function getPopupMenu(elt) {
    if (whitesInx > -1 && PopElt)
    return PopElt;
    
    
    var nodes = elt ? elt.ownerDocument.getAnonymousNodes(elt) || elt.childNodes : null;
    if (nodes) {
    for (let node of nodes) {
    if (node.localName == 'menupopup' || node.localName == 'panel')
    return node;
    }
    }
    
    
    var s = elt.getAttribute('popup');
    return s ? document.getElementById(s) : null;
    }
    
    
    function getPopupPos(elt) {
    if (elt.id == 'bookmarks-menu-button')
    return null;
    
    
    var x, y, pos, i;
    for (pos = 0, x = elt.screenX, y = elt.screenY;
    elt != null; elt = elt.parentNode)
    {
    if (elt.localName == 'window' || !elt.parentNode)
    break;
    else if (elt.localName != 'toolbar' && elt.localName != 'hbox'
    && elt.localName != 'vbox');
    else if (elt.height >= 3 * elt.width) {
    if (elt.height >= 45) {
    pos = 9;
    break;
    }
    } else if (elt.width >= 3 * elt.height) {
    if (elt.width >= 45) {
    pos = 8;
    break;
    }
    }
    }
    try {
    i = (pos & 1) ? // is pos odd?
    (x <= elt.width / 2 + elt.screenX ? 1 : 3) :
    (y <= elt.height / 2 + elt.screenY ? 0 : 2);
    } catch(e) {
    i = 0;
    }
    return popupPos[i];
    }
    
    
    function AutoPopup() {
    PopTimer = null;
    if (!overElt)
    return;
    
    
    if (whitesInx > -1 && PopElt && whiteIDs[whitesInx].run) {
    whiteIDs[whitesInx].run(overElt);
    return;
    }
    if (!PopElt)
    PopElt = overElt;
    if (overElt.localName == 'dropmarker') {
    PopElt.showPopup();
    } else if (overElt.localName == 'menulist') {
    overElt.open = true;
    } else if (IsPanelMenuBtn(overElt)) {
    PopElt = document.getElementById('appMenu-popup');
    PanelUI.show();
    } else if (IsWidgetBtn(overElt)) {
    PopElt = document.getElementById('customizationui-widget-panel');
    if (overElt.hasAttribute('onmousedown'))
    overElt.dispatchEvent(new MouseEvent('mousedown'));
    else
    overElt.dispatchEvent(new UIEvent('command'));
    } else if (IsDownloadBtn(overElt)) {
    PopElt = document.getElementById('downloadsPanel');
    DownloadsPanel.showPanel();
    } else if (IsSearchBtn(overElt)) {
    searchBar.openSuggestionsPanel();
    } else if (IsOverflowBtn(overElt)) {
    PopElt = document.getElementById('widget-overflow');
    if (!overElt.open)
    overElt.click();
    } else if (overElt.id == 'sidebar-switcher-target') {
    PopElt = document.getElementById('sidebarMenu-popup');
    if (!overElt.classList.contains('active'))
    SidebarUI.toggleSwitcherPanel();
    } else if (IsUrlbarDropmarker(overElt)) {
    PopElt = gURLBar.panel;
    if (!gURLBar.textbox.hasAttribute('open'))
    overElt.click();
    } else {
    PopElt = getPopupMenu(overElt);
    if (IsCustomizationBtn(overElt))
    overElt.open = true;
    else {
    try {
    let Pos = getPopupPos(overElt);
    PopElt.removeAttribute('hidden');
    PopElt.openPopup(overElt, Pos, 0, 0, false, false, null);
    } catch(e) {
    PopElt = null;
    }
    }
    }
    }
    
    
    function HidePopup() {
    try {
    if (overElt.localName == 'dropmarker') {
    try {
    PopElt.parentNode.closePopup();
    } catch(e) {
    try {
    PopElt.hidePopup();
    } catch(e) { }
    }
    } else if (overElt.localName == 'menulist')
    PopElt.open = false;
    else if (PopElt && PopElt.hidePopup)
    PopElt.hidePopup();
    else if (PopElt.popupBoxObject)
    PopElt.popupBoxObject.hidePopup();
    else if (IsSearchBtn(overElt))
    searchBar.textbox.closePopup();
    else if (IsPanelMenuBtn(overElt))
    PanelUI.hide();
    } catch(e) { }
    
    
    HideTimer = null;
    overElt = PopElt = null;
    }
    
    
    function MouseOver(e) {
    if (!AlwaysPop && !document.hasFocus())
    return;
    var popNode, n = e.originalTarget;
    
    
    whitesInx = -1;
    if (n.hasAttribute('id') && whiteIDs.some(function(k,i,me) {
    if (k.id == n.id) {
    overElt = n;
    whitesInx = i;
    PopElt = document.getElementById(k.popMemu);
    PopTimer = setTimeout(AutoPopup, showDelay);
    return true;
    }
    }))
    return;
    
    
    popNode = getPopupNode(e.originalTarget);
    if (!popNode || (popNode && popNode.disabled) || isBlackNode(popNode)) {
    MouseOut();
    return;
    }
    if (HideTimer) {
    window.clearTimeout(HideTimer);
    HideTimer = null;
    }
    try {
    if (IsAutoComplete(popNode)) {
    return;
    };
    for (var elt = popNode; elt != null; elt = elt.parentNode) {
    if (elt.localName == 'menupopup' || elt.localName == 'popup')
    return;
    }
    } catch(e) { }
    if (PopElt && popNode == PopElt && PopElt != overElt)
    return;
    if (overElt && popNode != overElt)
    HidePopup();
    overElt = popNode;
    PopElt = null;
    PopTimer = setTimeout(AutoPopup, showDelay);
    }
    
    
    function MouseOut() {
    if (PopTimer) {
    window.clearTimeout(PopTimer);
    PopTimer = null;
    }
    if (!HideTimer && PopElt)
    HideTimer = window.setTimeout(HidePopup, hideDelay);
    }
    
    
    window.addEventListener('mouseover', MouseOver, false);
    
    
    })();
    Alles anzeigen

    damit popt aber auch einiges anderes beim drüber fahren mit der Maus auf.

    Mfg.
    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 20. November 2019 um 09:02

    Hallo milupo.

    Danke, aber das wäre nicht ganz richtig, denn auch 2002Andreas hat mir dabei sehr geholfen, aber auch andere. Daher gebührt nicht nur mir der Dank.

    Mfg.

    Endor

  • Script Addons-Update-Check Button arbeitet im Nightly nicht mehr

    • Endor
    • 19. November 2019 um 22:18

    auch von mir vielen Dank!

    Mfg.

    Endor

  • Firefox 71.0 b10 - Tabs haben sich geändert?

    • Endor
    • 19. November 2019 um 22:09

    Hust, Reusper....

    Das Original ist von mir.

    Siehe Github: https://github.com/Endor8/CSS/tre…Hamburger-Panel

    Habe mittlerweile hier die beiden fehlenden eingebaut, Untermenü auch,

    aber ein Untermenü fehlt noch, klick ganz oben bei Bei Firefox anmelden.

    Das muss ich erst noch machen. Wenn alles passt werde ich den Code bei Github dann aktualisieren.

    Das muss ich noch machen:

  • Mit der heutigen Nightly funktionieren viele Codes und Scripts nicht mehr

    • Endor
    • 14. November 2019 um 19:40

    BackToTop.uc.js

    JavaScript: BackToTop.uc.js
    //  BackToTop.uc.js
      
    (function() {
    
        if (location != 'chrome://browser/content/browser.xhtml')
            return;
        
        try {
            CustomizableUI.createWidget({
                id: 'addBackToTop-panel',
                type: 'custom',
                defaultArea: CustomizableUI.AREA_NAVBAR,
                onBuild: function(aDocument) {
                    var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
                    var props = {
                        id: 'addBackToTop-panel',
                        class: 'toolbarbutton-1 chromeclass-toolbar-additional',
                        label: 'Seite nach oben',
                        tooltiptext: 'Seite nach oben',
                        style: 'list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAACXBIWXMAAAsSAAALEgHS3X78AAACsklEQVQ4jX2TT2gcdRTHP%2B%2F3m%2Bnszs7umk2TbjbENFpXS2K02lZoKqUKFlsoFAmlZzUHETyI54J4KJWC9KwepAdzkIAXEU968qSiBS2RttRk2RD7Z01ndmZnfr%2Bfhw1ijfrgwYP3vp8Hj%2B8T%2Fi907QK1fSMMum%2FhV1LSHqgQynsBA3e%2FRf2HVKGqH9aPn39ndunKkky9%2FBV5HuHMzh3%2FIi4RjC%2BHx949d%2BzsG%2BrFhT2EEwcevn5j86Trfv8Znp%2FgjwIW0rUdgN2UJ1eCFy6dfOrUqzK1RxMAz87VeWjmcPOXG%2F1Fu%2FHjFwT124jsAMxQa3%2Bun39%2FoXXkLKNV0A60Ai0w3w5pPPLcyK83%2B4uDjdVv0NIh7fwFmKcxv6IOX5oP9p%2BmVAYP8PUwcZAPoD1dYrx9MFq9ZRazznc%2Fka2takS9xPjCp%2FLkB4%2F6zeMoH6waCj0Fsn1mY6GfQWsioDV7qLS%2B6Z2JO1dvaWrty7TfOyilQ4hJEHG4XR5OC1pABPICMgNpDrfvFQySBKlO%2B92tyRMeqvoJzo677kelwmSPyxOv%2BVIJiZXDGKE%2FgOkGNCsQ7YLORsaXH6%2FEiFyz3si6hzPLZN1l7nwdktvVIl5q5b8XkDj8psfsXuHABJQ9CALIe5BtJT%2FYPD1KXePhBnD9MvxxtWD3olaxpTnmmJ0TjszBVAOMgcJAWIYosChV09Z6IOCx9TM4OzRQKpw6qnnljM9IBZyDLAfHsI4qEHoW0ly4XwAp3rZ4GLnhmbbm6cdgc3PIDf1hyzmoRlDVDvpmeNU8xXvA%2F05ULYDJGlT%2B8SXOQb0C1yKBtFD0c%2FA1HlS3RwYJRRqv%2F5aMra9VuJ8ZnHsQkJQVazdjbGYMxgEWQaLtkRSYeb069vbFxmgrcjazfwcAKKVUrxfH93p33kTcFRD%2BBJjxDD9ykwv%2FAAAAAElFTkSuQmCC)',
                        oncommand: 'var tabMM = event.target.ownerGlobal.gBrowser.selectedBrowser.messageManager; \
                            tabMM.loadFrameScript("data:, content.scrollTo(0,0)", false);'
                    };
                    for (var p in props)
                        toolbaritem.setAttribute(p, props[p]);
                    return toolbaritem;
                }
            });
        } catch(e) { };
          
        var item = document.createXULElement('menuitem');
       item.id = 'addBackToTop-context';
       item.setAttribute('label', 'Seite nach oben');
       item.setAttribute('accesskey', 'O');
       item.setAttribute('oncommand',
          'var tabMM = gBrowser.selectedBrowser.messageManager;' +
          'tabMM.loadFrameScript("data:, content.scrollTo(0,0)", false);'
       );
       document.getElementById('contentAreaContextMenu').appendChild(item);
       
    })();
    Alles anzeigen

    Mfg.
    Endor

  • Mit der heutigen Nightly funktionieren viele Codes und Scripts nicht mehr

    • Endor
    • 14. November 2019 um 19:11

    zum CSS Code:

    In Zeile 105 fehlt der abschließende / nach dem Stern.

    In Zeile 62 ist eine } zuviel dafür hat wie milupo schon sagte

    am Ende wieder eine } gefehlt.

    Teste mal ob das jetzt funktioniert habe hier beides geändert:

    CSS
    /* Sidebar via Hover hervorrufen */
    
    
    @-moz-document url("chrome://browser/content/places/bookmarksSidebar.xul"),
    
    
    url("chrome://browser/content/browser.xhtml") {
    
    
    #menu_bookmarksSidebar {
    display: -moz-box !important;
    }
    
    
    #bookmarks-view-children {
    margin-top: -100px !important;
    margin-left: -15px !important;
    }
    
    
    sidebarheader {
    display: none !important;
    }
    
    
    .sidebar-placesTreechildren::-moz-tree-separator {
    margin: 0px 500px !important;
    }
    
    
    label[persist="value"][flex="1"][crop="end"][control="sidebar"][value="Lesezeichen"] {
    display: none !important;
    }
    
    
    #sidebar-box {
    display: block !important;
    position: fixed !important;
    top: 112px;
    bottom: 27px !important;
    width: 0px !important;
    overflow-x: hidden !important;
    -moz-appearance: none !important;
    border: 1px solid transparent !important;
    border-left: 0 !important;
    opacity: 0 !important;
    transition: width .2s ease-out .2s, opacity .2s ease-out .2s !important;
    }
    
    
    #sidebar-box:hover {
    width: 255px !important;
    opacity: 1 !important;
    transition: width .2s ease-out .2s, opacity .2s ease-out .2s !important;
    }
    
    
    #sidebar-splitter {
    display: none !important;
    }
    
    
    #sidebar-header {
    width:100%;
    border: 0 !important;
    }
    
    
    #sidebar {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    }
    
    
    /* Lesezeichensidebar Icon-Abstand zur linken Seite */
    
    
    .sidebar-placesTreechildren[view="bookmarks-view"] {
    margin-left: -10px !important;
    }
    
    
    /* Lesezeichensidebar Icon-Abstand */
    
    
    #bookmarks-view-children:-moz-tree-image {
    margin-right: 5px !important;
    }
    
    
    /* Suchsymbol in der Sidebar ausblenden */
    
    
    .textbox-search-sign{
    display:none !important;
    }
    textbox input.textbox-input::-moz-placeholder,
    #search-container input.textbox-input::-moz-placeholder,
    #urlbar input.textbox-input::-moz-placeholder {
    color: transparent !important;
    }
    
    
    /* Suchleiste Schrift-Größe einstellen */
    
    
    .sidebar-placesTreechildren,sidebarheader,#sidebar-search-label,#search-box {
    font-size: 16px !important;
    font-family: Comic Sans MS, sans-serif !important;
    }
    
    
    /* Sidebar Hintergrundfarbe */
    
    
    #sidebar {
    background: #faebd7 !important;
    opacity: 1 !important;
    }
    
    
    /* Lesezeichen-Sidebar Suchfeld leeren */
    
    
    #search-box input::placeholder {
    color: transparent !important
    }
    /* Lesezeichen Sidebar öffnende Dreiecke entfernen */
    
    
    #bookmarksPanel treechildren::-moz-tree-twisty(closed),
    #bookmarksPanel treechildren::-moz-tree-twisty(open){
    height:0!important;
    width:0!important;
    display:none!important;
    }
    
    
    /* Lesezeichen verwalten */
    
    
    treechildren::-moz-tree-image(container) {
    list-style-image: url('data:image/gif;base64,R0lGODlhEAAQAOZMAP/////MAF06AJhlAJNgAP//AP/lAP/UAJViAP/JANShAJRhAP/OAJRgAOy5AMaSAP/nAMyZAP/IAP/NAOazAP/RAMmVALaAAH5TAJNfAM2aAP/dT//XOv/KAOPOkMeRAP/nhOSxAOu4AP3KAOrTkv/nrv//1c6bAKdyAP/TAP/bPdWsMr6LA7iCALqGALiEAJNeAMCMAP/gcv/eYdGdAP/TEP/mgv/2y//gg/3JAP/ila97AP/aKsWPAJFbAJZgALeBAMiVAPC9AP/rOum2AHlQAP/4zP//z//jPpNdAP/LANixNP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAEwALAAAAAAQABAAAAefgEyCg4SFhoeFDQ0LjIiCCyU5IwEBBAiXCAOEBDohFBREIg6jQgibODQKqgonDz0fPkkwDQMEMhYRERpBMUsAv8C1Mw8uLUAXKwA2EgkJDJoEGy8swAAgCZQMz0wEKigkN8wJHZQBFZrcPDsAHErllBMT6AQ1HkYVKQf6++hMGUgAhhgYSBAChH4/TBwpwLAhw35MMAiYSLFiEUcYmQQCADs=')
    !important;
    }
    
    
    /* Zeilenhöhe reduzieren */
    
    
    .sidebar-placesTree treechildren::-moz-tree-row,
    .placesTree treechildren::-moz-tree-row {
    min-height: 20px !important;
    }
    }
    Alles anzeigen

    Mfg.
    Endor

  • Mit der heutigen Nightly funktionieren viele Codes und Scripts nicht mehr

    • Endor
    • 14. November 2019 um 18:57

    Hallo Boersenfeger.

    Bitte diese Version vom Script nochmals testen:

    https://github.com/Endor8/userChr…CSSLoader.uc.js

    Sollte jetzt verschiebbar sein.

    Mfg.
    Endor

  • 2019-Update: Großer camp-firefox.de Relaunch

    • Endor
    • 14. November 2019 um 15:34

    Hallo Sören.

    Vielen Dank!

    :klasse:

    Mfg.
    Endor

  • Mit der heutigen Nightly funktionieren viele Codes und Scripts nicht mehr

    • Endor
    • 13. November 2019 um 16:55

    Ja ich weiß, ich hätte das Script als Anlage senden sollen, war aber in Eile, da ich dringend weg musste.

    Mfg.

    Endor

  • Mit der heutigen Nightly funktionieren viele Codes und Scripts nicht mehr

    • Endor
    • 13. November 2019 um 15:38

    Hallo milupo.

    Ja ich habe ihn meine Version per E-Mail nur als Text in der E-Mail

    gesendet, daher kommen wohl die ganzen Umbrüche.

    Daher habe ich ja oben geschrieben er soll obige Version nochmals testen.

    Warten wir mal ab was er sagt.

    Mfg.
    Endor

Unterstütze uns!

Jährlich (2025)

105,8 %

105,8% (687,41 von 650 EUR)

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