How to resize URL / Address bar

User Help for Mozilla Firefox
Post Reply
User avatar
ibewlu
Posts: 230
Joined: February 5th, 2012, 5:24 am

How to resize URL / Address bar

Post by ibewlu »

I am running Firefox 91.9.0esr and would like to know how to resize the URL / Address bar. I have found out how to resize the search bar with the following changes in about:config and using userChrome but setting #urlbar-container {max-width: 100px !important;} does not work:
=======================

browser.urlbar.disableExtendForTests = True
browser.urlbar.openViewOnFocus = False

1) Type about:config in the browser's address bar.
2) Confirm at the prompt that you will accept the risk and to view all.
3) Search for the following configuration preferences and set them all to FALSE (go slow):

browser.urlbar.openViewOnFocus = False
browser.urlbar.update1 = False
browser.urlbar.update1.interventions = False
browser.urlbar.update1.searchTips = False
browser.urlbar.update1.view.stripHttps = False

browser.urlbar.maxRichResults = 0 (Default = 10)
It would be better for him if a millstone were hung around his neck, and he were thrown into the sea, than that he should offend one of these little ones.
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: How to resize URL / Address bar

Post by BruceAWittmeier »

Your code works for me. I am using the "releases" build version 101.0b6

Code: Select all

#urlbar-container {max-width: 100px !important;}
You might try adding the word "input"

Code: Select all

#urlbar-input-container {max-width: 100px !important;}
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
User avatar
ibewlu
Posts: 230
Joined: February 5th, 2012, 5:24 am

Re: How to resize URL / Address bar

Post by ibewlu »

#urlbar-input-container {max-width: 100px !important;}
That resizes the interior of the bar where text is entered and the width of the bar remains the same.
It would be better for him if a millstone were hung around his neck, and he were thrown into the sea, than that he should offend one of these little ones.
User avatar
dickvl
Posts: 54146
Joined: July 18th, 2005, 3:25 am

Re: How to resize URL / Address bar

Post by dickvl »

Did you try the set the min-width as well at that width probably is much larger than the 100px you want for the max-width?

Code: Select all

#urlbar-input-container {
 min-width: 100px !important;
 max-width: 100px !important;
}
User avatar
ibewlu
Posts: 230
Joined: February 5th, 2012, 5:24 am

Re: How to resize URL / Address bar

Post by ibewlu »

Yes, I tried this, but it does not resize the width of the URL / Address bar. I have given this up because it has cause the the deactivation of the URL drop down list, I can live without it. Thanks to all for your help.
It would be better for him if a millstone were hung around his neck, and he were thrown into the sea, than that he should offend one of these little ones.
Post Reply