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. 2002Andreas

Beiträge von 2002Andreas

  • about:addons Button neben Suchfeld

    • 2002Andreas
    • 27. März 2026 um 11:13
    Zitat von Firefox_94.0.1

    Dieses Symbol hinter dem Suchfeld

    Teste bitte wenn du magst:

    Zeile 3 - 20 sind neu.

    Zeile 146 habe ich mal auskommentiert.

    CSS
    @-moz-document url(about:addons) {
    
    .button-background {
      &[type~="icon"]:not(.labelled), &:not(.labelled):has(img):hover {
        background: yellow !important;	
        }
    }
    
    .button-background {
      &[type~="ghost"]:hover {
        border: 2px solid #9c1818 !important;
       }
    }
    
    .button-background {
      &[type~="icon"]:not(.labelled), &:not(.labelled):has(img) {
        border: 2px solid #9c1818 !important;
        border-radius: 5px !important;
       }
    }
    
    
    /*Hintergrund gesamte Seite*/
    body {
     cursor: default;
     background-color: #ffd700 !important;
    }
    .main-search {
     background: #ffd700 !important;
     display: flex;
     justify-content: flex-end;
     align-items: center;
     padding-inline-start: 28px;
     padding-top: 20px;
     padding-bottom: 30px;
     max-width: var(--section-width);
    }
    .main-heading {
     background: #ffd700 !important;
     display: flex;
     margin-inline-start: var(--main-margin-start);
     padding-bottom: 16px;
     max-width: var(--section-width);
    }
    .sticky-container {
     background: #ffd700 !important;
     width: 100%;
     position: sticky;
     top: 0;
     z-index: var(--z-index-sticky-container);
    }
    
    /*Suchfeld*/
    #input {
     &[type="search"] {
       --input-background-icon: url(chrome://global/skin/icons/search-textbox.svg);
       padding-inline-end: var(--space-xxsmall);
       background-color: lightblue;
        background-color: #00016e !important;
        color: #afbde1 !important;
     }
    }
    /* search-addons > search-textbox {
     margin: 0;
     width: 20em;
     min-height: 32px;
     background-color: #00016e !important;
     color: #afbde1 !important;
    } 
    */
    /*Block nach recht verschieben*/
    .main-search {
        margin-left: 650px !important;
    }
    /*Überschriften*/
    h1 {
     margin: 0 0 8px;
     font-size: 1.46em;
     font-weight: 300;
     line-height: 1.3em;
     color: red !important;
     background-color: #00016e !important;
     border-radius: 15px !important;
     text-align: center !important;
     font-weight: bold !important;
     width: 350px !important;
    }
    /*Sidebar*/
    .navigation {
     overflow-x: hidden;
     overflow-y: auto;
     position: relative;
     background-color: #ffd700 !important;
    }
    #categories > .category[selected], #categories > .category.selected {  /* --> aktuelle Seite */
     color: #afbde1 !important;
    }
    #categories > .category {
     background-color: #9c1818 !important;
     color: #ffd700 !important;
     border-color: #9c1818 !important;
     border-radius: 30px !important;
     margin-bottom: 3px !important;
    }
    .sidebar-footer-link {
     background-color: #9c1818 !important;
     color: #ffd700 !important;
     border-color: #9c1818 !important;
     border-radius: 30px !important;
     margin-bottom: 3px !important;
    }
    #categories > .category:hover {
     background-color: #ffd700 !important;
     color: #9c1818 !important;
     border-color: #9c1818 !important;
     border-radius: 30px !important;
     margin-bottom: 3px !important;
    }
    .sidebar-footer-link:hover {
     background-color: #ffd700 !important;
     color: #9c1818 !important;
     border-color: #9c1818 !important;
     border-radius: 30px !important;
     margin-bottom: 3px !important;
    }
    /*Buttons / Verlinkungen*/
    
    .page-options-menu > .more-options-button {
     background-image: url("chrome://global/skin/icons/settings.svg");
     width: 32px;
     height: 32px;
     background-color: #9c1818 !important;
     color: #ffd700 !important;
    }
    .page-options-menu > .more-options-button:hover {
     background-image: url("chrome://global/skin/icons/settings.svg");
     width: 32px;
     height: 32px;
     background-color: #ffd700 !important;
     color: #9c1818 !important;
     border-color: #9c1818 !important;
    }
    button {
     font-weight: 600;
     color: #ffd700 !important;
     /* background-color: #9c1818 !important; */
    }
    button:hover {
     font-weight: 600;
     color: #9c1818 !important;
     background-color: #ffd700 !important;
     border-color: #9c1818 !important;
    }
    
    /*Einzelne Erweiterungen*/
    .addon.card {
     box-shadow: var(--card-shadow);
     background-color: #f0e68c !important;
     color: #00016e !important;
    }
    .addon.card:hover {
     box-shadow: #afbde1 !important;
     background-color: #f0e68c !important;
    }
    /*aktiviert_deaktiviert Schalter*/
    .toggle-button:hover {
     background: #9c1818 !important;
     border-color: transparent;
     border: none !important;
    }
    .toggle-button {
     background: #9c1818 !important;
     border-color: transparent;
     border: none !important;
    }
    /*Add-on Optionen Drop-down*/
    panel-list {
     font: menu;
     background-color: #9c1818 !important;
     color: #ffd700 !important;
    }
    addon-options > panel-list > panel-item:hover,
    plugin-options > panel-list > panel-item:hover {
    fill: #9c1818 !important;
     --in-content-button-background-hover: #ffd700 !important;
     --in-content-button-text-color-hover: #9c1818 !important;
    }
    
    /*Detailansicht*/
    input[type="radio"]:checked, .radio-check[selected] {
     -moz-context-properties: fill;
     fill: #ffd700 !important;
     color: var(--in-content-primary-button-text-color);
     background-color: #9c1818 !important;
     background-image: url("chrome://global/skin/icons/radio.svg");
     border-color: var(--in-content-primary-button-border-color);
     color-adjust: exact;
    }
    button.ghost-button:not(.semi-transparent):enabled {
     background-color: #9c1818 !important;
     color: #ffd700 !important;
     border-radius: 30px !important;
     border-color: #9c1818 !important;
    }
    button.ghost-button:not(.semi-transparent):enabled:hover {
     background-color: #ffd700 !important;
     color: #9c1818 !important;
     border-radius: 30px !important;
     border-color: #ffd700 !important;
    }
    }
    Alles anzeigen

    Zitat von Firefox_94.0.1

    und die Lupe im innern

    Dafür habe ich leider nichts gefunden, evtl. fällt einem anderen User ja etwas dazu ein.

  • Script: ShowSearchBarHistroryByClick.uc.js

    • 2002Andreas
    • 27. März 2026 um 10:10
    Zitat von Endor

    Funktioniert hier besten.

    Freut mich:)

  • Unsere Ferienhaus Homepage wird andauernd

    • 2002Andreas
    • 27. März 2026 um 10:08
    Zitat von Swedi

    Unsere Ferienhaus Homepage

    Meinst du diese Seite?

    Ferienhaus Smaland "Haus Lillesjö"

    Funktioniert hier einwandfrei dann.

    Das dient nur zum Testen, und ist keine Lösung des Problems!

    Versuch es bitte mal damit: Firefox im Fehlerbehebungsmodus starten

    Über: Hilfe..Fehlerbehebungsmodus ...

    oder die Umschalt/Option-Taste gedrückt halten und den Firefox starten.

    Aber Achtung, dann nicht auf den rechten Button zur Bereinigung klicken!

  • Script: ShowSearchBarHistroryByClick.uc.js

    • 2002Andreas
    • 27. März 2026 um 09:21
    Zitat von geldhuegel

    den Zeilenabstand in der Liste verringern

    Teste bitte mal:

    CSS
    .urlbarView-row-inner {
        padding-top: 0 !important;
    }
  • Suchleiste automatisch leeren

    • 2002Andreas
    • 27. März 2026 um 08:58
    Zitat von geldhuegel

    ein anderes für das Gleiche.

    Teste bitte:

    JavaScript
    //Suchfeld automatisch leeren
    //Autor @BrokenHeart
    //https://www.camp-firefox.de/forum/thema/140164-suchfeld-hellblau-und-leert-sich-nicht-mehr-scriptfehler/?postID=1284188#post1284188
    
    (function() {
    	if (!window.gBrowser)
    		return;
    
    	//Settings ---->
    	const waitingToClear = 8000; //Zeitangabe für Löschen der Eingabe: [Wert] in ms oder [0] kein automisches Löschen. 
    	//<--- Settings
    
    	function clearSearchbar() {
    		let searchbar = document.getElementById('searchbar-new');
    	
    		if(searchbar) {
    			let textbox = searchbar.inputField;
    			textbox.addEventListener("keydown", function(event) {
    				if( event.key == "Enter" ) {
    					setTimeout( function() {
    						textbox.value = '';         
    					},500);
    				}
    			});
    			
    			var idTimeOut;
    			if(waitingToClear > 0) {
    				textbox.addEventListener('input', function() {
    					
    					let urlbarGoButton = document.querySelector("#searchbar-new .urlbar-go-button");
    					
    					if(urlbarGoButton) {
    						urlbarGoButton.hidden = false;
    					}
    					
    					clearTimeout(idTimeOut);
    					idTimeOut = setTimeout(function() {
    						textbox.value = '';
    						textbox.dispatchEvent(new KeyboardEvent("keydown", { bubbles: true, cancelable: true, keyCode: 27, code: "Escape" })); 
    						setTimeout( function() {
    							textbox.dispatchEvent(new KeyboardEvent("keydown", { bubbles: true, cancelable: true, keyCode: 27, code: "Escape" })); 
    							if(urlbarGoButton) {
    								urlbarGoButton.hidden = true;
    							}
    						},100);
    					},waitingToClear);
    				});
    			}
    		}
    	}
    	setTimeout(clearSearchbar,1000); 
    })();
    Alles anzeigen
  • Symbole in den Kontextmenüs [ Update ]

    • 2002Andreas
    • 26. März 2026 um 22:26
    Zitat von Mira_Belle

    Schaut etwas besser aus, oder?

    Ich habe das mal für mich angepasst, sieht dann so aus:

    CSS
    /* Symbol einfügen, wenn Option inaktiv */
    #menu_pageStyleNoStyle:not([checked="true"])::before,
    #menu_pageStylePersistentOnly:not([checked="true"])::before {
    	content: url("chrome://global/skin/icons/settings.svg") !important;
        margin-right: -8px !important;
        margin-left: -5px !important;
        margin-top: 4px !important;
       
    }
    /* Symbol ausblenden, wenn Option aktiviert */
    #menu_pageStyleNoStyle[checked=""]::before,
    #menu_pageStylePersistentOnly[checked=""]::before {
        visibility: hidden !important;
    }
    
    #menu_pageStyleNoStyle > img,
    #menu_pageStylePersistentOnly > img {
        margin-left: -6px !important;
    }
    Alles anzeigen
  • Hintergrund Kontextmenü + Drop down Menüs in Menüleiste

    • 2002Andreas
    • 26. März 2026 um 22:18
    Zitat von Firefox_94.0.1

    Dropdown menüs in Menüleiste

    Meinst du das so, also nur in der Menüleiste?

    Wenn ja, dann teste bitte, Farben wenn dann anpassen:

    CSS
    /*3. Farbe Rechtsklickmenü + Dropdown menüs in Menüleiste*/
     #toolbar-menubar menupopup {
       --menuitem-hover-background-color: #2B2C86 !important;
       --panel-color: #fff !important;
       --menu-color: #fff !important;
       --menu-disabled-color: lightgrey !important;
       --panel-background: #000080 !important;
       --panel-border-color: #000080 !important;
       --panel-border-radius: 5px !important;
    }
    
    #toolbar-menubar menupopup :is(menu,menuitem):hover {
       color: red !important;
       background-color: lightblue !important;
    }
    Alles anzeigen
  • Symbole in den Kontextmenüs [ Update ]

    • 2002Andreas
    • 26. März 2026 um 19:56
    Zitat von Mira_Belle

    überlagert damit das Häkchen.

    Damit wird der Haken ausgeblendet:

    CSS
    #menu_pageStylePersistentOnly > img {
      visibility: hidden !important;
    }
  • Alter Zustand der Searchbar mit Anpassungen

    • 2002Andreas
    • 26. März 2026 um 19:47
    Zitat von Mr. Cutty

    das Script wird anscheinend komplett ignoriert.

    So sieht das hier damit aus.

    Rechts wird der kleine Pfeil angezeigt, nach Klick drauf öffnet sich Google.

  • Alter Zustand der Searchbar mit Anpassungen

    • 2002Andreas
    • 26. März 2026 um 19:35
    Zitat von Mr. Cutty

    Kommt doch als "uc.js" in das Chrome-Verzeichnis, oder?

    Ja.

  • Alter Zustand der Searchbar mit Anpassungen

    • 2002Andreas
    • 26. März 2026 um 19:10
    Zitat von Mr. Cutty

    hat aber in der neuen Searchbar nun keine Funktion bei einem leeren Feld.

    Richtig, das hat Mozilla geändert.

    Dafür braucht es jetzt ein Skript:

    Beitrag

    RE: allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    […]

    Teste dieses Skript bitte mal:

    (Quelltext, 167 Zeilen)

    2002Andreas
    26. März 2026 um 18:38

    Das erstellt dann auch dauerhaft die Anzeige von dem kleinen Pfeil.

    Zitat von Mr. Cutty

    dass ich keine andere Suchmaschine als Google eingestellt habe?

    Auch dann sieht das hier so aus:

  • allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    • 2002Andreas
    • 26. März 2026 um 19:05
    Zitat von Der Krause

    Das funktioniert.

    Sehr schön.:)

    Zitat von Der Krause

    wenn es das nicht mehr gibt

    K.A., ob der Autor das mal wieder so anpasst wie früher.

  • Alter Zustand der Searchbar mit Anpassungen

    • 2002Andreas
    • 26. März 2026 um 18:55
    Zitat von Mr. Cutty

    müsste nun der Globus oben in der Searchbar

    Den habe ich hier nicht:/

    Zitat von Mr. Cutty

    Der Pfeil im Feld sollte rechts dauerhaft angezeigt werden.

    CSS
    /* Pfeil in Searchbar dauerhaft anzeigen */
    
    #searchbar-new .urlbar-go-button {
      display: block !important;
    }
    Zitat von Mr. Cutty

    Suchlupe statt Uhr neben den angezeigten Suchergebnissen

    :/

  • allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    • 2002Andreas
    • 26. März 2026 um 18:38
    Zitat von Der Krause

    Kann ich das

    Teste dieses Skript bitte mal:

    JavaScript
    // ==UserScript==
    // @name           patchForBug1894910_allow_search_with_empty_text.uc.js
    // @description    undoing Bug 1894910 - Remove function to open search page from search bar with an empty search
    // @include        chrome://browser/content/browser.xhtml
    // @async          true
    // @compatibility  149
    // @version        2026/01/23 00:00 Bug 2000685 - Replace the search service instance with a singleton
    // @version        2025/12/20 00:00 new search widget
    // @version        2025/06/17 use openSearchForm instead of search with empty string
    // @version        2025/06/16 Bug 1968479 - Only allow eval (with system principal / in the parent) when an explicit pref is set
    // @version        2025/02/02  add @sandbox
    // @version        2024/06/4
    // ==/UserScript==
    (function() {
        const lazy = {};
        ChromeUtils.defineESModuleGetters(lazy, {
          SearchService: "moz-src:///toolkit/components/search/SearchService.sys.mjs",
        });
    
    if (Services.prefs.getBoolPref("browser.search.widget.new", false)) {
    
      let style = `
        #searchbar-new {
          .urlbar-go-button {
            display: flex !important;
    
            &:not(:hover) {
              opacity: 0.8;
            }
          }
        }
        `;
      let sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
      let uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(style));
      if(!sss.sheetRegistered(uri, sss.AGENT_SHEET))
        sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
    
      let searchbar = window.document.getElementById("searchbar-new");
      searchbar.inputField.addEventListener("keydown", 
           (event) => patchForBug1894910_allow_search_with_empty_text(event), false);
      searchbar.goButton.addEventListener("click", 
           (event) => patchForBug1894910_allow_search_with_empty_text(event), false);
           
      async function patchForBug1894910_allow_search_with_empty_text(event) {
        if (KeyboardEvent.isInstance(event) && event.keyCode !== KeyEvent.DOM_VK_RETURN)
          return
    
        let searchbar = window.document.getElementById("searchbar-new");
        if (searchbar.value != "")
          return;
    
        if (!event.originalTarget.classList.contains("urlbar-input") &&
            !event.originalTarget.classList.contains("urlbar-go-button"))
          return;
       
        let searchMode = searchbar.searchMode;
        let engine, label;
        if (!searchMode) {
          engine = await lazy.SearchService.getDefault();
        } else {
          label = searchMode.engineName;
          engine = await lazy.SearchService.getEngineByName(label);
        }
        let where = patchForBug1894910_whereToOpen(event);
        let url = engine.searchForm;
        window.openTrustedLinkIn(url, where);
      }
      function patchForBug1894910_whereToOpen(aEvent, aForceNewTab = false) {
          let where = "current";
          const newTabPref = Services.prefs.getBoolPref("browser.search.openintab");
    
          // Open ctrl/cmd clicks on one-off buttons in a new background tab.
          if (aEvent?.originalTarget.classList.contains("search-go-button")) {
            where = BrowserUtils.whereToOpenLink(aEvent, false, true);
            if (
              newTabPref &&
              !aEvent.altKey &&
              !aEvent.getModifierState("AltGraph") &&
              where == "current" &&
              !gBrowser.selectedTab.isEmpty
            ) {
              where = "tab";
              if (KeyboardEvent.isInstance(aEvent) && aEvent.ctrlKey ||
                  MouseEvent.isInstance(aEvent) && aEvent.button == 1)
                where = "tabshifted";
            }
          } else if (aForceNewTab) {
            where = "tab";
            if (Services.prefs.getBoolPref("browser.tabs.loadInBackground")) {
              params = {
                inBackground: true,
              };
            }
          } else {
            if (
              (KeyboardEvent.isInstance(aEvent) &&
                (aEvent.altKey || aEvent.getModifierState("AltGraph"))) ^
                newTabPref &&
              !gBrowser.selectedTab.isEmpty
            ) {
              where = "tab";
              if (aEvent.ctrlKey)
                where = "tabshifted";
            }
          }
    
          return where;
        }
    } else {
      let searchbar = document.getElementById('searchbar');
      searchbar.textbox.handleEnter  = function(event) {
          // Toggle the open state of the add-engine menu button if it's
          // selected.  We're using handleEnter for this instead of listening
          // for the command event because a command event isn't fired.
          if (
            this.textbox.selectedButton &&
            this.textbox.selectedButton.getAttribute("anonid") ==
              "addengine-menu-button"
          ) {
            this.textbox.selectedButton.open = !this.textbox.selectedButton.open;
            return true;
          }
          // Ignore blank search unless add search engine or
          // settings button is selected, see bugs 1894910 and 1903608.
          if (
            !this.textbox.value &&
            !(
              this.textbox.selectedButton?.getAttribute("id") ==
                "searchbar-anon-search-settings" ||
              this.textbox.selectedButton?.classList.contains(
                "searchbar-engine-one-off-add-engine"
              )
            )
          ) {
            if (true) {
              let engine = this.textbox.selectedButton?.engine;
              let { where, params } = this._whereToOpen(event);
              this.openSearchFormWhere(event, engine, where, params);
            }
            return true;
          }
          // Otherwise, "call super": do what the autocomplete binding's
          // handleEnter implementation does.
          return this.textbox.mController.handleEnter(false, event || null);
        }.bind(searchbar);
    }
    })();
    
    /*
    (function() {
      const lazy = {};
      ChromeUtils.defineESModuleGetters(lazy, {
       UrlbarSearchUtils: "moz-src:///browser/components/urlbar/UrlbarSearchUtils.sys.mjs",
      });
    
      gURLBar.textbox.addEventListener("keydown", function(event) {
        if (event.keyCode != KeyEvent.DOM_VK_RETURN || gURLBar.inputField.value != "")
          return;
          
        let engine = lazy.UrlbarSearchUtils.getDefaultEngine(PrivateBrowsingUtils.isWindowPrivate(window));
        let where = BrowserUtils.whereToOpenLink(event, false, false);
        let searchForm = engine.searchForm;
    
        openTrustedLinkIn(searchForm, where, {});
      });
    })();
    */
    Alles anzeigen
  • allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    • 2002Andreas
    • 26. März 2026 um 18:00
    Zitat von Der Krause

    Sorry, damit kann ich leider nichts anfangen

    Durch das Skript wird der Pfeil extra erstellt, bzw. dauerhaft angezeigt.

    Im Beispiel ab Zeile 22

  • allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    • 2002Andreas
    • 26. März 2026 um 17:55
    Zitat von Der Krause

    Bei mir ist zunächst kein Pfeil

    Dann stimmt etwas bei dir nicht:/

    Der Pfeil wird durch das Skript erstellt:


    Zitat von Der Krause

    er benutzt das Skript auch

    Ich auch;)

  • Script: ShowSearchBarHistroryByClick.uc.js

    • 2002Andreas
    • 26. März 2026 um 16:23
    Zitat von Boersenfeger

    finde ich schon merkwürdig.

    Du meinst, ihm dürfte kein Schreibfehler passieren:/

  • Script: ShowSearchBarHistroryByClick.uc.js

    • 2002Andreas
    • 26. März 2026 um 14:34
    Zitat von FuchsFan

    Das war (ist) das Problem.

    Ihr immer mit euren Basteleien am Firefox:saint:

  • allow_search_oneoff_with_empty_text.uc.js funkioniert seit FF 148 nicht mehr

    • 2002Andreas
    • 26. März 2026 um 14:28
    Zitat von Der Krause

    So war es bisher.-

    Jetzt musst du zusätzlich auf den kleinen Pfeil in der Suchleiste klicken.

    Ob der Autor das mal wieder ändert, bin ich überfragt.

  • Script: ShowSearchBarHistroryByClick.uc.js

    • 2002Andreas
    • 26. März 2026 um 13:56
    Zitat von FuchsFan

    Auf true gestellt

    wer oder was hatte es denn auf false gestellt:/

Unterstütze uns!

Jährlich (2026)

35,3 %

35,3% (273,24 von 775 EUR)

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