Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

how to avoid the graying of most of the url in the location bar?

  • 7 réponses
  • 2 ont ce problème
  • 5 vues
  • Dernière réponse par cor-el

more options

In the location bar (aka url bar aka address bar), the base domain name ("example.com") is displayed as normal text, whereas everything else in the url is displayed in gray. For example, if the displayed url is https://foo.example.com/bar, the "https://foo." and "/bar" are in gray.

Is it possible to get the whole url displayed as normal text, i.e., black, and avoid this "graying out" of some of it?

In my searches so far, I've found various other customizations for the location bar via userChrome.css, but not this one. Any help appreciated.

I'm using firefox 91.8.0esr (64-bit) as currently packaged for centos7 (x86_64), though presumably this is not system-dependent.

In the location bar (aka url bar aka address bar), the base domain name ("example.com") is displayed as normal text, whereas everything else in the url is displayed in gray. For example, if the displayed url is https://foo.example.com/bar, the "https://foo." and "/bar" are in gray. Is it possible to get the whole url displayed as normal text, i.e., black, and avoid this "graying out" of some of it? In my searches so far, I've found various other customizations for the location bar via userChrome.css, but not this one. Any help appreciated. I'm using firefox 91.8.0esr (64-bit) as currently packaged for centos7 (x86_64), though presumably this is not system-dependent.

Solution choisie

Yeah, put browser.urlbar.formatting.enabled in the search field of about:config, make sure boolean is selected below and click the + button on the right side to add it. Then make sure it's set to false.

Looks like they might have removed that preference but you can still add it and it will work. I just now tried toggling it.

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (7)

more options

Start Firefox using Troubleshoot(Safe) Mode {web link}

A small dialog should appear. Click Start In Troubleshoot(Safe) Mode (not Refresh). Is the problem still there?


Hello,

In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see How do I create a screenshot of my problem?

Once you've done this, attach the saved screenshot file to your forum post by clicking the Browse... button below the Post your reply box. This will help us to visualize the problem.

Note: If you have problems when uploading the image to this forum, you can use imgur. com or a similar image host if the image appears to hang on upload, then add a link to the image. However, this may delay a response if the external link needs review by a moderator.

Thank you!

more options

1) Certainly it still happens in safe mode. The graying-out of the url except for the base domain name is intended behavior of firefox (from what I can gather from the bugzilla and forums), not a "problem" per se.

2) Screenshot attached of my safe mode startup. (I chopped off some of the page content due to this forum's size limit.) The "centos.org" appears at the regular text weight, while "https://www." is in light gray.

Thanks, Karl

more options

Trying going to about:config and set browser.urlbar.formatting.enabled to false. It should be solid black text. Still working in FF 100.

more options

Thanks for replying, but browser.urlbar.formatting.enabled does not show up in my about:config. No match (for any browser.urlbar.f*). Thus I assumed it had been disappeared. Do I need to somehow set the preference manually? Thanks again.

more options

Solution choisie

Yeah, put browser.urlbar.formatting.enabled in the search field of about:config, make sure boolean is selected below and click the + button on the right side to add it. Then make sure it's set to false.

Looks like they might have removed that preference but you can still add it and it will work. I just now tried toggling it.

more options

It works! Thank you so much!

more options

The browser.urlbar.formatting.enabled.formatting.enabled preference is still supported if I check the source code (got removed from about:config as part of bug 1643639). Some docs that describe various browser.urlbar prefs.


You can paste browser.urlbar.formatting.enabled in the search bar and select the Boolean radio button and click the '+' icon to this pref as a new Boolean pref and set its value to false.