Removing URL/Search from Toolbar

Discussion of features in Mozilla Firefox
Post Reply
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Removing URL/Search from Toolbar

Post by BuzWeaver »

I've recently purchased a new PC and after loading Firefox 89.0, the Search/URL field is taking up 20% of my BookMarks Toolbar. I've Google quite some time and searched the forums, but have not found a solution that will remove Search/URL field.

Image
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

Try this:

* right click a toolbar
* click the Customize Toolbar menu item
* drag the Search toolbar item to the content area
* click the Done button

Customize Firefox controls, buttons and toolbars
http://support.mozilla.org/kb/customize ... d-toolbars
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

That was one of the first things I tired. Doesn't work, sadly. I wish it was that easy.
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

You can reduce the width of the urlbar.

Code: Select all

/* Firefox userChrome.css */

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

#urlbar-container {
  max-width: 400px !important;
}
http://kb.mozillazine.org/UserChrome.css

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets preference to true, then restart.

Similar thread
http://support.mozilla.org/questions/952811
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

That's not very intuitive. I've created the User folder and downloaded the Zip file and placed it in the User folder. Now what?
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

Yep. Did all that and changed the argument and the search is still there and or the same size.
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

Sorry, I don't know what's wrong.

Here is a screenshot. Top pic is default. Bottom pic is styled.

Screenshot
http://imgur.com/a/HuYLKLo

Firefox 89.0 using default proton style
Windows 10 Pro 20H2 32-bit

Try testing another rule to see if the userChrome.css file is working correctly.

Code: Select all

* { background-color: orange !important; }
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

Thank you Morat. I've done this process before and recognized the outline by Jscher, but the search bar doesn't look any smaller than the original image.

In this image the red bar area should have been opened up, allowing for additional bookmarks, but the search bar is still the same size. I seem to remember there being a series of code to put into the Chrome folder. A different set than what you get with the Zip file to make the Chrome folder.

Image
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

Try this:

Code: Select all

#urlbar-container {
  min-width: 150px !important;
  max-width: 150px !important;
}
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

morat wrote:Try this:

Code: Select all

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

Perfect! Worked. I really appreciate your patience and diligence. It's appreciated.
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

You're welcome.
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

morat wrote:You're welcome.

If you want a little bit of a Friday chuckle, after you helped me out so amazingly, the Address Bar actually cut off so much that when I was on a YouTube video I wasn't able to see the Bookmark star or remove a Bookmark star. I went in and changed the argument to 130 down from 150 and now its working like a charm, heh.
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Removing URL/Search from Toolbar

Post by morat »

Maybe hide the page action buttons to give more space.

How to remove the reading view button?
http://support.mozilla.org/questions/1225124
User avatar
BuzWeaver
Posts: 135
Joined: November 14th, 2007, 9:11 am
Location: Atlanta GA USA
Contact:

Re: Removing URL/Search from Toolbar

Post by BuzWeaver »

morat wrote:Maybe hide the page action buttons to give more space.

How to remove the reading view button?
http://support.mozilla.org/questions/1225124
This was interesting. I had to refresh to fix another issue and after doing the refresh the annoying search field bar in the toolbar is now gone. My Firefox UI is back the way I wanted it. interesting.
Post Reply