- In Firefox, type
about:configinto the address bar and pressEnter. - Search for
toolkit.legacyUserProfileCustomizations.stylesheetsand set it toTRUEto enable custom stylesheets. - Next, type
about:profilesinto the address bar. - Find the profile labeled "This is the profile in use and it cannot be deleted."
- In the same row, click Open Folder under Root Directory to access your profile folder.
- In the profile folder, create a new folder named
chrome(if it doesn’t already exist). - Inside the
chromefolder, create a file nameduserChrome.css(ensure it’s notuserChrome.css.txt).
These steps will enable custom styling with the userChrome.css file.
-
Open the
userChrome.cssfile you created earlier in thechromefolder. -
Add the one of these CSS solutions to the file:
- Option #1 - Original: Hide the native tab bar and use addons for min/max/close
#main-window[titlepreface*=" "] #TabsToolbar { display: none; }
- Option #2 - New Alternative: Hide the native tab bar and use Firefox native min/max/close buttons
#main-window[titlepreface*=" "] { #TabsToolbar { display: none; } #nav-bar { .titlebar-buttonbox-container { display: flex !important; } } }
-
Save your userChrome.css file and restart Firefox to apply the changes.
Explanation
- This CSS targets TabsToolbar and hides the native tab bar when a certain condition is met.
- The condition is based on the titlepreface property, which this add-on manipulates by adding or removing a space (" ").
Reference
- You can refer to Mozilla’s documentation for more details: MDN WebExtensions API - windows.update
(LIMITATION) Limited access to window control buttons when native tabs are hidden
- When the native tabs are hidden, the minimize, maximize, and close buttons are not directly accessible. Here are some workarounds:
- Use the new CSS solution to keep the Firefox native min/max/close buttons.
- Use this addon to temporarily show the native tab bar and regain access to the native window control buttons.
- Use keyboard shortcuts:
Alt+Space, Nfor minimizeAlt+Space, Xfor maximize
- Right-click the taskbar and use the context menu options.
- Use
Windows Key + Arrow Keysto move and resize the window. - Download and use Firefox addons that emulate the window control buttons and place them on the toolbar:
- Minimize the Window
- Maximize the Window
- Close the Window
-- These addons can replace the native buttons.
- The addon icon will change based on if the tabs should be displayed or not
-
This addon was inspired by Sidebery's Dynamic Native Tabs feature
- Dynamic Native Tabs (Github Description)
- While Sidebery focuses on whether its own sidebar is displayed, this addon toggles only the native tab bar.
- This allows both the sidebar and native tab bar to be shown simultaneously if desired.
- You do not even have to show your sidebar to use this addon.
- It also offers a more generic implementation that could work with other sidebar addons like Tree Style Tab.
-
Attribution for the base addon icon:
- Icons made by Freepik from www.flaticon.com.

