How to remove close icon from tabs?
I finally gave a newer version of FF a try after sticking with 56.0.2 for a long time. Before I go back to 56 again, how do I get rid of the close icons on the tabs? Or at the very least make it so that only the foreground tab has a close icon.
I got so used to having ONE close icon at right end of my tab bar and now, even after two weeks after leaving FF 56, I'm constantly closing the wrong tab because even background tabs have close icons on them ... and I keep clicking the one at the right end of my tab bar.
I'm on the verge of going back to FF 56 anyway to get back other customization options. Whether or not I can fix this close-icon-on-every-tab issue is going to be the determining factor.
Keazen oplossing
I can help you with eliminating the close button from background tabs, but not the foreground tabs. Firefox does automatically hide the close button when you have a lot of tabs open and the tabs set so skinny that it's no longer realistic to display the close button on it.
Basically, you just have to change the smallest width that a tab can be before Firefox starts to do this. To change the setting, do the following:
- Enter
about:config
in your Firefox address bar - Bypass the warning message
- Find the
browser.tabs.tabClipWidth
- Change the value to a large number (for example, 1000000)
- Restart Firefox
Hope this helps.
There's a more advanced way to modify Firefox to hide all of the close buttons on the tabs, but I'm not sure if it still works and I'm not sure of your technical abilities. If you are interested in giving it a try, it was outlined in this past support request.
Dit antwurd yn kontekst lêze 👍 1Alle antwurden (3)
Keazen oplossing
I can help you with eliminating the close button from background tabs, but not the foreground tabs. Firefox does automatically hide the close button when you have a lot of tabs open and the tabs set so skinny that it's no longer realistic to display the close button on it.
Basically, you just have to change the smallest width that a tab can be before Firefox starts to do this. To change the setting, do the following:
- Enter
about:config
in your Firefox address bar - Bypass the warning message
- Find the
browser.tabs.tabClipWidth
- Change the value to a large number (for example, 1000000)
- Restart Firefox
Hope this helps.
There's a more advanced way to modify Firefox to hide all of the close buttons on the tabs, but I'm not sure if it still works and I'm not sure of your technical abilities. If you are interested in giving it a try, it was outlined in this past support request.
Many thanks - I did the userChrome thing and it worked perfectly.
I'll play around more with that file and see if I can figure out how to put a close tab icon at the right end of the tab bar. If not, it's not big deal to use Ctrl-W to close tabs because at least that only closes the foreground tab and I no longer have to worry about constantly closely the wrong tab.
Thanks again,
Rob
Add code to the userChrome.css file below the default @namespace line.
- http://kb.mozillazine.org/userChrome.css
- https://www.userchrome.org/how-create-userchrome-css.html
- https://www.userchrome.org/what-is-userchrome-css.html
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ #tabbrowser-tabs .tabbrowser-tab .tab-close-button {display:none!important}
There is no way to add one close button to the Tab bar. You can middle-click a tab with the mouse scroll wheel to close this tab.