為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

how can i adjust the size of the address bar on the new firefox

  • 10 回覆
  • 6 有這個問題
  • 5 次檢視
  • 最近回覆由 DigitalBlade

more options

on the old firefox you could adjust the size of the address bar by adding spaces from the customization menu.

on the new firefox i cannot find the "SPACES" customization option in the customization menu.

on the old firefox you could adjust the size of the address bar by adding spaces from the customization menu. on the new firefox i cannot find the "SPACES" customization option in the customization menu.

所有回覆 (10)

more options

Sorry, the Spaces and Separators are gone from the default User Interface.

If you place the cursor between the Location Bar and the Search Bar, and move it slightly until the the double-head arrow appears, you can drag the Location Bar smaller and the Search Bar larger.

more options

since i do not use the google search bar and have removed it from the header your solution does not apply to my problem.

more options

Take a look at this extension - https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer - which restores those Spaces, among many other "retro" type UI elements.


Or you can set the size of the "container" via CSS rules. Use code like this in userChrome.css to set a max-width for those bars:

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

#urlbar-container { max-width: 400px !important; }
 

http://kb.mozillazine.org/UserChrome.css

more options

Note if there are other elements on the Navigation Toolbar that have a flex attribute like the search bar that they will automatically take empty space.

Do you have a specific reason that you want to shorten the location/address bar?

You can still change the relative size of the location bar and the search bar by placing the mouse between the two bars if they are next to each other and drag the resizer icon with the left mouse button pressed.

more options

i want to shorten the address bar just for looks,so i can see my theme. don't need an address bar a mile long.

don't use the google search bar so it is no longer on my header

more options

You can make some modification with code in the userChrome.css to have some transparency on the URL bar and possibly increase the height of the navigator toolbox.

Add code to the userChrome.css file below the default @namespace line.


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

#navigator-toolbox {min-height:200px!important}

#urlbar {opacity: 0.5!important}
#urlbar:hover {opacity: 0.8!important}
#urlbar[focused="true"] {opacity: 1!important}

#searchbar .searchbar-textbox {opacity: 0.5!important}
#searchbar .searchbar-textbox:hover {opacity: 0.8!important}
#searchbar .searchbar-textbox[focused="true"] {opacity: 1!important}

#tabbrowser-tabs tab:hover .tab-content {background-color:#ddd!important}

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

You can use this button to go to the currently used Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userChrome.css file in the editor window
  • Make sure that the userChrome.css file starts with the default @namespace line
  • Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css. Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

由 cor-el 於 修改

more options

are you people nuts??? i don't want to take a chance on screwing up my computer by changing all these codes. i just want a simple way to put spaces in my header to make the address bar very small so i can enjoy my theme.---- like i used to be able to do with previous versions on firefox.

more options

You will have to use the above mentioned Classic Theme Restorer extension to have a space item in the Customize palette like posted above. Current Firefox versions no longer have this possibility.

more options

i installed classic theme restorer and it does what i want as far as changing the size of the location bar.

but it does not save the changes, as soon i close out firefox and reopen it , it has reverted back to the way it was before i made my changes.

how do i get classic theme restorer to save my changes?

more options

I switched to Pale Moon, a FF derivative that will NEVER incorporate Australis and features the old UI and customizations. www.palemoon.org

Without wanting to belittle or diminish the contribution of this forums supporters, the constant "try classicthemerestorer" and css codes tips are missing the point.

While it is good for us more experienced users to know and use these(though I'm weary of too many add-ons), the problem and fact of the matter is:

Firefox is a castrated version of its former self and we all need to make the devs painfully aware of what an epic facepalm it is to introduce a quote: "more customizable" version featuring less customization than previous iterations...

(leaving the UI completely aside, they should not have removed those functionalities/customizations we all loved and that set FF aside from the others !!)

由 DigitalBlade 於 修改