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

Beiträge von Mitleser

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 9. Dezember 2025 um 15:17
    Zitat von Horstmann

    Das Scroll Feature funktioniert bei mir am Mac leider nicht.

    Hast du das in einem neuen Profil (ohne andere Toolbars) getestet? Mein Verdacht: Doppelte Nutzung der id #vert_toolbox. Und dort top: mit !important;. Dann kann das js toolbox.style.top = curPos + 'px'; das css nicht überschreiben. Sonst habe ich auch keine Lsg. parat.

    JavaScript
    #vert_toolbox {
            position: fixed !important;
            display: flex !important;
            top: ${isPosV};
            transform: translateY(-${isPosV});
            height: fit-content !important;
            width: fit-content !important;
            z-index: 6516516511 !important;
        }
  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 7. Dezember 2025 um 17:50

    FuchsFan DANKESCHÖN für das Testen! Das beruhigt mich dann ja schoneinmal ein wenig...

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 7. Dezember 2025 um 17:36

    Horstmann, wiedereinmal DANKE fürs Testen!

    Hier (Linux mit neuem Firefoxprofil) läuft es. Vielleicht funzt es ja unter Windows auch nicht? Das kann ich leider auch nicht testen.

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 5. Dezember 2025 um 21:01

    Update am 2025-12-05: Neue Version (Die vertikale Position der Leiste kann jetzt gescrollt werden).

  • Seitennavigation - Fly Out Menü

    • Mitleser
    • 5. Dezember 2025 um 19:18

    Update von 00_FlyVertToolbarWithButton_lite.uc.js vom 2025-12-05 gibt es jetzt (und für zukünftige Versionen nur noch) in Beitrag #1 in diesem Thema:
    Schaltbare vertikale Overlay-Zusatzleiste !

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 4. Dezember 2025 um 23:51
    Zitat von Mira_Belle

    Also Schwamm drüber, ja?

    Ja gerne, entschuldige bitte meine Aussage:

    Zitat

    Das ist doch wiedermal Schrott; niemand braucht das!

    Ich war einfach nur genervt von äußeren Umständen; Sorry! Das ist bestimmt kein Grund so überzureagieren.

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 4. Dezember 2025 um 21:05

    Danke! Habe ich geändert!

    Zitat

    Du bist Dir sicher, dass Deine Leiste "gebraucht" wird?

    Siehe

    Beitrag

    RE: Seitennavigation - Fly Out Menü

    Horstmann , die Idee deiner 'Toggle newtoolbar 7D' fand ich gut und habe diese jetzt endlich (nach einem Jahr) für mich umgesetzt und angepasst. Wenn du mal schauen mochtest:

    (Versteckter Text)

    (Versteckter Text)

    EDIT: 2025-12-05: NEUE VERSIONEN ERSCHEINEN IN ZUKUNFT IN BEITRAG #1 IN DIESEM THEMA:
    Schaltbare vertikale Overlay-Zusatzleiste !



    (Quelltext, 334 Zeilen)

    Mitleser
    2. Juni 2025 um 18:37

    ...Downloads

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 4. Dezember 2025 um 20:34

    Mira_Belle DANKE !

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 28. November 2025 um 21:38

    Ich meinte: Wenn du einen Eintrag im Kontextmenü beeinflussen möchtest solltest du ihn ersteinmal selber erstellen, nur dann kanst du diesen auch buttonbezogen abrufen. (das kann funktionieren, muss aber nicht => Theorie)

    Ich habe bis jetzt! auch keine Lsg. gefunden. Viel Glück...

    Funzt merkwürdigerweise auch nicht:

    JavaScript
    //contextmenu
    const xyz = document.getElementById("test_button_id");
    xyz.addEventListener('contextmenu', () => {
         if (event.button === 2) {
          blabla();
      }
    });
    function blabla () {
    const abc = document.getElementById("toolbar-context-menu");
    const def = abc.querySelector(".customize-context-removeFromToolbar");
        def.style.outline = "2px solid orange";
    }
    Alles anzeigen

    Kann ja auch nicht, denn in der Funktion 'blabla' fehlt ja irgendwie auch der Bezug zur ID des Buttons...

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 28. November 2025 um 19:20
    Zitat von Horstmann

    Dein JS Code ist etwas zu fortgeschritten für mein Vermögen; was reduziert bei dir den Rechtsklick auf den Button - preventDefault ?

    Search - mozsearch

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 28. November 2025 um 18:25

    Horstmann Du fragst eine bestehende Klasse, die für alle Kontextmenüs gilt ab und veränderst diese. Ich denke, dass eine zusätzliche Klasse mit der ID des Kontextmenüs zuerst generiert werden müsste (.classList.add); um sie dann per querySelector beeinflussen zu können. Schematisches Beispiel:

    JavaScript
    //contextmenu
    const abc = document.getElementById("Kontextmenü").classList.add('NeueKlasse');
    document.getElementById("test_button_id").addEventListener('contextmenu', e => {
         if (event.button === 2) {
        let contexter = abc.querySelector("NeueKlasse");
        contexter.style.outline = "2px solid orange";
      }
    });
  • Eigene Zusatzleisten

    • Mitleser
    • 19. November 2025 um 15:23
    Zitat von FuchsFan

    Dann wandert er in das Überhangmenü.

    Ist bei LINUX nicht so und der Button wird lediglich verkleinert und wandert eben nicht in das Überhangmenü; deshalb die Frage ob das auf dem MAC ebenso ist.
    Zur Sicherheit sollte man also das: button.style.minWidth = 'fit-content'; lieber nicht löschen!

    Zitat von FuchsFan

    Bitte eine Erklärung, wenn ich die Link-Adresse(siehe Bild oben) zu meinem Installationsordner eingebe, so erscheint dieses Fenster, und nicht der Win-Explorer.

    Kannn ich nicht beantworten, da LINUX.

    DANKE fürs testen!:thumbup:

  • Eigene Zusatzleisten

    • Mitleser
    • 19. November 2025 um 13:09
    Zitat von Horstmann

    Prima Vorlage!

    So war das gedacht! Feel free to change anything! Hier wäre ich allerdings vorsichtig:

    Zitat von Horstmann

    //minWidth: 'fit-content',

    Was passiert mit dem Button beim Verkleinern des Fensters?

  • Eigene Zusatzleisten

    • Mitleser
    • 19. November 2025 um 00:36
    Zitat von Horstmann

    Vorschläge willkommen

    Ich nutze meist dies:

    CustomizableUI Module — Firefox Source Docs documentation

    oder auch das (leider keine Quelle):

    Code
    Create a widget
    
    To create a widget, you should pass an object with its desired
    properties. The following properties are supported:
    
    - id:    the ID of the widget (required).
    
    - type:  a string indicating the type of widget. Possible types are:
    
    'button' - for simple button widgets (the default)
    
    'view'   - for buttons that open a panel or subview,
               depending on where they are placed.
    
    'button-and-view' - A combination of 'button' and 'view',
               which looks different depending on whether it's
               located in the toolbar or in the panel: When
               located in the toolbar, the widget is shown as
               a combined item of a button and a dropmarker
               button. The button triggers the command and the
               dropmarker button opens the view. When located
               in the panel, shown as one item which opens the
               view, and the button command cannot be
               triggered separately.
    
    'custom' - for fine-grained control over the creation
               of the widget.
    
    - viewId:        Only useful for views and button-and-view widgets (and required there): the id of the <panelview> that should be
    shown when clicking the widget.  If used with a custom
    widget, the widget must also provide a toolbaritem where
    the first child is the view button.
    
    - onBuild(aDoc): Only useful for custom widgets (and required there); a function that will be invoked with the document in which
    to build a widget. Should return the DOM node that has
    been constructed.
    
    - onBeforeCreated(aDoc): Attached to all non-custom widgets; a function that will be invoked before the widget gets a DOM node
    constructed, passing the document in which that will happen.
    This is useful especially for 'view' type widgets that need
    to construct their views on the fly (e.g. from bootstrapped
    add-ons). If the function returns `false`, the widget will
    not be created.
    
    - onCreated(aNode): Attached to all widgets; a function that will be invoked whenever the widget has a DOM node constructed, passing the
    constructed node as an argument.
    
    - onDestroyed(aDoc): Attached to all non-custom widgets; a function that will be invoked after the widget has a DOM node destroyed,
    passing the document from which it was removed. This is
    useful especially for 'view' type widgets that need to
    cleanup after views that were constructed on the fly.
    
    - onBeforeCommand(aEvt, aNode): A function that will be invoked when the user activates the button but before the command
            is evaluated. Useful if code needs to run to
            change the button's icon in preparation to the
            pending command action. Called for any type that
            supports the handler.  The command type, either
            "view" or "command", may be returned to force the
            action that will occur.  View will open the panel
            and command will result in calling onCommand.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    - onCommand(aEvt): Useful for custom, button and button-and-view widgets; a
      function that will be invoked when the user activates
      the button. A custom widget with a view should
      return "view" or "command" to continue processing
      the command per the needs of the widget.
    
    - onClick(aEvt): Attached to all widgets; a function that will be invoked
    when the user clicks the widget.
    
    - onViewShowing(aEvt): Only useful for views and button-and-view widgets; a
    function that will be invoked when a user shows your view.
    If any event handler calls aEvt.preventDefault(), the view
    will not be shown.
    ----------------------------------------
    The event's `detail` property is an object with an
    `addBlocker` method. Handlers which need to
    perform asynchronous operations before the view is
    shown may pass this method a Promise, which will
    prevent the view from showing until it resolves.
    Additionally, if the promise resolves to the exact
    value `false`, the view will not be shown.
    
    - onViewHiding(aEvt): Only useful for views; a function that will be
    invoked when a user hides your view.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    - l10nId:        fluent string identifier to use for localizing attributes on the widget. If present, preferred over the label/tooltiptext.
    
    - tooltiptext:   string to use for the tooltip of the widget
    
    - label:         string to use for the label of the widget
    
    - localized:     If true, or undefined, attempt to retrieve the
    widget's string properties from the customizable
    widgets string bundle.
    
    - removable:     whether the widget is removable (optional, default: true)
    NB: if you specify false here, you must provide a defaultArea, too.
    
    - overflows:     whether widget can overflow when in an overflowable
    toolbar (optional, default: true)
    
    - defaultArea:   default area to add the widget to
    (optional, default: none; required if non-removable)
    
    - shortcutId:    id of an element that has a shortcut for this widget
    (optional, default: null). This is only used to display
    the shortcut as part of the tooltip for builtin widgets
    (which have strings inside
    customizableWidgets.properties). If you're in an add-on,
    you should not set this property.
    If l10nId is provided, the resulting shortcut is passed
    as the "$shortcut" variable to the fluent message.
    
    - showInPrivateBrowsing: whether to show the widget in private browsing mode (optional, default: true)
    
    - hideInNonPrivateBrowsing: whether to hide the widget in non private browsing mode windows (optional, default: false)
    
    - tabSpecific: If true, closes the panel if the tab changes.
    
    - locationSpecific: If true, closes the panel if the location changes.
    This is similar to tabSpecific, but also if the location changes in the same tab, we may want to close the panel.
    
    - webExtension: Set to true if this widget is being created on behalf of an extension.
    --------------------------------------------------
    
    @param aProperties the specifications for the widget.
    
    @return a wrapper around the created widget (see getWidget)
    Alles anzeigen

    Ein Beispiel eines einfachen widgets vom typ button wäre (besteht auch den Elchtest) :

    JavaScript
    // JavaScript Document
    // B_LinkFedia.uc.js
    
    // Das Script erstellt einen Button, der einen Link auf eine Website (fedia.io/m/FirefoxCSS) ausführt. So kann auch bei ausgeblendeter Lesezeichenleiste auf die Seite schnell zugegriffen werden.
    
    
    (function() {
      if (!window.gBrowser)
    	return;
    const
    // ■■ START UserConfiguration ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
             id = 'link-button-fedia', // Id des Buttons
           link = 'fedia.io/m/FirefoxCSS', // Linkziel des Buttons
          label = 'Quicklink: Fedia', // Bezeichnung des Buttons
    tooltiptext = 'Quicklink:\nfedia.io/m/FirefoxCSS',
    // Icon-------------------------------------------------------
           icon = '16-Fedia_Logo.svg',  // [Name.Dateiendung] des Symbols
       iconPath = '/chrome/icons/', // Pfad zum Ordner der das Icon beinhaltet
    // ■■ END UserConfiguration ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
     curProfDir = PathUtils.toFileURI(PathUtils.join(PathUtils.profileDir));
    
    	if (Services.prefs.getBoolPref('svg.context-properties.content.enabled') == false) {
    		Services.prefs.setBoolPref('svg.context-properties.content.enabled', true );
    	}
    //BUTTON
    	try {
    CustomizableUI.createWidget({
        id: id,
        defaultArea: CustomizableUI.AREA_NAVBAR,
        label: label,
        tooltiptext: tooltiptext,
    
        onCreated: (button) => {
    		button.style.MozContextProperties = 'fill, stroke, fill-opacity';
    		button.style.listStyleImage = 'url("' + curProfDir + iconPath + icon + '")';
    		button.style.minWidth = 'fit-content';
    	}
    });
    	} catch(e) {};
    
    const button = document.getElementById(id);
    //click
    button.addEventListener('click', () => {
    	if (event.button === 0) {
           	 event.target.ownerGlobal.openTrustedLinkIn(link, "tab");
    	}
    });
    
    })();
    Alles anzeigen

    Dateien

    16-Fedia_Logo.svg 1,78 kB – 41 Downloads
  • Eigene Zusatzleisten

    • Mitleser
    • 18. November 2025 um 14:52
    Zitat von Horstmann

    Linux aussieht

  • Eigene Zusatzleisten

    • Mitleser
    • 17. November 2025 um 21:19
    Zitat von Mira_Belle

    wenn ich die Leiste komplett "aus" habe,
    den FF neu starte ist eine Leise, ohne Funktion zu sehen

    Kann ein Linuxuser nicht bestätigen.

  • Eigene Zusatzleisten

    • Mitleser
    • 17. November 2025 um 21:03
    Zitat von Horstmann

    vielleicht testen noch ein paar andere User


    Ich habe das Script aus #116 in einem neuen Profil auf Linux getestet. Läuft ohne Probleme!:thumbup: Auch mit sämtlichen firefoxeigenen Sitebars.:thumbup:
    Die Bedienung ist für mich etwas 'gewöhnungsbedürftig' aber das ist ja wohl so gewollt.

  • Was lest Ihr gerade?

    • Mitleser
    • 17. November 2025 um 20:39

    Ich bin gerade über diesen Artikel in der 'taz' gestolpert:

    Mozilla-Chef über Allianzen gegen Big Tech, KI und die Zukunft von Firefox
    Geht Künstliche Intelligenz unabhängig von Großkonzernen? Ja, sagt Mark Surman, Chef der Mozilla Foundation, vor dem Digitalgipfel am Dienstag in Berlin.
    taz.de
  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 12. November 2025 um 14:56
    Zitat von FuchsFan

    aber das sind nicht die einzelnen Button

    Irrtum meinerseits, ich dachte der Rahmen wäre nur um die einzelnen Buttons. Das war auf dem Screen leider nicht ersichtlich.

  • Schaltbare vertikale Overlay-Zusatzleiste

    • Mitleser
    • 12. November 2025 um 13:02
    Zitat von FuchsFan

    Gefällt mir auch

    Freut mich und Danke fürs Testen!
    Für Buttons, die in der Breite von den Standardbuttons abweichen kann in der '■UserConfiguration TOOLBAR■'  --vt-toolbar-min-width: 32px; /*Leistenbreite bei mouseout*/ angepasst werden. Dann würde auch der rechte Rand des Buttons sichtbar sein.

Unterstütze uns!

Jährlich (2026)

32,8 %

32,8% (213,31 von 650 EUR)

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