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

  • Würde gerne den "Kreis" in einem Grün haben wollen und das "X" in Rot.
    Und wenn das "X" dann auch noch FETT wäre,

    Alternativ zum ersten: jizz hat die beiden Symbole in das Skript eingebettet, und zwar als base64-kodierte SVG. Die könntest Du dir anpassen.

    Ich Dummerchen. Klar, so müsste es gehen! Habe ich ja auch bei anderen Skripten so gemacht.
    Nur das mit dem Fett, mal schauen. Danke.

    Mit <3lichem Gruß

    Mira

  • Hallo Mira_Belle .

    Der Autor hat das Script nochmals aktualisiert.
    Hier meine übersetzte Version.
    Habe die Farbe der Symbole wie gewünscht geändert.
    Neuladen grün, Stop rot. Fett habe ich aber nicht hinbekommen.
    Hier das neue Script:

    Teste mal ob das so passt.
    Vielleicht hat ja jemand eine Idee wie man das Symbol auch noch fett kriegt.

    SVG Stop.svg:

    Code
    <!-- This Source Code Form is subject to the terms of the Mozilla Public
       - License, v. 2.0. If a copy of the MPL was not distributed with this
       - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="#d90000" fill-opacity="1.0">
      <path d="m9.108 7.776 4.709-4.709a.626.626 0 0 0-.884-.885L8.244 6.871l-.488 0-4.689-4.688a.625.625 0 1 0-.884.885L6.87 7.754l0 .491-4.687 4.687a.626.626 0 0 0 .884.885L7.754 9.13l.491 0 4.687 4.687a.627.627 0 0 0 .885 0 .626.626 0 0 0 0-.885L9.108 8.223l0-.447z"/>
    </svg>

    SVG Reload.svg:

    Code
    <!-- This Source Code Form is subject to the terms of the Mozilla Public
       - License, v. 2.0. If a copy of the MPL was not distributed with this
       - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="#008c00" fill-opacity="1.0">
      <path d="M10.707 6 14.7 6l.3-.3 0-3.993a.5.5 0 0 0-.854-.354l-1.459 1.459A6.95 6.95 0 0 0 8 1C4.141 1 1 4.141 1 8s3.141 7 7 7a6.97 6.97 0 0 0 6.968-6.322.626.626 0 0 0-.562-.682.635.635 0 0 0-.682.562A5.726 5.726 0 0 1 8 13.75c-3.171 0-5.75-2.579-5.75-5.75S4.829 2.25 8 2.25a5.71 5.71 0 0 1 3.805 1.445l-1.451 1.451a.5.5 0 0 0 .353.854z"/>
    </svg>

    Mfg.
    Endor

    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0.2
    OS: Windows 10 pro 64 bit und Windows 10 Home 64 bit
    Meine Scripte Sammlung: https://github.com/Endor8/userChrome.js
    Kein Support per PN. Fragen bitte im Forum stellen!

  • Teste mal ob das so passt.
    Vielleicht hat ja jemand eine Idee wie man das Symbol auch noch fett kriegt.

    Man könnte stroke hinzufügen, evtl. sowas:

    Code
    <!-- This Source Code Form is subject to the terms of the Mozilla Public
       - License, v. 2.0. If a copy of the MPL was not distributed with this
       - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="#d90000" fill-opacity="1.0" stroke="#d90000" stroke-width="1">
      <path d="m9.108 7.776 4.709-4.709a.626.626 0 0 0-.884-.885L8.244 6.871l-.488 0-4.689-4.688a.625.625 0 1 0-.884.885L6.87 7.754l0 .491-4.687 4.687a.626.626 0 0 0 .884.885L7.754 9.13l.491 0 4.687 4.687a.627.627 0 0 0 .885 0 .626.626 0 0 0 0-.885L9.108 8.223l0-.447z"/>
    </svg>

    Den stroke-width Wert kann man dann anpassen nach Gusto.

    Einmal editiert, zuletzt von Horstmann (29. April 2024 um 14:16)

  • So, bin wieder im Thema. ;)

    Habe mir die Symbole in der Farbe, sowie in der "Dicke" angepasst.

    SVG Reload.svg:

    CSS
    <!-- This Source Code Form is subject to the terms of the Mozilla Public
       - License, v. 2.0. If a copy of the MPL was not distributed with this
       - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="#00FF00" fill-opacity="1.0">
      <path d="M15 1a1 1 0 0 0-1 1v2.418A6.995 6.995 0 1 0 8 15a6.954 6.954 0 0 0 4.95-2.05 1 1 0 0 0-1.414-1.414A5.019 5.019 0 1 1 12.549 6H10a1 1 0 0 0 0 2h5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z"/>
    </svg>

    SVG Stop.svg:

    CSS
    <!-- This Source Code Form is subject to the terms of the Mozilla Public
       - License, v. 2.0. If a copy of the MPL was not distributed with this
       - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="#ff0000" fill-opacity="1.0" stroke="#d90000" stroke-width="2">
      <path d="m9.108 7.776 4.709-4.709a.626.626 0 0 0-.884-.885L8.244 6.871l-.488 0-4.689-4.688a.625.625 0 1 0-.884.885L6.87 7.754l0 .491-4.687 4.687a.626.626 0 0 0 .884.885L7.754 9.13l.491 0 4.687 4.687a.627.627 0 0 0 .885 0 .626.626 0 0 0 0-.885L9.108 8.223l0-.447z"/>
    </svg>

    Mit <3lichem Gruß

    Mira

    Einmal editiert, zuletzt von Mira_Belle (29. April 2024 um 16:27)

  • Hallo Horstmann
    Vielen Dank, das funktioniert prima.
    :thumbup::thumbup:

    Mira_Belle du hast ja für dich schon eine Lösung gefunden.
    Für alle Fälle hier noch meine Version mit der Änderung von Horstmann.

    Vielleicht kannst Du das ja noch brauchen.
    Viele Grüße
    Endor

    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0.2
    OS: Windows 10 pro 64 bit und Windows 10 Home 64 bit
    Meine Scripte Sammlung: https://github.com/Endor8/userChrome.js
    Kein Support per PN. Fragen bitte im Forum stellen!

    Einmal editiert, zuletzt von Endor (29. April 2024 um 16:46) aus folgendem Grund: Überflüssige Zeilen entfernt.

  • Im Script extras_config_menu.uc.js habe ich zum Aufruf der Browser-Werkzeuge das eingetragen, was im aktuellen Nightly so nicht mehr funktioniert.

    Code
    {label:'Browser-Werkzeuge', command:"var { require } = Cu.import('resource://devtools/shared/loader/Loader.jsm', {});\
                          var { BrowserToolboxLauncher } = require('resource://devtools/client/framework/browser-toolbox/Launcher.jsm');\
                          BrowserToolboxLauncher.init();",
            },


    Was muss da geändert werden?


    Grüße vom FuchsFan

  • Was muss da geändert werden?

    Teste bitte mal:

    Code
    {label:'Browser-Werkzeuge', command:"var { require } = Cu.import('resource://devtools/shared/loader/Loader.sys.mjs', {});\
        var { BrowserToolboxLauncher } = require('resource://devtools/client/framework/browser-toolbox/Launcher.sys.mjs');\
        BrowserToolboxLauncher.init();",
            },
  • este bitte mal:

    Sei gegrüßt, Andreas! :)

    Das hatte ich so auch schon probiert, wollte aber nicht. Das Entscheidende war dann diese zusätzliche Änderung in der ersten Zeile:

    Code
    {label:'Browser-Werkzeuge', command:"var { require } = ChromeUtils.importESModule('resource://devtools/shared/loader/Loader.sys.mjs', {});\


    Danke, für deine Mitwirkung. :thumbup:

    Grüße vom FuchsFan

  • firefox126hint: TypeError : reloadTab.getAttribute(...) is null

    Please help me fix it

        location.href.startsWith('chrome://browser/content/browser.x') && (() => {
           const reloadTab = document.getElementById('context_reloadTab');
           if(!reloadTab) return;
           const menuitem = document.createXULElement('menuitem');
           menuitem.setAttribute('accesskey', 'A');
           menuitem.setAttribute('label', reloadTab.getAttribute('label')
               .startsWith('Reload') ? 'Reload All Tabs' : '刷新所有标签页'
           );
           menuitem.addEventListener('command', () => {
               gBrowser.visibleTabs.forEach(tab => {
                   try {
                       gBrowser.getBrowserForTab(tab).reload();
                   } catch (e) {}
               });
           });
           reloadTab.after(menuitem);
       })();

  • Moin Zusammen,

    bookmarks_backup_restore_buttons.uc.js UserScript funktioniert nicht mit Firefox 126.0b9 Version aber mit Firefox 115.10.0 ESR funktioniert.

    Kann jemand bitte helfen?

    Vielen Dank

    Mfg

    Einmal editiert, zuletzt von sam2008 (8. Mai 2024 um 09:26)