We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

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

  • 7 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 4 ნახვა
  • ბოლოს გამოეხმაურა cor-el

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.
მიმაგრებული ეკრანის სურათები

ყველა პასუხი (7)

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.

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.

Does Firefox use your userChrome.css ?

Some test code:

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

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?

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.

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.

ჩასწორების თარიღი: , ავტორი: cor-el

Did you check this in the Browser Toolbox ?