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

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Firefox 57 beta - Any way to make close buttons on tabs ALWAYS appear?

  • 2 ответа
  • 46 имеют эту проблему
  • 67 просмотров
  • Последний ответ от cor-el

more options

I have a feeling the answer is "no", but is there any way to make close buttons ALWAYS appear on tabs in Firefox 57 beta? Currently they only appear if there are 10 tabs or less. I used an add-on for this before, but it wasn't ported to WebExtensions and I have no idea if it will be. I tried changing the browsers.tab.tabClipWidth setting in about:config to 0, but it didn't do anything. Also, for the record, I do not have a way to middle-click, so I can't use that as a substitute. Thanks!

I have a feeling the answer is "no", but is there any way to make close buttons ALWAYS appear on tabs in Firefox 57 beta? Currently they only appear if there are 10 tabs or less. I used an add-on for this before, but it wasn't ported to WebExtensions and I have no idea if it will be. I tried changing the browsers.tab.tabClipWidth setting in about:config to 0, but it didn't do anything. Also, for the record, I do not have a way to middle-click, so I can't use that as a substitute. Thanks!

Выбранное решение

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:not([pinned="true"]) { display: -moz-box !important; }

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css file in the editor window
  • make sure that the userChrome.css file starts with the default @namespace line
  • make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
    otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
Прочитайте этот ответ в контексте 👍 23

Все ответы (2)

more options

Hi StoryMaker, there is no built-in feature for this, but you can apply a custom style rule to the tabs. This involves creating a style rule file named userChrome.css that Firefox reads at startup and applies to the browser.

For examples of rules for this, see the following threads on Reddit:

If you're like most people and never heard of userChrome.css, please see this discussion:

https://support.mozilla.org/questions/1164362#answer-978078

more options

Выбранное решение

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:not([pinned="true"]) { display: -moz-box !important; }

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css file in the editor window
  • make sure that the userChrome.css file starts with the default @namespace line
  • make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
    otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

Изменено cor-el