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

Beiträge von edvoldi

  • UpdateBookmark2.uc.js

    • edvoldi
    • 17. August 2021 um 15:21

    Hallo zusammen,

    ich habe gerade festgestellt dass das oben genannte Script im Firefox 91 nicht mehr funktioniert.

    JavaScript
    location == AppConstants.BROWSER_CHROME_URL && (function () {
        var separator = document.getElementById("placesContext_openSeparator");
        var repBM = document.createXULElement('menuitem');
        separator.parentNode.insertBefore(repBM, separator);
        repBM.id = "placesContext_replaceURL";
        repBM.setAttribute("label", "Mit aktueller URL ersetzen");
        repBM.setAttribute("accesskey", "U");
        repBM.addEventListener("command", function () {
            var itemGuid = document.popupNode._placesNode.bookmarkGuid;
            PlacesUtils.bookmarks.update({
                guid: itemGuid,
                url: gBrowser.currentURI,
                title: gBrowser.contentTitle
            });
        }, false);
        var obs = document.createXULElement("observes");
        obs.setAttribute("element", "placesContext_open");
        obs.setAttribute("attribute", "hidden");
        repBM.appendChild(obs);
    })();
    Alles anzeigen

    hat einer eine Lösung ?

    Gruß

    EDV-Oldie

  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 17:49

    Hallo zusammen,

    alle die hier mitlesen und auch Thunderbird benutzen, in der aktuellen Daily 92.0a1 muss die Änderung auch durchgeführt werden.


    Gruß

    EDV-Oldie

  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 10:42
    Zitat von FuchsFan

    wenn der Fehlerbehebungsmodus durchgeführt wird

    Das ist bei mir immer die erste Wahl wenn etwas nicht funktioniert.
    Normalerweise benutze ich dafür das Script Restart Firefox , aber wenn nichts geht nehme ich den Fehlerbehebungsmodus. ;)

    Gruß

    EDV-Oldie

  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 10:32

    So sieht meine Datei aus.

    Code
    // utilities.js
    
    /* ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0/LGPL 2.1
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is the userChromeJS utilities.
     *
     * The Initial Developer of the Original Code is
     * alta88 <alta88@gmail.com>
     *
     * Portions created by the Initial Developer are Copyright (C) 2014
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     * aborix <www.camp-firefox.de/forum>
     *
     * Alternatively, the contents of this file may be used under the terms of
     * either the GNU General Public License Version 2 or later (the "GPL"), or
     * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
     * in which case the provisions of the GPL or the LGPL are applicable instead
     * of those above. If you wish to allow use of your version of this file only
     * under the terms of either the GPL or the LGPL, and not to allow others to
     * use your version of this file under the terms of the MPL, indicate your
     * decision by deleting the provisions above and replace them with the notice
     * and other provisions required by the GPL or the LGPL. If you do not delete
     * the provisions above, a recipient may use your version of this file under
     * the terms of any one of the MPL, the GPL or the LGPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    /* ........ Utility functions ............................................... */
    
    var userChrome = {
    
      path: null,
      dirToken: null,
      ignoreCache: false,
    
      get loadOverlayDelay () {
        if (!this._loadOverlayDelay)
          this._loadOverlayDelay = 500;
        return this._loadOverlayDelay;
      },
    
      set loadOverlayDelay(delay) {
        this._loadOverlayDelay = delay;
      },
    
      get loadOverlayDelayIncr() {
        if (!this._loadOverlayDelayIncr)
          this._loadOverlayDelayIncr = 1600;
        return this._loadOverlayDelayIncr;
      },
    
      set loadOverlayDelayIncr(delay) {
        this._loadOverlayDelayIncr = delay;
      },
    
      import: function(aPath, aRelDirToken) {
        let file;
        this.path = aPath;
        this.dirToken = aRelDirToken;
    
        if (aRelDirToken) {
          // Relative file
          let absDir = this.getAbsoluteFile(aRelDirToken);
          if (!absDir)
            return;
          let pathSep = absDir.path.match(/[\/\\]/)[0];
          file = absDir.path + (aPath == "*" ?
              "" : pathSep + aPath.replace(/[\/\\]/g, pathSep));
        }
        else
          // Absolute file
          file = aPath;
    
        file = this.getFile(file);
        if (!file)
          return;
        if (file.isFile()) {
          if (/\.js$/i.test(file.leafName))
            this.loadScript(file, aRelDirToken, null);
          else if (/\.xul$/i.test(file.leafName)) {
            let xul_files = [];
            xul_files.push(file);
            this.loadOverlay(xul_files, this.dirToken, null, this.loadOverlayDelay);
    //      this.loadOverlayDelay = this.loadOverlayDelay + this.loadOverlayDelayIncr;
          }
          else
            this.log("File '" + this.path +
                     "' does not have a valid .js or .xul extension.", "userChrome.import");
        }
        else if (file.isDirectory())
          this.importFolder(file);
        else
          this.log("File '" + this.path +
                   "' is neither a file nor a directory.", "userChrome.import");
      },
    
      loadScript: function(aFile, aFolder, aRelDirToken) {
        setTimeout(function() {
          Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
                    .getService(Components.interfaces.mozIJSSubScriptLoader)
                    .loadSubScriptWithOptions(userChrome.getURLSpecFromActualFile(aFile),
                                              {target: window,
                                               charset: userChrome.charSet,
                                               ignoreCache: userChrome.ignoreCache});
          // log it
          userChrome.log(aRelDirToken ? ("[" + aRelDirToken + "]/" +
              (aFolder && aFolder != "*" ? aFolder + "/" : "") + aFile.leafName) :
              aFile.path, "userChrome.loadScript");
        }, 0);
      },
    
      // XXX: Due to bug 330458, an overlay must finish before another can be
      // called, otherwise neither are successful.  Implementing an observer to
      // serialize is better left as a fix in the core bug.  Here, settimout values
      // are set to minimize but there is no quarantee; overlay cdata (if any)
      // needs to consider overlay completions and logging does not strictly mean
      // an overlay has completed, rather that the overlay file has been invoked.
    
      loadOverlay: function(aFiles, aRelDirToken, aFolder, aDelay) {
    //userChrome.log(aDelay+" multiple import delay", userChrome.loadOverlay);
        // Increment multiple import delay
        this.loadOverlayDelay = this.loadOverlayDelay + this.loadOverlayDelayIncr;
        setTimeout(function() {
          if (aFiles.length > 0) {
    //userChrome.log(userChrome.loadOverlayDelay+" inter folder delay", userChrome.loadOverlay);
            // log it
            userChrome.log(aRelDirToken ? ("[" + aRelDirToken + "]/" +
                (aFolder && aFolder != "*" ? aFolder + "/" : "") + aFiles[0].leafName) :
                aFiles[0].path, "userChrome.loadOverlay");
            document.loadOverlay(userChrome.getURLSpecFromActualFile(aFiles.shift()), null);
            setTimeout(arguments.callee, userChrome.loadOverlayDelay);
          }
        }, aDelay);
      },
    
      // Include all files ending in .js and .xul from passed folder
      importFolder: function(aFolder) {
        let files = aFolder.directoryEntries
                           .QueryInterface(Components.interfaces.nsISimpleEnumerator);
        let xul_files = [];
    
        while (files.hasMoreElements()) {
          let file = files.getNext().QueryInterface(Components.interfaces.nsIFile);
          if (/\.js$/i.test(file.leafName) && file.leafName != "userChrome.js")
            this.loadScript(file, this.path, this.dirToken);
          else if (/\.xul$/i.test(file.leafName)) {
            xul_files.push(file);
          }
        }
    
        if (xul_files.length > 0)
          this.loadOverlay(xul_files, this.dirToken, this.path);
      },
    
      getFile: function(aPath, aRelDirToken) {
        try {
          let file = Components.classes["@mozilla.org/file/local;1"]
                               .createInstance(Components.interfaces.nsIFile);
          file.initWithPath(aPath);
          // Bad file doesn't throw on initWithPath, need to test
          if (file.exists())
            return file;
          this.log("Invalid file '" + this.path + (this.dirToken ?
              ("' or file not found in directory with token '" + this.dirToken) :
              "") + "' or other access error.", "userChrome.getFile");
        }
        catch (e) {
          // Bad folder throws on initWithPath
          this.log("Invalid folder '" + this.path + (this.dirToken ?
              ("' or folder not found in directory with token '" + this.dirToken) :
              "") + "' or other access error.", "userChrome.getFile");
        }
        return null;
      },
    
      getAbsoluteFile: function(aRelDirToken) {
        try {
          let absDir = Components.classes["@mozilla.org/file/directory_service;1"]
                                 .getService(Components.interfaces.nsIProperties)
                                 .get(aRelDirToken, Components.interfaces.nsIFile);
          return absDir;
        }
        catch (e) {
          this.log("Invalid directory name token '" + this.dirToken +
                   "' or directory cannot be accessed.", "userChrome.getAbsoluteFile");
          return null;
        }
      },
    
      getURLSpecFromActualFile: Components.classes["@mozilla.org/network/io-service;1"]
                                    .getService(Components.interfaces.nsIIOService)
                                    .getProtocolHandler("file")
                                    .QueryInterface(Components.interfaces.nsIFileProtocolHandler)
                                    .getURLSpecFromActualFile,
    
      /* Console logger */
      log: function(aMsg, aCaller) {
        Components.classes["@mozilla.org/consoleservice;1"]
                  .getService(Components.interfaces.nsIConsoleService)
                  .logStringMessage(this.date + " userChromeJS " +
                                    (aCaller ? aCaller +": " : "") + aMsg);
      },
    
      get dateFormat() {
        if (!this._dateFormat)
          this._dateFormat = "%Y-%m-%d %H:%M:%S";
        return this._dateFormat;
      },
    
      set dateFormat(format) {
        this._dateFormat = format;
      },
    
      get date() {
        let date = new Date();
    //  return date.toLocaleFormat(this.dateFormat);
        try {
          date = date.toLocaleFormat(this.dateFormat);
        } catch(e) {
          date = date.toString();
        };    
        return date;
      },
    
      set charSet(val) {
        this._charSet = val;
      },
    
      get charSet() {
        if (!this._charSet)
          this._charSet = "UTF-8"; // use "UTF-8". Defaults to ascii if null.
        return this._charSet;
      }
    
    };
    Alles anzeigen
  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 10:30
    Zitat von FuchsFan

    Auch ein Dankeschön an Dich, ich kam nicht so schnell hinterher.

    Ich auch nicht.

    Gruß

    EDV-Oldie

  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 10:22

    Ich habe im Programm Ordner von Firefox im Unterordner userChromeJS in der Datei utilities.js alle Einträge nach Sörens Beschreibung geändert, nach einem normalen Neustart keine Funktion, dann wie oben beschriebe einmal im Fehlebehebungsmodus gestartet dann hat alles bei mir funktioniert.

    Gruß

    EDV-Oldie

  • Firefox 92 - Alle Scripte funktionieren nicht mehr

    • edvoldi
    • 6. August 2021 um 10:12
    Zitat von Sören Hentzschel

    Du könntest mal versuchen, in der genannten Datei und Zeile getURLSpecFromFile durch getURLSpecFromActualFile zu ersetzen.

    bei mir funktioniert es.

    Nachtrag, ich musste Firefox einmal im Fehlerbehebungsmodus starten.

    Danke Sören.

    Gruß

    EDV-Oldie

  • Wird archiviertes UMatrix schwächer? Nachfolger in Sicht?

    • edvoldi
    • 19. Juli 2021 um 19:15

    Bei mir ist eben die Version 1.4.2 aktualisiert worden.

    Gruß

    EDV-Oldie

  • Script Speichern in für Fx 78 wieder anpassen

    • edvoldi
    • 12. Juni 2021 um 21:26

    Ich habe Heute eine Excel Datei gespeichert und Excel wurde geöffnet, nach beenden von Firefox wurde die Datei gelöscht.

    Gruß EDV-Oldi getippt auf dem Smartphone

  • Script Speichern in für Fx 78 wieder anpassen

    • edvoldi
    • 5. Juni 2021 um 10:28
    Zitat von bege

    Da ich das Öffnen nach dem Download möchte, habe ich mich um diese Diskussion RE: Script Speichern in für Fx 78 wieder anpassen nicht gekümmert.

    Wie ich gerade feststelle, habe ich ein anderes Script und wie es aussieht das gleiche wie im Beitrag #84
    Da kommt Dein handlers.json nicht vor.

    Gruß

    EDV-Oldie

  • Script Speichern in für Fx 78 wieder anpassen

    • edvoldi
    • 4. Juni 2021 um 22:49
    Zitat von grisu2099

    .oder sie nach dem Speichern in einen anderen Ordner verschiebt

    Dann braucht man das Script nicht ;)

  • Script Speichern in für Fx 78 wieder anpassen

    • edvoldi
    • 4. Juni 2021 um 22:05

    Ich habe das auch gerade getestet.

    Das trifft bei mir nur bei einem von drei Konten zu.

    Nachtrag:
    Wenn man die Datei umbenennt wird sie beim beenden vom Firefox nicht gelöscht.

    Gruß

    EDV-Oldie

  • Anpassungen wegen Proton

    • edvoldi
    • 15. Mai 2021 um 11:08

    Und bei mir passt dieser Code:

    CSS
    /*   Lesezeichen und Sidebar Zeilenabstand   */    
        menupopup > menuitem,
        menupopup > menu {
        padding-block: .3em !important;
        }

    Danke allen für die Ideen.


    Gruß
    EDV-Oldi

  • Anpassungen wegen Proton

    • edvoldi
    • 15. Mai 2021 um 10:44

    Hallo Andreas,

    Zitat von 2002Andreas

    Mit meinem Code:

    mit Deinem Code fehlt aber oben der erste Eintrag, wenn diese Lesezeichenliste sehr lange ist.

    Ohne Code:

    Mit Code:

    Und nein, man kann nicht nach oben scrollen.


    Gruß
    EDV-Oldi

  • Nightly AddonsManager-Icon ändern

    • edvoldi
    • 4. Mai 2021 um 15:46

    Für den TAB habe ich diesen Code:

    CSS
    /*   TABS   */
        tab.tabbrowser-tab[label="Add-ons-Verwaltung"] .tab-icon-image {
        display: none !important;
        }
        tab.tabbrowser-tab[label="Add-ons-Verwaltung"] .tab-text.tab-label {
        background: url("file:///C:/Dropbox/Chrome/Icons/Add-ons-Web.png") no-repeat !important;
        background-position: 1px 0px !important;
        padding-left: 23px;
        padding-top: 2px;
        }


    Gruß
    EDV-Oldi

  • Anpassen von Clippings

    • edvoldi
    • 2. Mai 2021 um 22:29
    Zitat von 2002Andreas

    Hast du den Haken bei: Eigenes Fenster?

    Jetzt ja ;)

  • Anpassen von Clippings

    • edvoldi
    • 2. Mai 2021 um 22:02
    Zitat von Endor

    Nein leider auch nicht.

    das sieht dann bei mir so aus:

    und da nach so:


    Gruß
    EDV-Oldi

  • Anpassen von Clippings

    • edvoldi
    • 2. Mai 2021 um 21:52

    Man muss auf jeden Fall auf der linken Seite ein Textbaustein auswählen sonst funktioniert es nicht.

  • Anpassen von Clippings

    • edvoldi
    • 2. Mai 2021 um 20:19
    Zitat von 2002Andreas

    Rechtsklick drauf..Kopieren..CSS-Selektor..ergibt hier:


    ul.context-menu-list:nth-child(51) > li:nth-child(1) > span:nth-child(1)

    Das habe ich gerade getestet, funktioniert,

    mache morgen weiter.


    Zitat von 2002Andreas

    Damit wird nur diese Erweiterung angesprochen:

    Das funktioniert bei mir nicht, teste morgen weiter.

  • Anpassen von Clippings

    • edvoldi
    • 2. Mai 2021 um 20:01

    Wenn Du das im Firefox 88 machst, klicke links auf einen Eintrag, dann im rechten auf, rechte Maustaste und dann untersuchen.


    Zitat von 2002Andreas

    Rechtsklick drauf..Kopieren..CSS-Selektor..ergibt hier:

    Das habe ich gerade gesucht.

    Danke

Unterstütze uns!

Jährlich (2025)

101,9 %

101,9% (662,48 von 650 EUR)

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