顯示下列標籤的問題: 顯示所有問題

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!

firefox.anon8f8 於 18 小時前 詢問

firefox.anon8f8 最近回覆於 14 小時前

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

Tom_798 於 16 小時前 詢問

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.

Cor Massar 於 1 天前 詢問

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

thierry.krummenacher 於 1 天前 詢問

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?

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.

apple07840 於 1 天前 詢問

apple07840 最近回覆於 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.

ghand_aurealis 於 2 天前 詢問

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

dsanders102 於 2 天前 詢問

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

Tom_798 於 2 天前 詢問

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!

mschubb1 於 4 天前 詢問

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, … (閱讀更多)

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

tracyjarchow 於 4 天前 詢問

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… (閱讀更多)

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).

goodbot 於 5 天前 詢問

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… (閱讀更多)

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,

anotherthing 於 5 天前 詢問

Translate Icon and Menu Item do not appear?

I was browsing a webpage that turned out to be in Portuguese, and I was looking for how to translate it, but the internet indicated that Firefox has built in transation! … (閱讀更多)

I was browsing a webpage that turned out to be in Portuguese, and I was looking for how to translate it, but the internet indicated that Firefox has built in transation! However, neither the Translate Toolbar Icon nor the Translate menu option appear, even if I visit a site that absolutely should be translatable (https://fr.wikipedia.org/wiki/Mozilla_Firefox)

Additionally, if I go to Settings -> General, there is a Translations section, but if I click the Settings button, there are no languages in any of the boxes and no option to add any.

I am on Firefox 126.0 for Windows.

Here are the things I have tried:

  • Restarting Firefox
  • Rebooting my PC
  • Disabling all my extensions
  • Running Firefox in Troubleshooting Mode
  • Clearing my Startup Cache
  • Performing a "Refresh Firefox"
  • Toggling and Untoggling browser.translations.enable and browser.translations.automaticallyPopup

Does anyone have any suggestions of something I could have missed?

Mike Pureka 於 1 週前 詢問

Mike Pureka 最近回覆於 6 天前