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

Beiträge von universum123

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

    • universum123
    • 2. Oktober 2017 um 12:48

    [Blockierte Grafik: http://www.smilies.4-user.de/include/Schilder/smilie_m_010.gif]

    hab da mal wieder eine kleine Bastelaufgabe

    gefunden auf github.com-ardiman

    ExternalApplications_Extended.uc.js *siehe Bild

    Code
    // ==UserScript==
    // @name           externalApplications.uc.js
    // @namespace      ithinc#mozine.cn
    // @description    External Applications
    // @include        main
    // @compatibility  Firefox 3.5.x 3.6.x
    // @author         ithinc
    // @version        20091216.1.0.0 Final release
    // @version        20091215.0.0.2 Handle toolbar apps and menu apps separately
    // @version        20091212.0.0.1 Initial release
    // ==/UserScript==
    
    
    /* :::: External Applications :::: */
    
    
    var gExternalApplications = {
      toolbar: {
        apps: [
          //{name: 'Notepad', path: '/WINDOWS/system32/notepad.exe'},
          {name: 'Calculator', path: 'C:\\WINDOWS\\system32\\calc.exe'},
         {name: 'freegate', path: 'F:\\360download\\fg709a.exe'},
         //{name: 'separator'},
         {name: 'Internet Explorer', path: 'C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE', args: ['%u']},
          //{name: 'Command Prompt', path: 'C:\\WINDOWS\\system32\\cmd.exe'},
        ],
        insertafter: 'menubar-items'  //'menubar-items' or 'home-button'
      },
    
    
      menu: {
        apps: [
          //{name: 'Notepad', path: '/WINDOWS/system32/notepad.exe'},
          {name: 'Calculator', path: 'C:\\WINDOWS\\system32\\calc.exe'},
          //{name: 'Command Prompt', path: 'C:\\WINDOWS\\system32\\cmd.exe'},
          //{name: 'separator'},
          //{name: 'UltraEdit', path: 'C:\\Program Files\\IDM Computer Solutions\\UltraEdit-32\\uedit32.exe'},
          //{name: 'Total Commander', path: 'U:\\Programs\\Total Commander\\TOTALCMD.EXE'},
          //{name: 'separator'},
         //{name: 'My Computer', path: 'c:\\windows\\explorer.exe'},/*x?????*/
          {name: 'Internet Explorer', path: 'C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE', args: ['%u']},//??????????,????%u
         // {name: 'Maxthon', path: 'C:\\Program Files\\Maxthon\\Maxthon.exe', args: ['%u']},
         // {name: 'Namoroka', path: 'D:\\Program Files\\Namoroka3.6b5pre\\firefox.exe', args: ['-no-remote', '-P blank']},
         // {name: 'separator'},
          //{name: 'Profile', path: 'C:\\Documents and Settings\\linus\\Application Data\\Mozilla\\Firefox\\Profiles\\c4r67s72.default'},
        ],
        insertafter: 'browserToolsSeparator', //'helpMenu', 'tools-menu' or 'browserToolsSeparator'
        label: 'Start',
        accesskey: 'A'
      },
    
    
      init: function() {
        this.handleRelativePath(this.toolbar.apps);
        this.handleRelativePath(this.menu.apps);
    
    
        if (this.toolbar.apps.length > 0) {
          var refNode = document.getElementById(this.toolbar.insertafter);
          if (refNode) {
            refNode.parentNode.insertBefore(this.createToolbaritem(this.toolbar.apps), refNode.nextSibling);
          }
        }
    
    
        if (this.menu.apps.length > 0) {
          var refNode = document.getElementById(this.menu.insertafter);
          if (refNode) {
            var menu = refNode.parentNode.insertBefore(document.createElement('menu'), refNode.nextSibling);
            menu.setAttribute('label', this.menu.label);
            menu.setAttribute('accesskey', this.menu.accesskey);
            menu.appendChild(this.createMenupopup(this.menu.apps));
          }
        }
      },
    
    
      handleRelativePath: function(apps) {
        for (var i=0; i<apps.length; i++) {
          if (apps[i].path) {
            apps[i].path = apps[i].path.replace(/\//g, '\\');
    
    
            var ffdir = Cc['@mozilla.org/file/directory_service;1'].getService(Ci.nsIProperties).get('CurProcD', Ci.nsIFile).path;
            if (/^(\.)/.test(apps[i].path)) {
              apps[i].path = ffdir + '\\' + apps[i].path;
            }
            else if (/^(\\)/.test(apps[i].path)) {
              apps[i].path = ffdir.substr(0,2) + apps[i].path;
            }
          }
        }
      },
    
    
      exec: function(path, args) {
        args = 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.nsILocalFile);
        file.initWithPath(path);
        if (!file.exists()) {
          Cu.reportError('File Not Found: ' + path);
          return;
        }
    
    
        if (!file.isExecutable()) {
          file.launch();
        }
        else {
          var process = Cc['@mozilla.org/process/util;1'].createInstance(Ci.nsIProcess);
          process.init(file);
          process.run(false, args, args.length);
        }
      },
    
    
      createToolbaritem: function(apps) {
        var toolbaritem = document.createElement('toolbaritem');
        toolbaritem.setAttribute('class', 'chromeclass-toolbar-additional');
        toolbaritem.setAttribute('orient', 'horizontal');
    
    
        for (var i=0; i<apps.length; i++) {
          if (apps[i].name == 'separator') {
            toolbaritem.appendChild(document.createElement('toolbarseparator'));
          }
          else {
            var item = toolbaritem.appendChild(document.createElement('toolbarbutton'));
            item.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional');
            item.setAttribute('label', apps[i].name);
            item.setAttribute('image', 'moz-icon:file://' + apps[i].path + '?size=16;');
            item.setAttribute('oncommand', 'gExternalApplications.exec(this.path, this.args);');
            item.setAttribute('tooltiptext', apps[i].name);
          item.setAttribute('style','margin: 0px 0px;background: none;box-shadow: none;border-color: transparent;'); //dawlen add
            item.path = apps[i].path;
            item.args = apps[i].args;
          }
        }
        return toolbaritem;
      },
    
    
      createMenupopup: function(apps) {
        var menupopup = document.createElement('menupopup');
        for (var i=0; i<apps.length; i++) {
          if (apps[i].name == 'separator') {
            menupopup.appendChild(document.createElement('menuseparator'));
          }
          else {
            var item = menupopup.appendChild(document.createElement('menuitem'));
            item.setAttribute('class', 'menuitem-iconic');
            item.setAttribute('label', apps[i].name);
            item.setAttribute('image', 'moz-icon:file://' + apps[i].path + '?size=16');
            item.setAttribute('oncommand', 'gExternalApplications.exec(this.path, this.args);');
            item.path = apps[i].path;
            item.args = apps[i].args;
          }
        }
        return menupopup;
      }
    };
    gExternalApplications.init();
    Alles anzeigen

    oder das ewtl. ?

    was würde besser gehen im Fx 57/58

    externalApplications.uc.js

    Code
    // ==UserScript==
    // @name           externalApplications.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
    // ==/UserScript==
    
    
    /* :::: External Applications :::: */
    
    
    var gExternalApplications = {
      type: 'button', //'menu' or 'button'
      insertafter: 'menubar-items',
    
    
      apps: [
        {name: 'Notepad', path: '/WINDOWS/system32/notepad.exe'},
        {name: 'Calculator', path: '.\\.\\..\\..\\WINDOWS\\system32\\calc.exe'},
        {name: 'Command Prompt', path: 'C:\\WINDOWS\\system32\\cmd.exe'},
        {name: 'separator'},
        {name: 'Internet Explorer', path: 'C:\\Programme\\Internet Explorer\\IEXPLORE.EXE', args: ['%u']},
        {name: 'Maxthon', path: 'C:\\Program Files\\Maxthon\\Maxthon.exe', args: ['%u']},
      ],
    
    
      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.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]));
          }
        }
      },
    
    
      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.nsILocalFile);
        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;
      },
    
    
      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


    *[Blockierte Grafik: http://fs5.directupload.net/images/171002/6d6isog3.jpg]

    ich hätte gerne nur das Email "Symbol" (Thunderbird) wo der Pfeil hin zeigt

    all meine versuche das zu starten sind fehlgeschlagen

    hat zeit keine eile damit

    (Nightly ist extra so groß gemacht von mir (Schrift))


    gruß uni

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

    • universum123
    • 1. Oktober 2017 um 17:55

    :klasse:

    hab das auf "Developer Beta" probiert

    werde jetzt dann die anderen "Profile" nachziehen

    uni


    ot

    nebenbei

    :shock: schaue nach

    dat is ja jetzt "Quantum"

    ot ende

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

    • universum123
    • 1. Oktober 2017 um 17:42

    das von Endor also

    ich teste mal

    bis gleich

    uni

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

    • universum123
    • 1. Oktober 2017 um 17:40

    :-??

    andreas  Endor

    welches ist denn das "Richtige" :?:

    :-??

    uni

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

    • universum123
    • 1. Oktober 2017 um 09:30

    :klasse: funzt

    jetzt muss ich nur noch herausfinden wie ich das "zentrieren" kann im "Code"

    weil dat "klemmt" jetzt oben unter der Kante

    [Blockierte Grafik: http://fs5.directupload.net/images/171001/86gvrn43.png]

    uni

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 20:29

    hi

    nur ein Gegentest mit Nightly 58 64bit gemacht

    ist genau das selbe

    ich lasse es erst mal so

    ist doch lustig anzusehen

    prophylaktisches "gute Nacht"


    uni

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 20:20

    :-??

    schau

    normalerweise sind da nur die 3 Daddelpunkte beim laden

    [Blockierte Grafik: http://fs5.directupload.net/images/170930/uexnx8zb.jpg]


    :-??

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 19:53
    Zitat von 2002Andreas


    Bis Fx Version Anfang ca. 50 funktionierte das mit diesem Code:

    Nur was genau man daran ändern müsste/könnte entzieht sich leider meinen Kenntnissen :?

    nabend

    mein frage

    1. wo kommt der "Code" hin

    ich hab ihn mal aus neugier in die userChrome.css getan (Aurora 57)

    :-??

    nu hab ich auf dem(n) Tab/s wenn man(n) eine seite aufruft den "roten Fuchs" zu sehen bis die Webseite ihr Icon geladen hat

    :-??

    2. frage

    andreas bist du sicher das das für "für Favions von Lesezeichen" ist

    oder bin ich wieder auf dem Holzweg?

    habs noch nicht fürn Nightly getestet

    uni

  • tagesschau.de Videos nicht abspielbar seit Vers. 56.0 (32 bit)

    • universum123
    • 30. September 2017 um 15:21

    hi

    hast du mal ohne "Flash" die Videos probiert?

    Flash deaktivieren und testen

    uni

  • Firefox 56 ständig Absturzbericht ?

    • universum123
    • 30. September 2017 um 12:50

    @

    jepp

    welchen Fx benutzt du?

    war bei mir auch so (Developer, Aurora, Beta ...) Fx 56

    hab das selbe System

    uni

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 12:01

    ups

    dann wäre ein "Generalcode" von Sinn

    nur gibt es so was?

    so erst mal Mittag machen

    uni

    edit

    etwas überschnitten mit meiner Antwort

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 11:56

    :-??

    hat Endor das nicht!?

    für Favions von Lesezeichen müsste er so aussehen:

    CSS
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    .bookmark-item[label="hier Bezeichnung des Lesezeichens eingeben"] {
    list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKDSURBVDjLhZNfSN1lGMc/7+939ORU1C0iszwSG2duOFqNBQ2meJUoY4MixiiKiCCGMMauZYJ00252uYIuRlsgKJRsDLE/VBIhu3B/knVmInpy/jnrpB71fX+/99uFO3KkrAfei/fh+Xx4eJ/nNZIoRtx9Vq6xCTs0hCTwHnmPJOQ9ya4u+PYHKkdumSKToCQURVvFRXBLUhRZV4oQbBO4aBOIYxTHBOlVyt6Y3brL+/8RWIesJdi3D8UxiWN5glfrYM8yQToN6+vI2v8U9JrZLGFTE+HLKcwLqwS72wmOGRKpFP7X35B1vTsKktev9ZD9o5epacJX1gga3iKofQ2lsmjiAXow2Vt773ZPKWMk4X5KVUhhWl6hF/j+5z5U2+IHZUcvQFCOnf4SNzD+tVrDi1KA9yJ2hYX6N+enjSTs9/Uz2tXcIPFkCiKoOw67Usg9Ri6PWxonLswjDN457PIUNrf4jpFEYcCc8I4vwgMfVSUaTiM7h7eP8S4HcQEUgUlgEtX4yJEfu0Zu7O5XJDljiouUv2r2+pih8v2n0uHzJ5F9hKJV5AsoXgMTEuWyzN3sj+0yPYcuq2/bI9a8rQxJjqz/Pjjo/7oPEtIG8hsgiyHk0Tf9ObdBRxH+xxTqTmvFVFQOu3wGGUAegwFtLhEhKy2faHjHMQKIpzrL6l7CmASKImwuiynbTVBeQ/kzzzbeuWhaSuu3/YWlwacrvGgPaw+Q/+USS6OjGQw/Vqb3vlu9v41k/UFyD+c6gTv/2kEcR62m6sWKhaHzLHw3eiVyHG7+WO/9OZHpmBz4bNauWdZX6dzesrR1Zj7l/Uwfk3fP8XppXhI/d1MzcobPb5ziXmn+b0pcjPW7AMpFAAAAAElFTkSuQmCC") !important; }

    deswegen hatte ich geschrieben

    das es auch ohne Stylish gehen müsste

    :-??

    da war ich wohl auf dem Holzweg

    uni

  • Standard-Favicon ändern

    • universum123
    • 30. September 2017 um 11:39

    hier ist mal ein vorschlag von

    Zitat von Endor


    Du kannst Favicons mit Stylish Code ändern.
    Du brauchst dazu die Erweiterung Stylish https://addons.mozilla.org/de/firefox/addon/stylish/

    dann kannst Du dort einen neuen Stil erstellen:

    für Favions von Lesezeichen müsste er so aussehen:

    CSS
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    .bookmark-item[label="hier Bezeichnung des Lesezeichens eingeben"] {
    list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKDSURBVDjLhZNfSN1lGMc/7+939ORU1C0iszwSG2duOFqNBQ2meJUoY4MixiiKiCCGMMauZYJ00252uYIuRlsgKJRsDLE/VBIhu3B/knVmInpy/jnrpB71fX+/99uFO3KkrAfei/fh+Xx4eJ/nNZIoRtx9Vq6xCTs0hCTwHnmPJOQ9ya4u+PYHKkdumSKToCQURVvFRXBLUhRZV4oQbBO4aBOIYxTHBOlVyt6Y3brL+/8RWIesJdi3D8UxiWN5glfrYM8yQToN6+vI2v8U9JrZLGFTE+HLKcwLqwS72wmOGRKpFP7X35B1vTsKktev9ZD9o5epacJX1gga3iKofQ2lsmjiAXow2Vt773ZPKWMk4X5KVUhhWl6hF/j+5z5U2+IHZUcvQFCOnf4SNzD+tVrDi1KA9yJ2hYX6N+enjSTs9/Uz2tXcIPFkCiKoOw67Usg9Ri6PWxonLswjDN457PIUNrf4jpFEYcCc8I4vwgMfVSUaTiM7h7eP8S4HcQEUgUlgEtX4yJEfu0Zu7O5XJDljiouUv2r2+pih8v2n0uHzJ5F9hKJV5AsoXgMTEuWyzN3sj+0yPYcuq2/bI9a8rQxJjqz/Pjjo/7oPEtIG8hsgiyHk0Tf9ObdBRxH+xxTqTmvFVFQOu3wGGUAegwFtLhEhKy2faHjHMQKIpzrL6l7CmASKImwuiynbTVBeQ/kzzzbeuWhaSuu3/YWlwacrvGgPaw+Q/+USS6OjGQw/Vqb3vlu9v41k/UFyD+c6gTv/2kEcR62m6sWKhaHzLHw3eiVyHG7+WO/9OZHpmBz4bNauWdZX6dzesrR1Zj7l/Uwfk3fP8XppXhI/d1MzcobPb5ziXmn+b0pcjPW7AMpFAAAAAElFTkSuQmCC") !important; }

    mit folgendem Code kann man auch Ordnern in der Lesezeichenleiste ein anderes Symbol verpassen:

    CSS
    .bookmark-item[label="Bezeichnung des Ordners"][container="true"]{
        list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABp0lEQVQ4ja2SvWojMRSFp9AjbJkyj5DH2TJVECmM2EIIF0FMEUQK4dJsYYYtgnFhRIowpFiMK7GFES6CcDWkMFMZMcUgcraYPzzZZZdlLxz0g853ry43Sf5HzLTCTCuoBwV1L6FSCZlKyDsBORUQnEF8YWAT2uiWgt5cg95cowfE9/h71SO1dzOtBoB5MmePQxX69cP+PcKszQBQ9xL+1SNvId3Dsbrs+ZNB8VZAPbQAeScQ6wj3Y4N8nQ2Q07m6zP7gEesImYoBEKoA9zKH/W7674RjcdaL5WMGf/AIpxKhCpDTFiA4a8pbEMTnzwjHAtkiQ6kJll8VssUc2WIOt3fwB4/yWCLWEYKzARCqAJ8SlJrAvixh1gaWE1hOUOwt3M5is93A7R3CaQRgE4pYR/iUIG5Fb7ScIL4uG8jBwe8d8ue8gVQBbEIHQKgC7JQgfvuEuJXn2mWwnKB8802vdg5u5wbATCuwCW0yrq4ayOoS8fGi6cvqsq+E3dJ+IvtJ7MLpqwHSqtTN2XKCXI8M4zCaooP0Pfhb86+ig/yTOUmSJOcXfzT/BPI1SrrBfMW4AAAAAElFTkSuQmCC") !important;
    -moz-image-region: rect(0px 16px 16px 0px) !important;}

    Der „Buchstabensalat“ nach url also der Teil zwischen den ( ) das ist ein Favicon in Base64 Code.

    Du kannst aber auch an Stelle des Base64 Codes, eine Datei verwenden: 16 x 16 Pixel
    dann einfach den Code-Teil zwischen den Klammern so ändern:

    Code
    ("file:///C:/Users/Benutzer/Icon/Favicon.gif")

    Logischer Weise musst Du obiges auf Deinen Ablageort, Speicherort, Bildbezeichnung anpassen

    Mfg.
    Endor

    Alles anzeigen

    ich nehme an das das auch ohne Stylish geht

    gruß uni

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

    • universum123
    • 29. September 2017 um 13:25

    Endor

    kein Problem

    uni

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

    • universum123
    • 29. September 2017 um 12:27

    Endor

    geht

    aber nur für die Titelleiste

    ich hätte es gern in der Menüleiste

    aber sonst :klasse:

    uni

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

    • universum123
    • 29. September 2017 um 12:21

    jep mach ich

    dauert ein klein bisschen

    uni

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

    • universum123
    • 29. September 2017 um 11:50

    [Blockierte Grafik: http://www.smilies.4-user.de/include/Schilder/smilie_m_010.gif]


    ich hab da was gefunden auf/in GitHub "setCurrentProfileNameToTitlebar.uc.js"


    [attachment=0]scr_profilenametitlebar.png[/attachment]

    Code
    // ==UserScript==
    // @name           setCurrentProfileNameToTitlebar
    // @namespace      http://space.geocities.yahoo.co.jp/gl/alice0775
    // @description    Profilbezeichnung in der Titelleiste angezeigen
    // @include        main
    // @compatibility  Firefox 19 - 38.*
    // @author         Alice0775
    // @version        2012/12/31 00:00 Bug 818800 Remove the global private browsing service
    // ==/UserScript==
    // @version        2015/06/06 fix
    // @version        2012/08/06 08:00 remove hack privatebrowsingUI
    // @version        2010/09/25 23:00 Bug 598221 - Page Title not shown in Title Bar on Session Restore
    // @version        2009/07/25 18:00 Bug 506437 -  The titlebar of a tear off window is not updated correctly after having detached a tab
    // @version        2008/03/06 15:00
    // @Note           Offizielle Win32 Version, Start und andere Profil-Optionen, bei Verwendung des Standardpfades.
    (function(){
      //Aktuelle Profilbezeichnung abrufen
      //auch wenn die Bezeichnung geändert wurde
      //(nsIToolkitProfileService)zum Arbeiten verwenden
      //Bootoptionen und Informationen der offizielle Win32 Version auslesen, bei Verwendung des Standardpfades.
      function getCurrentProfileName(){
        function readFile(aFile){
          var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream);    stream.init(aFile, 0x01, 0, 0);
          var cvstream = Cc["@mozilla.org/intl/converter-input-stream;1"].createInstance(Ci.nsIConverterInputStream);
          cvstream.init(stream, "UTF-8", 1024, Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
          var content = "", data = {};
          while (cvstream.readString(4096, data)) {
            content += data.value;
          }
          cvstream.close();
          return content.replace(/\r\n?/g, "\n");
        }
        var PrefD = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("PrefD", Components.interfaces.nsILocalFile);
        var ini = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("AppRegD", Components.interfaces.nsILocalFile);
    
    
        ini.append("profiles.ini");
        var ini = readFile(ini);
        var profiles = ini.match(/Name=.+/g);
        var profilesD = ini.match(/Path=.+/g);
        for ( var i = 0; i < profiles.length;i++) {
          if ((profilesD[i]+"$").indexOf(PrefD.leafName+"$") >= 0) {
            profiles[i].match(/Name=(.+)$/);
            return RegExp.$1;
          }
        }
        return null;
      }
    
    
    
    
      window.setCurrentProfileNameToTitlebar = function(){
        var profile = getCurrentProfileName();
        if (!profile) return;
        // Set the title modifer to include the build ID.
        var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
                                    .getService(Components.interfaces.nsIXULAppInfo);
        var appBuildID = appInfo.appBuildID;
    
    
        var mainWindow = document.getElementById("main-window");
    
    
        if ('gPrivateBrowsingUI' in window && gPrivateBrowsingUI.privateBrowsingEnabled)
          var originalName = mainWindow.getAttribute("title_privatebrowsing");
        else
          var originalName = mainWindow.getAttribute("title_normal");
    
    
        ["title_normal", "title_privatebrowsing", "titlemodifier", "titlemodifier_normal", "titlemodifier_privatebrowsing"].
        forEach(callback);
        function callback(attrname){
          var originalName = mainWindow.getAttribute(attrname);
          var titlemodifier = "[" + profile+ "] "  +originalName;// + " - " + appBuildID;
          // Set the new title modifier
          mainWindow.setAttribute(attrname, titlemodifier);
        }
    
    
        // Now set the title of the window
        // Bug 506437 -  The titlebar of a tear off window is not updated correctly after having detached a tab
        if ('gPrivateBrowsingUI' in window && gPrivateBrowsingUI.privateBrowsingEnabled)
          document.title = content.document.title + " - " + "[" + profile+ "] " + originalName;
        else
          document.title = document.title.replace(new RegExp(originalName+"$", ""), "[" + profile+ "] " + originalName);
      };
    
    
      if ('gPrivateBrowsingUI' in window &&
           typeof gPrivateBrowsingUI._privateBrowsingService == 'undefined')
        try {
          gPrivateBrowsingUI._privateBrowsingService = Cc["@mozilla.org/privatebrowsing;1"].
                                       getService(Ci.nsIPrivateBrowsingService);
        } catch(e){}
    
    
      setTimeout(function(){
        setCurrentProfileNameToTitlebar();
        //xxx Bug 598221
        gBrowser.updateTitlebar()
      }, 500);
    })();
    Alles anzeigen

    könnte das auch in Fx Nightly 58.0a1 gehen? (da mein Addon (Add-ons) dafür nicht mehr geht)

    vielleicht für die Menüleiste!?

    gruß Uni

    Bilder

    • scr_profilenametitlebar.png
      • 6,92 kB
      • 208 × 77
  • HLS.js error bei Streams!?

    • universum123
    • 29. September 2017 um 09:40

    kurze frage dazu

    benutzt du "Video Download Helper" ?

    der macht dat bei mir mit HSL-Streams (Adobe Flash Player benutze ich nicht mehr)

    ein Nachteil ist - im "Downloadmanager" wir das nicht angezeigt

    schon mal getestet?

    uni

  • Entwicklung Firefox

    • universum123
    • 29. September 2017 um 09:15

    so ein Update machen lassen

    "scheint" erst mal zu laufen

    schaun mer mal was da so noch kömmt

    uni

  • Entwicklung Firefox

    • universum123
    • 29. September 2017 um 09:04

    moin

    ich hab mal böswilliger Weise eine "alte" Version* (hatte ich noch) über die letzte gebügelt

    und siehe da

    allet wieder ok (will halt nur ständig ein Update machen)

    also Fehler bei Mozilla (nich bei Win oder mir :lol: )

    *Nightly-firefox-58.0a1.de.win64.installer2017.09.22 (so benenne ich meine nach dem herunter laden)

    mal sehe wenn ein funzionabeles update kömmt

    angenehmen Morgen noch

    uni

Unterstütze uns!

Jährlich (2025)

0 %

0% (0,00 von 650 EUR)

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