본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

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

자세히 살펴보기

Disable Close Tab Button on all Tabs Broken in v5 (31.0)

  • 7 답장
  • 10 이 문제를 만남
  • 15 보기
  • 최종 답변자: FredMcD

more options

Firefox 5 (v31.0) has broken browser.tabs.closebuttons = 2 That setting is 2 in my about:config, also I have Tab Control 5.5 with Close Buttons = None.

Either way the latest Firefox is ignoring both settings and now displaying an X on my active tab. Along with the new interface of the tabs is overlaping the tabs next to it and causing me to close tabs instead of switching tabs. Is this another case where Firefox knows best, and just changes things because they can?

What is the proper 'new' code to totally disable the X on all tabs?

Firefox 5 (v31.0) has broken browser.tabs.closebuttons = 2 That setting is 2 in my about:config, also I have Tab Control 5.5 with Close Buttons = None. Either way the latest Firefox is ignoring both settings and now displaying an X on my active tab. Along with the new interface of the tabs is overlaping the tabs next to it and causing me to close tabs instead of switching tabs. Is this another case where Firefox knows best, and just changes things because they can? What is the proper 'new' code to totally disable the X on all tabs?

선택된 해결법

Actually the style rule to suppress the tab close buttons is simple:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tab-close-button{
  display:none !important;
}

Custom style rules can be applied to the user interface using either of two methods:

(1) Create or edit a userChrome.css file. For more information, see: http://kb.mozillazine.org/UserChrome.css

(2) Install the Stylish extension, create a new blank style rule, and then paste the above code.

I generally use Stylish because it has a handy Preview feature that makes it easy to tweak rules when you're making complicated changes or exploring.

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

모든 댓글 (7)

more options

On the close buttons:

That bit of the program was removed, so the preference no longer has any effect and there is no other built-in preference for it.

You can use an extension to change the close button style, see How do I restore the "close tab" button to the END of the tab bar?

Or it's possible that Tab Control will be updated; I'm not familiar with that extension.

(It's also possible to suppress elements by applying custom style rules to Firefox's UI. However, I'll spare you the details since I haven't worked out what the rule would be.)

On the close button overlapping another tab:

I'm not sure why this is happening. If you have the patience to experiment with it, can you isolate the zone where it looks like a click should switch tabs but instead it is hitting the close button?

more options

선택된 해결법

Actually the style rule to suppress the tab close buttons is simple:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tab-close-button{
  display:none !important;
}

Custom style rules can be applied to the user interface using either of two methods:

(1) Create or edit a userChrome.css file. For more information, see: http://kb.mozillazine.org/UserChrome.css

(2) Install the Stylish extension, create a new blank style rule, and then paste the above code.

I generally use Stylish because it has a handy Preview feature that makes it easy to tweak rules when you're making complicated changes or exploring.

more options

Only the value of 3 for this pref is problematic as this would require JavaScript code to create a toolbar button. The value of 0 (actual) and 2 (no close buttons) can easily be achieved with code in the userChrome.css file.

Note that the current version of the Classic Theme Restorer extension has a setting for the tab close buttons in the Tab pane.

more options

There are also several add-ons that can do this for you.

Among them;

Rights To Close {web link} Right double-click anywhere on web page to close current tab.

Close Tab by Double Click {web link} Allows you to close tabs by double-clicking using the right mouse button.

more options

jscher2000,

Thank you for your fix, worked just fine.

I don't know why Firefox removes features like that, but doesn't add other similar simple features (ex. open tabs on right, close tab selects left).

It seems now even the simple features they had are now going to extensions and user css files. I wonder if they even made a note of this in their change logs.

more options

When you look at the release notes page (https://www.mozilla.org/firefox/31.0/releasenotes/), you see some highlights, but there is a link to view "all" changes which leads to a listing of hundreds of items in the bug tracking system. I think this is as close as you can get to a change log.

more options

I'm still trying to figure out why the add-ons bar was removed. As are many hundreds of other users.