Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to remove close-button on every firefox tab?

more options

I want to do not see this small button on each tab in Firefox. Is it possible without addons? I remember that in the past there was an option in about:config for that purpose but I failed to find it now and do not remember how it is called. I don't need this close-button because I managed to close my tabs using various other ways: by Escape, by double left mouse click to a tab, by double right click on web page (everything using AutoHotkey).

I want to do not see this small button on each tab in Firefox. Is it possible without addons? I remember that in the past there was an option in about:config for that purpose but I failed to find it now and do not remember how it is called. I don't need this close-button because I managed to close my tabs using various other ways: by Escape, by double left mouse click to a tab, by double right click on web page (everything using AutoHotkey).
첨부된 스크린샷

선택된 해결법

There used to be a preference called browser.tabs.closeButton back in the very early days. Currently, Firefox will always show an X close button on the active tab, assuming it is not a pinned tab, even if the tabs have become too narrow to have an X close button on the other (background) tabs. The only way around it is a custom style rule in a userChrome.css file.

If you haven't created an optional userChrome.css file before, it is a little bit of a project, so wait until you have 10 quiet minutes so you can take your time.

(For anyone who already has a userChrome.css file set up, you just need to add the rules under (A) to your file.)

(A) Select and copy the following style rule code

/*** Hide Tab Close buttons ***/
.tabbrowser-tab .tab-close-button {
  visibility: collapse !important;
}


(B) Generate and download a userChrome.css file

Open the following page and paste the above rules into the editor, replacing the sample rule:

https://www.userchrome.org/download-userchrome-css.html

Then click "Generate CSS File" and save the userChrome.css file to your computer. (See first attached screenshot)

Use the downloads list on the toolbar to open the downloads folder directly to the new userChrome.css file. (See second attached screenshot)

Minimize that file browser window for later reference.

(C) Create a new chrome folder in your profile folder

The following article has the detailed steps for that (#1, #2, and I recommend #3)

https://www.userchrome.org/how-create-userchrome-css.html

I have videos for both Windows and Mac in case the text is not clear.

(D) Move the userChrome.css file you downloaded in Step B into the chrome folder you created in Step C

(E) Set Firefox to look for userChrome.css at startup -- see step #6 in the above article.

The next time you exit Firefox and start it up again, it should discover that file and apply the rules.

Success?

Once you start tweaking the interface this way, you'll probably find more and more things you want to do. I suggest bookmarking the pages where you get the code for future reference because changes to Firefox may break them and it's easier to request an update if you can find the source.

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (2)

more options

The option in the config can help you in eliminating the close button from background tabs but not the foreground tabs. To do this, you have to change the smallest width that a tab can be before Firefox starts. For this, follow the steps as below:

  • 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.

글쓴이 Raushani Singh 수정일시

more options

선택된 해결법

There used to be a preference called browser.tabs.closeButton back in the very early days. Currently, Firefox will always show an X close button on the active tab, assuming it is not a pinned tab, even if the tabs have become too narrow to have an X close button on the other (background) tabs. The only way around it is a custom style rule in a userChrome.css file.

If you haven't created an optional userChrome.css file before, it is a little bit of a project, so wait until you have 10 quiet minutes so you can take your time.

(For anyone who already has a userChrome.css file set up, you just need to add the rules under (A) to your file.)

(A) Select and copy the following style rule code

/*** Hide Tab Close buttons ***/
.tabbrowser-tab .tab-close-button {
  visibility: collapse !important;
}


(B) Generate and download a userChrome.css file

Open the following page and paste the above rules into the editor, replacing the sample rule:

https://www.userchrome.org/download-userchrome-css.html

Then click "Generate CSS File" and save the userChrome.css file to your computer. (See first attached screenshot)

Use the downloads list on the toolbar to open the downloads folder directly to the new userChrome.css file. (See second attached screenshot)

Minimize that file browser window for later reference.

(C) Create a new chrome folder in your profile folder

The following article has the detailed steps for that (#1, #2, and I recommend #3)

https://www.userchrome.org/how-create-userchrome-css.html

I have videos for both Windows and Mac in case the text is not clear.

(D) Move the userChrome.css file you downloaded in Step B into the chrome folder you created in Step C

(E) Set Firefox to look for userChrome.css at startup -- see step #6 in the above article.

The next time you exit Firefox and start it up again, it should discover that file and apply the rules.

Success?

Once you start tweaking the interface this way, you'll probably find more and more things you want to do. I suggest bookmarking the pages where you get the code for future reference because changes to Firefox may break them and it's easier to request an update if you can find the source.