
Firefox 57 beta - Any way to make close buttons on tabs ALWAYS appear?
I have a feeling the answer is "no", but is there any way to make close buttons ALWAYS appear on tabs in Firefox 57 beta? Currently they only appear if there are 10 tabs or less. I used an add-on for this before, but it wasn't ported to WebExtensions and I have no idea if it will be. I tried changing the browsers.tab.tabClipWidth setting in about:config to 0, but it didn't do anything. Also, for the record, I do not have a way to middle-click, so I can't use that as a substitute. Thanks!
Chosen solution
Add code to the userChrome.css file below the default @namespace line.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ .tab-close-button:not([pinned="true"]) { display: -moz-box !important; }
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.
- Help -> Troubleshooting Information -> Profile Directory:
Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder - http://kb.mozillazine.org/Profile_folder_-_Firefox
- create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- paste the code in the userChrome.css file in the editor window
- make sure that the userChrome.css file starts with the default @namespace line
- make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
All Replies (2)
Hi StoryMaker, there is no built-in feature for this, but you can apply a custom style rule to the tabs. This involves creating a style rule file named userChrome.css that Firefox reads at startup and applies to the browser.
For examples of rules for this, see the following threads on Reddit:
- https://www.reddit.com/r/firefox/comments/74patk/is_there_a_way_to_make_tabs_always_display_the/
- https://www.reddit.com/r/firefox/comments/6w7rkz/userchromecss_for_allmostany_classic_theme/
If you're like most people and never heard of userChrome.css, please see this discussion:
Chosen Solution
Add code to the userChrome.css file below the default @namespace line.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ .tab-close-button:not([pinned="true"]) { display: -moz-box !important; }
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.
- Help -> Troubleshooting Information -> Profile Directory:
Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder - http://kb.mozillazine.org/Profile_folder_-_Firefox
- create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- paste the code in the userChrome.css file in the editor window
- make sure that the userChrome.css file starts with the default @namespace line
- make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
Modified