Showing questions tagged: Show all questions

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… (read more)

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 1 day ago

Last reply by firefox.anon8f8 20 hours ago

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 … (read more)

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 22 hours ago

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… (read more)

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 1 day ago

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… (read more)

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 1 day ago

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… (read more)

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 day ago

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… (read more)

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 2 days ago

Last reply by apple07840 1 day ago

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 … (read more)

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 2 days ago

Last reply by ghand_aurealis 2 days ago

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… (read more)

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 2 days ago

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… (read more)

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 days ago

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… (read more)

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 days ago

Approve Twitter X Ad Blocker add on update

Please approve the update to Twitter X Ad Blocker. I've chatted with AldAstra Labs the creator and they have an update but are waiting on Firefox to approve it. Thanks, … (read more)

Please approve the update to Twitter X Ad Blocker. I've chatted with AldAstra Labs the creator and they have an update but are waiting on Firefox to approve it.

Thanks, Tracy

Asked by tracyjarchow 5 days ago

FF 126.0 Disables Win11 lower taskbar popup.

I'm on Win11. The recent releases of FF seem to have disabled my ability (while in FF) to bring my mouse to the lower area of my screen to have the Win11 lower task bar a… (read more)

I'm on Win11. The recent releases of FF seem to have disabled my ability (while in FF) to bring my mouse to the lower area of my screen to have the Win11 lower task bar appear. In order to get here, I have to shrink FF via it's upper right hand shrink button, then in the Win11 home screen bring my mouse pointer down to the lower screen area to popup that task bar. Gemini suggests there's a compatibility setting related to issues with high res screens that FF has... but I can't find this switch/setting... maybe Gemini is hallucinating about this. (Curiously, Gemini insists that this is not a FF issue... despite the fact that it's the only app on my PC having this issue).

Asked by goodbot 5 days ago

Disable shortcut or reasign it - Moves the URL left or right

Hey, Is it possible to disable a specific shortcut or change its assigned other keys? I wanted to disable the "Moves the URL left or right". It turns out that this func… (read more)

Hey,

Is it possible to disable a specific shortcut or change its assigned other keys?

I wanted to disable the "Moves the URL left or right". It turns out that this functionality won't be useful to me, but this shortcut is the one that I use the most :/

https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly

Thanks,

Asked by anotherthing 6 days ago