Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

Version 89: I need to remove "minimize, maximize, close" buttons when Firefox is maximized

  • 7 odgovora
  • 1 ima ovaj problem
  • 4 prikaza
  • Posljednji odgovor od cor-el

more options

I'm using Ubuntu 21.04, with Firefox Version 89.0.1

I like my window control buttons to the left, and I prefer them on the top bar. In Version 89.0.1, I'm now stuck with two sets of window control buttons.

https://support.mozilla.org/en-US/questions/906698

So that was asked 9 years ago, and I tried adding those lines to my userChrome.css in the chrome folder of my profile directory. Sadly, that solution no longer works in Version 89.

See the attached image for my userChrome.css file, and how ridiculous it looks with two sets of window controls.

Please help me remove the minimize, maximize and close buttons when I maximize my firefox window.

I'm using Ubuntu 21.04, with Firefox Version 89.0.1 I like my window control buttons to the left, and I prefer them on the top bar. In Version 89.0.1, I'm now stuck with two sets of window control buttons. https://support.mozilla.org/en-US/questions/906698 So that was asked 9 years ago, and I tried adding those lines to my userChrome.css in the chrome folder of my profile directory. Sadly, that solution no longer works in Version 89. See the attached image for my userChrome.css file, and how ridiculous it looks with two sets of window controls. Please help me remove the minimize, maximize and close buttons when I maximize my firefox window.
Priložene slike ekrana

Svi odgovori (7)

more options

There are two containers for these buttons and #window-controls only apples to full screen mode. In normal or maximized mode you likely need to hide the other container.

#TabsToolbar .titlebar-buttonbox-container {display: none !important;}
#TabsToolbar #window-controls              {display: none !important;}

You can use the Browser Toolbox to check which selector to use.

more options

I tried adding those two lines, although the window-controls are still here.

I also used browser toolbox to see if I can identify the name for that container, and there is only one thing that's at the same position, called the tooltip.

So right now I have these lines in my userChrome.css

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

  1. autohide-context { display:none!important; } /* hide context menuitem "Exit Full Screen Mode" */
  2. window-controls { display:none!important; } /* hide window controls in full screen mode */
  3. TabsToolbar .titlebar-buttonbox-container { display:none!important; }
  4. TabsToolbar #window-controls { display:none!important; }
  5. tooltip #window-control { display:none!important; }

and it is still the same. I still can't get those windows buttons to go away.

more options

Does Firefox use your userChrome.css ?

Some test code:

.urlbar-input-box, .findbar-textbox {font-size: 12pt!important; font-family: "DejaVu Sans Mono"}

more options

Is that line supposed to change the font and font size of my findbar?

If that's the case, does this mean my firefox isn't using my userChrome.css?

more options

Ok, I didn't know I need to toggle toolkit.legacyUserProfileCustomizations.stylesheets in about:config

Now it's loading my userChrome.css, and the Windows controls are gone when I maximize my window, however, there's a weird spacing before my first tab.

more options

I am able to remove the spacing with this line:

#TabsToolbar .titlebar-spacer              { display:none!important; }

Now if only I can get them to only perform these lines when maximized...

I've tried

:root[sizemode="maximized"] #TabToolbar .titlebar-buttonbox-container { display:none!important;  }

and

#main-window[sizemode="maximized"] #TabToolbar .titlebar-buttonbox-container { display:none!important;  }

neither worked.

Izmjenjeno od cor-el

more options

Did you check this in the Browser Toolbox ?