Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Remove close button on single tab

  • 1 回覆
  • 1 有這個問題
  • 10 次檢視
  • 最近回覆由 cor-el

more options

Is there a way to remove the close button when i only have a single tab open? I constantly click the close button whenever i have a single tab open when i mean to click the new tab button. I dont see the reason why there should be two close buttons (one on the tab, and one on the upper right of the window)

Is there a way to remove the close button when i only have a single tab open? I constantly click the close button whenever i have a single tab open when i mean to click the new tab button. I dont see the reason why there should be two close buttons (one on the tab, and one on the upper right of the window)

所有回覆 (1)

more options

You can possibly set this pref to false on the about:config page to prevent closing window when you close the last tab.

  • browser.tabs.closeWindowWithLastTab = false

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:only-of-type .tab-close-button {display:none !important}

- - - -

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See: