Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is there a way to remove the "x" (close) from all but the active tab?

  • 4 replies
  • 1 has this problem
  • 64 views
  • Last reply by Vault108
  • Solved

Many times I will close the wrong tab when trying to close only the active tab (displayed.) It only happens in haste, but if only the active tab had an x on it, this wouldn't happen. That's the way it was in the older versions from what I recall. In previous editions, you could still right-click on a non-active tab and opt to close it, but it wasn't a simple click on an "x" with no "are you sure" question. I wind up closing a tab that I still need open and I have to painstakingly go back through the history to find it and reopen it.

If there is no way to do this now, please ask the developers to add this as an option in the future if it is possible.

Thank you, Dan

Many times I will close the wrong tab when trying to close only the active tab (displayed.) It only happens in haste, but if only the active tab had an x on it, this wouldn't happen. That's the way it was in the older versions from what I recall. In previous editions, you could still right-click on a non-active tab and opt to close it, but it wasn't a simple click on an "x" with no "are you sure" question. I wind up closing a tab that I still need open and I have to painstakingly go back through the history to find it and reopen it. If there is no way to do this now, please ask the developers to add this as an option in the future if it is possible. Thank you, Dan

Chosen solution

Hello,

After doing some digging and research I found that the add-on bellow does what you are asking for. Heres how to get it working: 1) Install the add on which can be found here: https://addons.mozilla.org/en-US/firefox/addon/tabs-closebutton-restored/ 2) Then you should be all set with the button on the active tab only.

Please let me know if you need anything else. From, Sir.Mayo

Read this answer in context 👍 0

All Replies (4)

Chosen Solution

Hello,

After doing some digging and research I found that the add-on bellow does what you are asking for. Heres how to get it working: 1) Install the add on which can be found here: https://addons.mozilla.org/en-US/firefox/addon/tabs-closebutton-restored/ 2) Then you should be all set with the button on the active tab only.

Please let me know if you need anything else. From, Sir.Mayo

WOW!!! That's exactly what I need. No more frustration at closing the wrong tab. I have no idea what they were thinking when the changed that but I'm glad this Add-on was available.

Thanks very much!

Dan

Note that you can also achieve this with code in the userChrome.css file in the chrome folder in the profile folder (you need to create the chrome folder and the userChrome.css file) See also:

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 */

@-moz-document url(chrome://browser/content/browser.xul) {
  .tab-close-button:not([selected]) {
    display: none;
  }
}

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily.

Thank you for contacting Mozilla Support.