Toggling visibility of the URL bar and tabs via the bookmarks toolbar visibility setting [SOLVED]

tl:dr Here's the CSS to put in userChrome.css file. This is the "hides everything" option. See toward the end of this post for others. navigator-toolbox:has(#PersonalT… (மேலும் படிக்க)

tl:dr Here's the CSS to put in userChrome.css file. This is the "hides everything" option. See toward the end of this post for others.

  1. navigator-toolbox:has(#PersonalToolbar[collapsed="true"]) {
 visibility: collapse;

}


+++

I was looking for a way to hide the nav bar and ran across this older forum topic (https://support.mozilla.org/en-US/questions/1288181).

The solution shown here seems to be non-functional these days (early 2024), but it gets us in the right direction, so below is the code for us to look at.

  1. main-window[chromehidden*="toolbar"] #nav-bar {
 visibility: collapse;

}

This is CSS, meant to be copied into a text document, itself placed in a folder called "chrome" that you'll need to create in your browser's active profile folder. Per step 6 in the instructions (https://www.userchrome.org/how-create-userchrome-css.html) linked by @jscher2000 in the above-linked forum topic, you'll also need to set toolkit.legacyUserProfileCustomizations.stylesheets to "true" in about:config. If you don't know what about:config is, this is a good example to get started, but I'm not going to explain it here.

This CSS code selects the object with ID #main-window, with an HTML attribute "chromehidden" equal to "toolbar", and sets its CSS property "visibility" to "collapse". Apparently Mozila have changed the way they implement toolbar hiding, as this no longer works — this chromehidden attribute is nowhere to be found in the HTML that drives the Firefox interface, not sure if that's the place to look for it, but I think so. Anyway, we need to dig around in this interface HTML ourselves to see what changes when hiding the bookmarks toolbar, so we can adapt a new method to what's going on in the browser now.

To do so, we open a window within a window (chrome://browser/content/browser.xhtml) and run the inspector via Web Developer Tools. Comparing the HTML we see here with the bookmarks toolbar in each state (I used BBEdit to compare the texts), we see that the object with ID #PersonalToolbar experiences a change in its "collapsed" attribute when we hide/show the bookmarks toolbar. So in our CSS code, we shift our strategy to update the "collapse" CSS property for #navigator-toolbox whenever it contains a #PersonalToolbar object with its own "collapsed" attribute set to "true", which occurs whenever we hide the bookmarks toolbar. Somewhat surprisingly, this approach of updating the CSS property seems to auto-reset on its own when the "collapsed" attribute is set back to "false", which occurs when we show the bookmarks toolbar again. In other words, it simply toggles with the visibility setting of the bookmarks toolbar, and we don't have to write any further code.

If you're interested in hiding some other UI element when hiding the bookmarks toolbar, you can modify this code to do stuff like that (but to go beyond the below examples you'll need to suss out the object IDs, CSS properties, and HTML attributes — and maybe more, depending on what you're trying to do — on your own).

But for convenience, here's an example that hides just the tabs:

  1. navigator-toolbox:has(#PersonalToolbar[collapsed="true"]) #titlebar {
 visibility: collapse;

}


Here's one that hides just the URL bar:

  1. navigator-toolbox:has(#PersonalToolbar[collapsed="true"]) #nav-bar {
 visibility: collapse;

}


Since those are the only other two things in the #navigator-toolbox to be hidden, I suppose that means we now have all options on the table (at least the way I have the browser set up). Enjoy!

Asked by firefox.anon8f8 6 மணி நேரத்திற்கு முன்பு

Last reply by firefox.anon8f8 2 மணி நேரத்திற்கு முன்பு

Address Bar Search Suggestions

Concerning "Dismissed Suggestions"> Restore Suggestions. The "Restore" button (circled in image) is greyed out & will not do anything when clicked. This behaves … (மேலும் படிக்க)

Concerning "Dismissed Suggestions"> Restore Suggestions. The "Restore" button (circled in image) is greyed out & will not do anything when clicked. This behaves same in normal as well as private browsing windows. Thank you

Asked by Tom_798 4 மணி நேரத்திற்கு முன்பு

Twitter X Ad Blocker add on update

Hello, I've chatted with the creators of the add on "Twitter X Ad Blocker" and asked why it isn't working any more. They told me they have an update made and ready but yo… (மேலும் படிக்க)

Hello, I've chatted with the creators of the add on "Twitter X Ad Blocker" and asked why it isn't working any more. They told me they have an update made and ready but you have not approved it yet. What will it take to get you to approve the update so this will work again?

Thanks, Tracy

Asked by tracyjarchow 1 நாள் முன்பு

Last reply by tracyjarchow 11 மணி நேரத்திற்கு முன்பு

repeated asking for firefox to be default browser. why doesn't it stick?

My system repeated asks if I want Firefox to be my default browser. Equally as many times I have indicated yes but why doesn't it stick? Running Win10 latest update. Plea… (மேலும் படிக்க)

My system repeated asks if I want Firefox to be my default browser. Equally as many times I have indicated yes but why doesn't it stick? Running Win10 latest update. Please help me get rid of this annoyance.

Asked by Cor Massar 13 மணி நேரத்திற்கு முன்பு

How to Disable the Privacy / Incognity Window

Hello! My name is Anya. I am desperately trying to manage my social media addiction and to help support that I am wondering if its possible to disable the privacy window.… (மேலும் படிக்க)

Hello! My name is Anya. I am desperately trying to manage my social media addiction and to help support that I am wondering if its possible to disable the privacy window. I know I can install a website blocker - which I have, but it does not apply to the private window so I have full access to social media on it, I just have to log in. I want to COMPLETELY block Facebook and Instagram off of my laptop. Is this possible? Thank you!

Asked by anya.cherepanova131018 1 நாள் முன்பு

Last reply by cor-el 17 மணி நேரத்திற்கு முன்பு

MacOS Sonoma - Emoji keyboard shortcut does not work

Hi there, Using the shortcut Ctrl + Cmd + Space is suppose to open the Emoji panel, however it disappear instantly. I have already heard that this could happen if you d… (மேலும் படிக்க)

Hi there,

Using the shortcut Ctrl + Cmd + Space is suppose to open the Emoji panel, however it disappear instantly.

I have already heard that this could happen if you download FF in a specific language and then change it to another language (https://bugzilla.mozilla.org/show_bug.cgi?id=1563862). I have deinstalled everything and reinstalled without changing the language, and it still don't work properly.

I'm a swiss french user, so my keyboard is configured for "French - Swiss" and Firefox is in French.

Does some of you still have this issue? Thanks a lot for your help

Asked by thierry.krummenacher 17 மணி நேரத்திற்கு முன்பு

default search engines in search bar missing stuff

i'm missing some of the default search engines in the bar ebay and amazon. i hit the button "restore default search engines" in setting to try and fix it no luck. only gi… (மேலும் படிக்க)

i'm missing some of the default search engines in the bar ebay and amazon. i hit the button "restore default search engines" in setting to try and fix it no luck. only give me back wikipedia, bing, duckduckgo but not amazon and ebay two sites i visit a lot.

this been happening to me for the past year and every time i had to go in the c drive and delete the mozilla folders and reinstall firefox to get them back. then use it after a month or two later they disappeared for no reason. this only happens on my desktop and not my laptop how do i make this stop happening?

Asked by olddudy 1 நாள் முன்பு

Can I change sort order of selection options

I'm an instructor that uses Blackboard at college. When I click in the text entry box to enter my grades, I'm given a list of previously entered grades to choose from. T… (மேலும் படிக்க)

I'm an instructor that uses Blackboard at college. When I click in the text entry box to enter my grades, I'm given a list of previously entered grades to choose from. The list is in ascending order. Is there any way to get this list in descending order? One other point, until recently it used to display the value that was used most often at the top, which was often 100. Now it's in ascending order. I've attached a snippet of what I mean.

Asked by apple07840 1 நாள் முன்பு

Last reply by apple07840 1 நாள் முன்பு

  • தீர்வுற்றது

Language Pack didn't apply properly

After applied Chinese Language Pack, the menu didn't change ,even after restart firefox or the system. I tried refresh firefox and re-install the language pack, the same … (மேலும் படிக்க)

After applied Chinese Language Pack, the menu didn't change ,even after restart firefox or the system. I tried refresh firefox and re-install the language pack, the same situation appeared.

Asked by Copyerder 1 நாள் முன்பு

Answered by Paul 1 நாள் முன்பு

Check spelling is enabled but won't work on FB and Instagram desktop sites

On firefox 126.0 (64-bit) the option for spelling check is enabled, but will not appear on the context menu box when right clicked. This happens for the desktop sites of … (மேலும் படிக்க)

On firefox 126.0 (64-bit) the option for spelling check is enabled, but will not appear on the context menu box when right clicked. This happens for the desktop sites of Facebook and Instagram.

Asked by ghand_aurealis 1 நாள் முன்பு

Last reply by ghand_aurealis 1 நாள் முன்பு

No "restore previous session" option and no previous tabs opening upon startup

Greetings, I have happily used Firefox for a very very long time and all has been well until the last month or so. I have a brand new laptop with Windows 11 Pro and Fir… (மேலும் படிக்க)

Greetings,

I have happily used Firefox for a very very long time and all has been well until the last month or so.

I have a brand new laptop with Windows 11 Pro and Firefox 126.

Each time I open the machine to begin a new day and open Firefox, all my tabs are gone from the previous session; this is not good for my research, studies, and business activities. I have read a lot about this issue online and (1) find that under Settings, History, there is no "restore previous session" option; and (2) I have several times already cleared the "sessionstore" folder and copied the files for later reuse.

Further, "Open previous windows and tabs" is checked off; always has been. I have checked other relevant settings and they all seem fine; but to no avail.

What would you suggest?

Thanks, Donald Sanders

Asked by dsanders102 1 நாள் முன்பு

UI broke: url bar is not accessible HELP!

the suggestions menu suddenly started covering the url bar. any ideas how to fix that? it just happened overnight. I changed absolutely nothing.

Asked by YOTAM GUTTMAN 2 நாட்கள் முன்பு

Last reply by YOTAM GUTTMAN 1 நாள் முன்பு

Browser Settings Problem

The Dismissed Suggestions > the "Restore" button (circled on the attachment) is not working (grayed out). It behaves the same in normal and private browsing. What co… (மேலும் படிக்க)

The Dismissed Suggestions > the "Restore" button (circled on the attachment) is not working (grayed out). It behaves the same in normal and private browsing. What could be the problem? Thank you

Asked by Tom_798 2 நாட்கள் முன்பு

Some of my add-on shortcuts have disappeared from the toolbar

Some of my add-on shortcuts have disappeared from the toolbar. I have tried all of the suggestions on your help site. If I go to the add-ons page, it says they are still … (மேலும் படிக்க)

Some of my add-on shortcuts have disappeared from the toolbar. I have tried all of the suggestions on your help site. If I go to the add-ons page, it says they are still there, but they don't show up in my browser.

Asked by Gary Brown 3 நாட்கள் முன்பு

Last reply by cor-el 3 நாட்கள் முன்பு

Double click to close tab

REinstalled my windows and firefox obviously as well but now the option to close the tab by double click is not working any idea how to fix it? using version 126

Asked by Red Heat 4 நாட்கள் முன்பு

Last reply by cor-el 3 நாட்கள் முன்பு

Firefox only microphone problem -- enabled for site but doesn't work

Thanks in advance for any insight or suggestions. My preferred browser is Firefox. In Chrome, I can easily use a voice search from www.google.com. In Firefox, the perm… (மேலும் படிக்க)

Thanks in advance for any insight or suggestions. My preferred browser is Firefox. In Chrome, I can easily use a voice search from www.google.com. In Firefox, the permissions show my preferred mic as enabled and selected for that webpage -- but no sound is detected. (Using Firefox. mic works fine at https://www.onlinemictest.com.)

(BTW, speaker output is Realtek motherboard audio and mic input is a Shure X2U USB interface. This mic works just fine in zoom, whereby, audition, etc. as well as working google.com using chrome)

Have worked through various settings in the SOUND panel and SITE PERMISSIONS with no luck.

Any ideas about this problem -- or what other settings to trouble shoot?

Thanks!

Asked by mschubb1 4 நாட்கள் முன்பு

Can't find a way to add a Home icon to my Firefox home page

For the first time in several PCs, I can't find out how to add a Home icon to my address bar! I've been through all the settings, etc, to no avail. Please help!

Asked by Rachel Ophoff 4 நாட்கள் முன்பு

Last reply by cor-el 4 நாட்கள் முன்பு