X
Tik hier voor de mobiele versie van de website.

Ondersteuningsforum

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

Remove "... - Visit" and "Search with ..." entries in location bar

Geplaatst

I would like the "... - Visit" and "Search with ..." entries not to show up when I type an address in location bar. So far, it was possible to do so by setting browser.urlbar.unifiedcomplete to false but this pref has been removed in Firefox 49 (https://bugzilla.mozilla.org/show_bug.cgi?id=1223728).

In Nightly 49.0a1, adding the following to userChrome.css works and hides the "Search" entry:

  #PopupAutoCompleteRichResult richlistitem[actiontype="searchengine"] {
  display: none;
  }
  .autocomplete-richlistbox { height: auto !important; }


The following works for "Visit" entry but after every Firefox restart, the first time I type an address, it shows zero items in the drop-down:

  #PopupAutoCompleteRichResult richlistitem[actiontype="visiturl"] {
  display: none;
  }
  .autocomplete-richlistbox { height: auto !important; }


If I add both these snippets to userChrome.css at the same time, none of them work. Both "Visit" and "Search" entries are still visible.

Is there any other way that works without any side-effects?

Thanks.

EDIT: code formatting.

I would like the "... - Visit" and "Search with ..." entries not to show up when I type an address in location bar. So far, it was possible to do so by setting browser.urlbar.unifiedcomplete to false but this pref has been removed in Firefox 49 (https://bugzilla.mozilla.org/show_bug.cgi?id=1223728). In Nightly 49.0a1, adding the following to userChrome.css works and hides the "Search" entry: #PopupAutoCompleteRichResult richlistitem[actiontype="searchengine"] { display: none; } .autocomplete-richlistbox { height: auto !important; } The following works for "Visit" entry but after every Firefox restart, the first time I type an address, it shows zero items in the drop-down: #PopupAutoCompleteRichResult richlistitem[actiontype="visiturl"] { display: none; } .autocomplete-richlistbox { height: auto !important; } If I add both these snippets to userChrome.css at the same time, none of them work. Both "Visit" and "Search" entries are still visible. Is there any other way that works without any side-effects? Thanks. EDIT: code formatting.

Bewerkt door dynamite op

Gekozen oplossing

Try this code in the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#PopupAutoCompleteRichResult .autocomplete-richlistbox {max-height:none!important;height:auto!important}
#PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="visiturl"]{display:none!important}
#PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="searchengine"]{display:none!important}

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

Dit antwoord in context lezen 3

Aanvullende systeemdetails

Geïnstalleerde plug-ins

  • Meeting Center
  • Meeting Center Installer Module

Toepassing

  • Useragent: Mozilla/5.0 (Windows NT 6.1; rv:46.0) Gecko/20100101 Firefox/46.0

Meer informatie

cor-el
  • Top 10 Contributor
  • Moderator
15185 oplossingen 137848 antwoorden

Gekozen oplossing

Try this code in the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#PopupAutoCompleteRichResult .autocomplete-richlistbox {max-height:none!important;height:auto!important}
#PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="visiturl"]{display:none!important}
#PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="searchengine"]{display:none!important}

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

Try this code in the <b>userChrome.css</b> file below the default @namespace line. *http://kb.mozillazine.org/userChrome.css ---- <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ #PopupAutoCompleteRichResult .autocomplete-richlistbox {max-height:none!important;height:auto!important} #PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="visiturl"]{display:none!important} #PopupAutoCompleteRichResult .autocomplete-richlistitem[actiontype="searchengine"]{display:none!important} </nowiki></pre> ---- The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder. *http://kb.mozillazine.org/Editing_configuration
jscher2000
  • Top 10 Contributor
6215 oplossingen 51159 antwoorden

May I selfishly ask someone to check whether this userstyle still works in Firefox 49 (you can click the Show CSS link to copy out the CSS rather than using Stylish):

https://userstyles.org/styles/122394/url-bar-tweaks-remove-visit-search-scroll-bar

This is the key part:

#PopupAutoCompleteRichResult richlistitem[type*="heuristic"] {
  display:none !important;
}
May I selfishly ask someone to check whether this userstyle still works in Firefox 49 (you can click the Show CSS link to copy out the CSS rather than using Stylish): https://userstyles.org/styles/122394/url-bar-tweaks-remove-visit-search-scroll-bar This is the key part: <pre> #PopupAutoCompleteRichResult richlistitem[type*="heuristic"] { display:none !important; } </pre>
cor-el
  • Top 10 Contributor
  • Moderator
15185 oplossingen 137848 antwoorden

Nuttig antwoord

It is still in the source code, but I do not know what steps you would need to get this item.

See:

It is still in the source code, but I do not know what steps you would need to get this item. See: *http://mxr.mozilla.org/mozilla-central/source/browser/base/content/urlbarBindings.xml#1559

Vraageigenaar

@cor-el Yes, your suggested CSS works. Thank you so much !

@jscher2000 Unfortunately, the CSS included in that userstyle no longer works. I tested with Nightly 49.0a1. In fact, I had tried this approach before posting the question.

@cor-el Yes, your suggested CSS works. Thank you so much ! @jscher2000 Unfortunately, the CSS included in that userstyle no longer works. I tested with Nightly 49.0a1. In fact, I had tried this approach before posting the question.