X
點擊此處開啟此網站的行動版。

技術支援討論區

How can I get rid of the close tab buttons on all the tabs in the current FF build?

已張貼

I tried the UserChrome.css solution but it did not work. I used that once before in a previous build of FF, and at that time, it did work. So something must've changed in one of the updates to break it.

I tried the UserChrome.css solution but it did not work. I used that once before in a previous build of FF, and at that time, it did work. So something must've changed in one of the updates to break it.

額外的系統細節

已安裝的外掛程式

  • Shockwave Flash 28.0 r0

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

更多資訊

提出問題者

Here is the solution I already tried: https://www.howtogeek.com/howto/internet/firefox/quick-tip-remove-close-button-from-firefox-tabs/ I also once used this solution: https://dottech.org/158982/how-to-remove-the-close-tab-button-on-firefox-tip/ But that option was removed by FF in all their infinite wisdom. <dripping with sarcasm and hate>

Here is the solution I already tried: https://www.howtogeek.com/howto/internet/firefox/quick-tip-remove-close-button-from-firefox-tabs/ I also once used this solution: https://dottech.org/158982/how-to-remove-the-close-tab-button-on-firefox-tip/ But that option was removed by FF in all their infinite wisdom. <dripping with sarcasm and hate>

提出問題者

Sorry, remove by Mozilla. FF is a program and not a company.

Sorry, remove by Mozilla. FF is a program and not a company.
cor-el
  • Top 10 Contributor
  • Moderator
17566 個解決方法 158879 個答案

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 */
.tab-close-button {display:none!important}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close and restart Firefox when you create or modify the userChrome.css file.

Add code to the <b>userChrome.css</b> file below the default @namespace line. *http://kb.mozillazine.org/userChrome.css <hr> <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ /* tab close button */ .tab-close-button {display:none!important} </nowiki></pre> ---- It is not that difficult to create userChrome.css if you have never used it. The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder. *https://support.mozilla.org/en-US/kb/use-troubleshooting-information-page-fix-firefox You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name <u>chrome</u> in this folder (name is all lowercase). In the <b>chrome</b> folder you need to create a text file with the name <u>userChrome.css</u> (name is case sensitive). In this userChrome.css text file you paste the text posted. In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named <i>userChrome.css.txt</i>. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as". You need to close and restart Firefox when you create or modify the userChrome.css file.