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
    • 15. Januar 2019 um 20:17

    Alles Gute!

  • Meldungen über Spam im Forum

    • aborix
    • 10. Januar 2019 um 07:08

    https://www.camp-firefox.de/forum/memberli…rofile&u=100273

  • Meldungen über Spam im Forum

    • aborix
    • 8. Januar 2019 um 07:59

    https://www.camp-firefox.de/forum/memberli…rofile&u=100257

  • Lesezeichen für alle Tabs nicht möglich (Ubuntu)

    • aborix
    • 7. Januar 2019 um 21:37

    Zum Erstellen von Tastenkombinationen wird im SUMO-Artikel über Tastenkombinationen auf die Erweiterung Saka Key verwiesen. Mit einem Skript ist es auch möglich.

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

    • aborix
    • 6. Januar 2019 um 20:28

    Soweit ich sehe, stellt das Skript keine Symbole bereit. Ich kann aber nicht ausschließen, dass ich etwas übersehen habe. Mir ist daher nicht klar, woher bisher das Notepad++-Symbol kam.
    Vielleicht kann jemand anders weiterhelfen.

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

    • aborix
    • 5. Januar 2019 um 21:14

    Hast du, zusätzlich zum Skript, einen CSS-Code für das Notepad++-Symbol?

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

    • aborix
    • 4. Januar 2019 um 21:10

    Wenn es im Nightly ist, erst einmal abwarten.
    Andernfalls: Welche Fx-Version und welche Skript-Version (mit Link) ?

  • Speicherort von Dateien und Ordnern für den schnellen Zugriff über die zusätzliche Symbolleiste

    • aborix
    • 3. Januar 2019 um 20:33

    Gerne. :)

  • Speicherort von Dateien und Ordnern für den schnellen Zugriff über die zusätzliche Symbolleiste

    • aborix
    • 2. Januar 2019 um 21:25

    Ja, geht so:

    Code
    // ==UserScript==
    // @name           External-Application.uc.js
    // @namespace      ithinc#mozine.cn
    // @description    External Applications
    // @include        main
    // @compatibility  Firefox 3.5.x
    // @author         ithinc
    // @version        20091212.0.0.1 Initial release
    // @version        20170911.0.0.2  Fix by aborix
    // ==/UserScript==
    
    
    /* :::: External Applications :::: */
    
    
    var gExternalApplications = {
      type: 'button', //'menu' or 'button'
      insertafter: 'menubar-items',
    
    
      apps: [
        {name: 'Notepad', path: 'C:\\WINDOWS\\system32\\notepad.exe'},
        {name: 'Notepad++', path: 'C:\\Program Files (x86)\\Notepad++\\notepad++.exe'},
        {name: 'Calculator', path: '.\\.\\..\\..\\WINDOWS\\system32\\calc.exe'},
        {name: 'Command Prompt', path: 'C:\\WINDOWS\\system32\\cmd.exe'},
        {name: 'separator'},
        {name: 'Windows Explorer', path: 'C:\\Windows\\explorer.exe'},
      ],
    
    
      init: function() {
        for (var i=0; i<this.apps.length; i++) {
          if (!this.apps[i].path) continue;
          if (!this.apps[i].args) this.apps[i].args = [];
    
    
          this.apps[i].path = this.apps[i].path.replace(/\//g, '\\');
    
    
          var ffdir = Cc['@mozilla.org/file/directory_service;1'].getService(Ci.nsIProperties).get('CurProcD', Ci.nsIFile).path;
          if (/^(\\)/.test(this.apps[i].path)) {
            this.apps[i].path = ffdir.substr(0,2) + this.apps[i].path;
          }
          else if (/^(\.)/.test(this.apps[i].path)) {
            this.apps[i].path = ffdir + '\\' + this.apps[i].path;
          }
        }
    
    
        if (this.type == 'menu') {
          var mainmenu = document.getElementById('main-menubar');
          var menu = mainmenu.appendChild(document.createElement('menu'));
          menu.setAttribute('label', 'Start');
          menu.setAttribute('accesskey', 'a');
    
    
          var menupopup = menu.appendChild(document.createElement('menupopup'));
          for (var i=0; i<this.apps.length; i++) {
            menupopup.appendChild(this.createMenuitem(this.apps[i]));
          }
        }
        else {
        /*
          var menubarItems = document.getElementById(this.insertafter);
          var toolbaritem = menubarItems.parentNode.insertBefore(document.createElement('toolbaritem'), menubarItems.nextSibling);
          toolbaritem.id = 'ExtAppButtons';
          toolbaritem.setAttribute("class", "chromeclass-toolbar-additional");
          toolbaritem.setAttribute("orient", "horizontal");
          for (var i=0; i<this.apps.length; i++) {
            toolbaritem.appendChild(this.createButton(this.apps[i]));
          }
        */
          for (var i=0; i<this.apps.length; i++) {
            this.createButton(this.apps[i]);
          }
        }
      },
    
    
      exec: function(path, args) {
        for (var i=0; i<args.length; i++) {
          args[i] = args[i].replace(/%u/g, gBrowser.currentURI.spec);
        }
    
    
        var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
        file.initWithPath(path);
        if (!file.exists()) {
          throw 'File Not Found: ' + path;
        }
    
    
        if (!file.isExecutable() || args.length==0) {
          file.launch();
        }
        else {
          var process = Cc['@mozilla.org/process/util;1'].getService(Ci.nsIProcess);
          process.init(file);
          process.run(false, args, args.length);
        }
      },
    
    
      createButton: function(app) {
      /*
        if (app.name == 'separator')
          return document.createElement('toolbarseparator');
    
    
        var item = document.createElement('toolbarbutton');
        item.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional');
        item.setAttribute('label', app.name);
        item.setAttribute('image', 'moz-icon:file:///' + app.path + '?size=16');
        item.setAttribute('oncommand', 'gExternalApplications.exec(this.path, this.args);');
        //item.setAttribute('tooltiptext', app.name);
        item.path = app.path;
        item.args = app.args;
        return item;
      */
        if (app.name == 'separator')
          return;
        var buttonId = app.name.replace(/ /g, '_').replace(/\+/g, 'Plus') + '-ExtApp-button';
        try {
          CustomizableUI.createWidget({
            id: buttonId,
            type: 'custom',
            defaultArea: CustomizableUI.AREA_MENUBAR,
            onBuild: function(aDocument) {
              var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
              var attributes = {
                id: buttonId,
                class: 'toolbarbutton-1 chromeclass-toolbar-additional',
                label: app.name,
                tooltiptext: app.name,
                image: 'moz-icon:file:///' + app.path + '?size=16',
                oncommand: 'gExternalApplications.exec(this.path, this.args);'
              };
              for (var a in attributes) {
                toolbaritem.setAttribute(a, attributes[a]);
              };
              toolbaritem.path = app.path;
              toolbaritem.args = app.args;
              return toolbaritem;
            }
          });
        } catch(e) {};
      },
    
    
      createMenuitem: function(app) {
        if (app.name == 'separator')
          return document.createElement('menuseparator');
    
    
        var item = document.createElement('menuitem');
        item.setAttribute('class', 'menuitem-iconic');
        item.setAttribute('label', app.name);
        item.setAttribute('image', 'moz-icon:file:///' + app.path + '?size=16');
        item.setAttribute('oncommand', 'gExternalApplications.exec(this.path, this.args);');
        item.path = app.path;
        item.args = app.args;
        return item;
      }
    };
    gExternalApplications.init();
    Alles anzeigen
  • Meldungen über Spam im Forum

    • aborix
    • 2. Januar 2019 um 08:36

    https://www.camp-firefox.de/forum/memberli…rofile&u=100225

  • Links aus Chronik in neuem Tab

    • aborix
    • 2. Januar 2019 um 08:29

    Wenn Tabs normalerweise im Vordergrund geöffnet werden, dann Strg+Umschalt+Linksklick oder Umschalt+Mittelklick; andernfalls jeweils ohne Umschalttaste.

  • Frohe Weihnachten und einen guten Rutsch

    • aborix
    • 1. Januar 2019 um 17:34

    Alles Gute für 2019!

  • Tab "Neuer Tab" bei Start des FF ohne Schrift [gelöst]

    • aborix
    • 30. Dezember 2018 um 19:15

    Hallo,

    teste in der userChrome.css:

    Code
    .tabbrowser-tab[pending][label="Neuer Tab"] .tab-label
      {display: none}
  • Lesezeichen als json Datei mit Befehl sichern

    • aborix
    • 28. Dezember 2018 um 20:20

    Von diesen Daten ausgehend lässt sich das Laufwerk ermitteln. Wenn sich z.B. der Profilordner auf BenutzerDR befindet, dann folgendermaßen:

    Code
    const BenutzerDR = OS.Path.split(OS.Constants.Path.profileDir).winDrive;

    und der Pfad der Lesezeichendatei ist dann

    Code
    const path = OS.Path.join(BenutzerDR, […] "bookmarks.json");
  • Meldungen über Spam im Forum

    • aborix
    • 28. Dezember 2018 um 06:56

    https://www.camp-firefox.de/forum/memberli…rofile&u=100204

  • Meldungen über Spam im Forum

    • aborix
    • 27. Dezember 2018 um 07:12

    https://www.camp-firefox.de/forum/memberli…rofile&u=100201

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

  • Frohe Weihnachten und einen guten Rutsch

    • aborix
    • 24. Dezember 2018 um 18:22

    Frohe Weihnachten! <:)

  • 65.0b4 (64-Bit): Script "HideTabbarWithOneTab.uc.js" benötigt vermutlich Anpassung.

    • aborix
    • 22. Dezember 2018 um 21:51

    Gern geschehen. <:)

  • Meldungen über Spam im Forum

    • aborix
    • 22. Dezember 2018 um 07:09

    https://www.camp-firefox.de/forum/viewtopi…100375#p1100375 ?

    Edit 2002Andreas...Werbelink gelöscht.

  • 65.0b4 (64-Bit): Script "HideTabbarWithOneTab.uc.js" benötigt vermutlich Anpassung.

    • aborix
    • 22. Dezember 2018 um 02:03

    Lass im CSS-Code in dieser Zeile das !important weg und teste folgendes Skript:

    Code
    (function() {
    
    
      if (!window.gBrowser)
        return;
    
    
      let tabbar = document.getElementById('TabsToolbar');
      let navToolbox = document.getElementById('navigator-toolbox');
    
    
      function showHideTabbar() {
        if (gBrowser.visibleTabs.length == 1) {
          tabbar.style.visibility = 'collapse';
          navToolbox.style.paddingBottom = '0';
        } else {
          tabbar.style.visibility = 'visible';
          navToolbox.style.paddingBottom = 'calc(1px + var(--tab-min-height_tnot))';
        };
      };
    
    
      showHideTabbar();
    
    
      let observer = new MutationObserver(showHideTabbar);
      observer.observe(gBrowser.tabContainer, {childList: true});
    
    
    })();
    Alles anzeigen

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