সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

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

  • 7 উত্তরসমূহ
  • 10 এই সমস্যাটি আছে
  • 3 দেখুন
  • শেষ জবাব দ্বারা 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

All Replies (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.