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

Beiträge von aborix

  • Der Glückwunsch-Thread

    • aborix
    • 13. Juni 2017 um 10:42

    Alles Gute! :)

  • Kann man bei "Lesezeichen durchsuchen" den enthaltenden Ordner ermitteln ?

    • aborix
    • 4. Juni 2017 um 06:06

    Ich gebe den Dank an AngelOfDarkness weiter, er hat auf den Thread aufmerksam gemacht. :wink:

  • Kann man bei "Lesezeichen durchsuchen" den enthaltenden Ordner ermitteln ?

    • aborix
    • 4. Juni 2017 um 00:36

    In Beitrag 18 des o.g. Threads ist ein Link zum Download.

  • Chronik zeigt nur die ersten 3 Monate...

    • aborix
    • 3. Juni 2017 um 22:48

    Hallo und Willkommen im Forum!

    Mit der Erweiterung Expire history by days lässt sich das machen.

  • userChrome.js Scripte für den Fuchs (Diskussion)

    • aborix
    • 29. Mai 2017 um 22:38
    Zitat von Boersenfeger


    Ich benötige von meinen derzeit 10 XUL-Scripte mindestens diese 4..
    https://github.com/ardiman/userCh…/supportmozilla
    https://github.com/ardiman/userCh…eferencesbutton
    https://github.com/ardiman/userCh…penchromefolder
    https://github.com/ardiman/userCh…texttoclipboard

    Open Chrome Folder ist in der letzten Version bereits ein js-Skript.
    Die anderen drei umzuschreiben ist wenig Arbeit.
    Aber ich warte ab, ob über die Config-Datei ausgeführte xul-Skripte mit Fx 57 funktionieren. Solange Firefox noch XUL-Code enthält und daher verarbeitet, ist das für mich offen.

  • userChrome.js Scripte für den Fuchs (Diskussion)

    • aborix
    • 28. Mai 2017 um 22:13
    Zitat von loshombre


    hombre aborix,
    du solltest mal langsam darüber nachdenken, damit Kohle zu verdienen :wink:


    Der Gedanke ist mir auch schon gekommen. :wink:

    In der config.js lässt sich noch einiges vereinfachen und individuell anpassen, aber eins nach dem anderen.

    RestartFirefoxButtonM.uc.js funktioniert bei mir.
    Wenn beim Klick eine Meldung in der Browserkonsole kommt, liefert die vielleicht einen Hinweis.

  • userChrome.js Scripte für den Fuchs (Diskussion)

    • aborix
    • 27. Mai 2017 um 22:00

    Bitte testet mal:

    In den Fx-Programmordner kommt eine Datei namens "config.js" mit nachfolgendem Inhalt.
    Es ist das Skript userChrome_js.js aus dem Ordner components der Erweiterung mit einigen Änderungen.

    Code
    //
    /* ***** 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 userChrome.js component.
     *
     * The Initial Developer of the Original Code is
     * Simon Bünzli <zeniko@gmail.com>
     *
     * Portions created by the Initial Developer are Copyright (C) 2007
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     * alta88 <alta88@gmail.com>
     *
     * 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 ***** */
    
    
    try {
    
    
    /*Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
    */
    Components.utils.import("resource://gre/modules/osfile.jsm");
    
    
    function UserChrome_js() {
      var os = Components.classes["@mozilla.org/observer-service;1"]
                         .getService(Components.interfaces.nsIObserverService);
      os.addObserver(this, "final-ui-startup", false);
    };
    
    
    UserChrome_js.prototype = {
    /*// Properties required for XPCOM registration:
      classDescription: "userChromeJS Loading Component",
      classID         : Components.ID("{8DEB3B5E-7585-4029-B6D0-4733CE8DED50}"),
      contractID      : "@userChromeJS;1",
    
    
      _xpcom_categories: [{
        category: "app-startup",
        service: true
      }],
    */
    /* ........ QueryInterface .................................................. */
    /*
      QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISupports,
                                             Components.interfaces.nsIObserver,
                                             Components.interfaces.nsIModule,
                                             Components.interfaces.nsIFactory,
                                             Components.interfaces.nsIDOMEventListener]),
    */
    /* ........ nsIObserver ..................................................... */
    
    
      observe: function(aSubject, aTopic, aData) {
        var os = Components.classes["@mozilla.org/observer-service;1"]
                           .getService(Components.interfaces.nsIObserverService);
    
    
        switch (aTopic) {
    /*  case "app-startup":
        case "profile-after-change":
          os.addObserver(this, "final-ui-startup", false);
          break;
    */  case "final-ui-startup":
          var file = Components.classes["@mozilla.org/file/directory_service;1"]
                               .getService(Components.interfaces.nsIProperties)
                               .get("UChrm", Components.interfaces.nsIFile);
          file.append("userChrome.js");
    /*
          if (!file.exists()) {
            var componentFile = __LOCATION__;
            var componentsDir = componentFile.parent;
            var extensionDir = componentsDir.parent;
            extensionDir.append("README.txt");
            if (extensionDir.exists())
              extensionDir.copyTo(file.parent, "userChrome.js");
          }
    */
          if (file.exists() && file.isFile() &&
              !Components.classes["@mozilla.org/xre/app-info;1"]
                         .getService(Components.interfaces.nsIXULRuntime)
                         .inSafeMode) {
            this.mFileURL = Components.classes["@mozilla.org/network/io-service;1"]
                                      .getService(Components.interfaces.nsIIOService)
                                      .getProtocolHandler("file")
                                      .QueryInterface(Components.interfaces.nsIFileProtocolHandler)
                                      .getURLSpecFromFile(file);
            var path = OS.Constants.Path.libDir;
            path = OS.Path.join(path, "userChromeJS.js");
            this.uCFileURI = OS.Path.toFileURI(path);
    
    
            os.addObserver(this, "domwindowopened", false);
          }
          break;
        case "domwindowopened":
          aSubject.addEventListener("load", this, true);
          break;
        }
      },
    
    
    /* ........ nsIDOMEventListener ............................................. */
    
    
      handleEvent: function(aEvent) {
        var document = aEvent.originalTarget;
        if (document.location && document.location.protocol == "chrome:") {
          try {
            let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
                                   .getService(Components.interfaces.mozIJSSubScriptLoader);
    /*
            loader.loadSubScript("chrome://userChromeJS/content/userChromeJS.js",
                                 document.defaultView,
                                 "UTF-8");
    */
            loader.loadSubScript(this.uCFileURI,
                                 document.defaultView,
                                 "UTF-8");
    
    
            loader.loadSubScript(this.mFileURL,
                                 document.defaultView,
                                 "UTF-8");
          }
          catch (ex) {
            // script execution can be stopped with |throw "stop";|
            if (ex !== "stop") {
              Components.utils.reportError(ex);
            }
          }
        }
      }
    
    
    };
    
    
    /**
     * The following line is what XPCOM uses to create components. Each component
     * prototype must have a .classID which is used to create it.
     *
     * XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4).
     */
    /*var NSGetFactory = XPCOMUtils.generateNSGetFactory([UserChrome_js]);
    */
    new UserChrome_js();
    
    
    } catch(ex) {
      Components.utils.reportError(ex);
    };
    Alles anzeigen

    In den Programmordner kommt noch eine zweite Datei namens "userChromeJS.js". Das ist das unveränderte Skript userChromeJS.js aus dem Ordner content der Erweiterung:

    Code
    /* ***** 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):
     *
     * 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 ***** */
    
    
    var EXPORTED_SYMBOLS = ["userChrome"];
    
    
    /* ........ Utility functions ............................................... */
    
    
    var userChrome = {
      path: null,
      dirToken: null,
    
    
      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)
                    .loadSubScript(userChrome.getURLSpecFromFile(aFile),
                                   null, // defaults to the global object of the caller.
                                   userChrome.charSet);
          // 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.getURLSpecFromFile(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;
        }
      },
    
    
      getURLSpecFromFile: Components.classes["@mozilla.org/network/io-service;1"]
                                    .getService(Components.interfaces.nsIIOService)
                                    .getProtocolHandler("file")
                                    .QueryInterface(Components.interfaces.nsIFileProtocolHandler)
                                    .getURLSpecFromFile,
    
    
      /* 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);
      },
    
    
      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

    Schließlich kommt noch eine Datei namens "config-prefs.js" in den Unterordner \defaults\pref des Programmordners. Darin steht:

    Code
    pref("general.config.obscure_value", 0);
    pref("general.config.filename", "config.js");

    userChromeJS ist deaktiviert oder nicht installiert. Die Datei userChrome.js und die zu importierenden Skripte befinden sich wie üblich im Ordner chrome.

    Nun Neustart und die Skripte sollten ausgeführt werden.

  • Meldungen über Spam im Forum

    • aborix
    • 18. Mai 2017 um 08:54

    https://www.camp-firefox.de/forum/memberli…profile&u=96508

    Edit 2002Andreas...User und Beiträge gelöscht.

  • userChrome.js Scripte für den Fuchs (Diskussion)

    • aborix
    • 17. Mai 2017 um 22:18

    Vielleicht das hier:

    Quelle: http://forums.mozillazine.org/viewtopic.php?p=14747866#p14747866

    Zitat von morat

    The config file may still work in Firefox 57. You can use the mozilla.cfg file as an alternative to the userChrome.js file.

    Customizing Firefox – Advanced Autoconfig Files
    http://mike.kaply.com/2012/03/22/cus…toconfig-files/

    Demo mozilla.cfg file
    http://mike.kaply.com/wp-content/blo…016/02/demo.cfg

    Observer Notifications
    http://developer.mozilla.org/en-US/docs/Observer_Notifications

    Deploying Firefox in an enterprise environment
    http://developer.mozilla.org/en-US/Firefox/…rise_deployment

    Wenn man das, was userChromeJS macht, von der Konfigurationsdatei erledigen lassen kann, könnte das funktionieren.

  • Der Glückwunsch-Thread

    • aborix
    • 8. Mai 2017 um 13:34

    Alles Gute! :)

  • [erledigt] Schlüsselwort für Lesezeichen und Suchmaschine

    • aborix
    • 3. Mai 2017 um 17:55

    Ich habe bis jetzt keine Lösung gefunden.

  • signon.autofillForms.http [Gelöst]

    • aborix
    • 3. Mai 2017 um 17:50
    Zitat von David44


    pref("signon.autofillForms.http", "true");

    Lass die Anführungszeichen bei "true" weg.

  • Lesezeichen Schnellspeicherung Ordner ändern

    • aborix
    • 2. Mai 2017 um 07:36

    Hallo,

    das ist mit Add Bookmark Here ² möglich.
    Siehe auch https://www.camp-firefox.de/forum/viewtopic.php?f=16&t=108079.

  • Weiterleitungswarnung - Whitelist

    • aborix
    • 27. April 2017 um 20:49

    Zwei neue Versionen.
    Testet beide und öffnet die betreffenden Seiten in neuen Tabs.
    Ab Version 0.11 funktioniert die Erweiterung nicht mehr mit Fx 45esr.

    Dateien

    block_autorefresh_whitelist-0.11-fx.xpi.zip 16,79 kB – 158 Downloads block_autorefresh_whitelist-0.12-fx.xpi.zip 17,46 kB – 166 Downloads
  • Erweiterung media.windows-media-foundation.enabled

    • aborix
    • 24. April 2017 um 22:51
    Zitat von Sören Hentzschel

    Da es keine AMO-Seite dazu gibt, wäre eine kurze Beschreibung gut, was das Add-on überhaupt macht. So kann ich dazu leider nichts sagen.

    Die Erweiterung stammt von mir und hier steht die ganze Diskussion dazu:
    https://www.camp-firefox.de/forum/viewtopic.php?f=1&t=115562
    Verändert werden dabei u.a. dieses Frame-Skript:
    https://dxr.mozilla.org/mozilla-releas…/tab-content.js
    und die Funktion RefreshBlocker.block:
    https://dxr.mozilla.org/mozilla-releas…freshblocker.js

  • Weiterleitungswarnung - Whitelist

    • aborix
    • 21. April 2017 um 01:08

    Das Kontextmenü funktioniert auch wieder:

    Dateien

    block_autorefresh_whitelist-0.10-fx.xpi.zip 17,71 kB – 157 Downloads
  • Weiterleitungswarnung - Whitelist

    • aborix
    • 19. April 2017 um 17:51

    Funktioniert der Button, wenn du die Testseite in einem neuen Tab aufrufst?

  • Weiterleitungswarnung - Whitelist

    • aborix
    • 19. April 2017 um 16:26

    Ja, ich habe es in einem neuen Profil getestet. Bei "Fenster mit mehreren Prozessen" stand bei mir "0/1" und genau das hat den Unterschied ausgemacht. Ich hatte früher schon daran gedacht, bin dem aber nicht nachgegangen, weil von 0.9.3 auf 0.9.4 nichts, was e10s betrifft, verändert ist. Ich habe jetzt 0.9.3 mit e10s getestet und erwartungsgemäß funktioniert es auch nicht.

    Ich habe jetzt eine neue Version, in der ist das teilweise repariert:
    Mit e10s funktioniert das Neuladen, das Kontextmenü funktioniert allerdigs nicht. Freigeben geht nur über den Button. Zum Sperren muss man den about:config-Eintrag händisch bearbeiten. Ohne e10s klappt alles.
    Am Kontextmenü arbeite ich noch.

    Dateien

    block_autorefresh_whitelist-0.9.6-fx.xpi.zip 17,45 kB – 159 Downloads
  • Weiterleitungswarnung - Whitelist

    • aborix
    • 18. April 2017 um 15:11

    Nur um ganz sicher zu sein: "Warnen, wenn Webseiten versuchen umzuleiten oder neu zu laden" ist angehakt?
    Teste bitte: Öffne einen neuen leeren Tab und dann in diesem Tab die Testseite. Tut sich jetzt auch nichts?

  • Weiterleitungswarnung - Whitelist

    • aborix
    • 18. April 2017 um 11:45

    Meinst du das normale manuelle Neuladen? Das funktioniert bei mir ganz normal.
    Wenn nicht:
    Ich habe die Erweiterung getestet auf http://noip.magix.net/5sek.html und beim Speichern eines Entwurfs hier im Forum und auf beiden Seiten klappt es bei mir, wie es soll. Kannst du mir ein paar Seiten nennen, wo nichts geschieht?

Unterstütze uns!

Jährlich (2025)

107,3 %

107,3% (697,41 von 650 EUR)

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