MozillaZine


Removing URL/Search from Toolbar

Discussion of features in Mozilla Firefox
BuzWeaver

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

Post Posted June 14th, 2021, 7:48 pm

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: 4863
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 15th, 2021, 1:16 am

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

BuzWeaver

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

Post Posted June 15th, 2021, 8:57 am

That was one of the first things I tired. Doesn't work, sadly. I wish it was that easy.

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

Post Posted June 15th, 2021, 10:06 am

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

BuzWeaver

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

Post Posted June 15th, 2021, 1:09 pm

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: 4863
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 15th, 2021, 2:13 pm


BuzWeaver

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

Post Posted June 15th, 2021, 3:55 pm

Yep. Did all that and changed the argument and the search is still there and or the same size.

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

Post Posted June 15th, 2021, 7:00 pm

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; }

BuzWeaver

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

Post Posted June 15th, 2021, 8:04 pm

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: 4863
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 16th, 2021, 4:58 am

Try this:

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

BuzWeaver

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

Post Posted June 16th, 2021, 4:47 pm

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: 4863
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 17th, 2021, 4:59 am

You're welcome.

BuzWeaver

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

Post Posted June 18th, 2021, 2:57 pm

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: 4863
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 18th, 2021, 3:21 pm

Maybe hide the page action buttons to give more space.

How to remove the reading view button?
http://support.mozilla.org/questions/1225124

BuzWeaver

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

Post Posted August 17th, 2021, 7:55 pm

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.

Return to Firefox Features


Who is online

Users browsing this forum: No registered users and 3 guests