Closing the last tab.
I would like to be able to close the last tab and also to close all tabs. There two reasons I want to do this: 1. I am finished with the tab, and I want it to go away so it won't distract me. 2. There is something on the tab I don't want other people to see. I want it to go away rapidly without having to shut down Firefox entirely along with that delay. Every other program I use lets me close the last tab.
Összes válasz (7)
The Last Tab Close Button add-on will add a close tab button to the last tab - https://addons.mozilla.org/firefox/addon/last-tab-close-button/
The Close All Tabs (Reloaded) add-on gives you the option to add a toolbar button to close all tabs - https://addons.mozilla.org/firefox/addon/close-all-tabs-reloaded/
Set the pref browser.tabs.closeWindowWithLastTab to false on the about:config page to prevent closing the last tab from closing the browser.
The setting is already true. But it is not letting me close the tab.
You can close that last tab with Ctrl + W or with a middle-click on that tab.
You can set the the pref browser.tabs.closeButtons to 3 to get one close button at the far right end of the tab bar.
Add code to userChrome.css below the @namespace line.
See http://userstyles.org/styles/12101 : Show Close Button On Last Tab
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ /* Show Close Button On Last Tab */ .tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab > .tab-close-button { display: -moz-box !important; } .tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"] > .tab-close-button { display: -moz-box !important; }
I followed everyone's advice, and the sum total of it now lets me close the last tab, and close all tabs with a big red X on the right next to the cool-iris button.
One plugin said I had to configure something afterwards. I could find nothing in Firefox dialogs to configure it on.
I think such plugins should not be necessary. That is the way FireFox should behave by default.
Under "Tools" GOTO: TabMixPlus Options.
Click on "Events" Click on "Tab Closing"
GOTO: "Closing Current Tab" at bottom. SEE: "When closing current tab , focus: (in box) CHOOSE: “last tab” (in box)
CLICK: "Apply" CLICK: "Close"
When I did the above, my last tab on the right now had the X on it so that I could now close that tab. And if I close that tab, the tab next to it becomes the last tab and also has the X on it and can be closed at any time, etc.
Hope this helps.
I upgraded to Firefox 4.0. It lets me close the last tab without any fuss. It does not have a close-all, but I can do a close-others then close the last tab. The add-ons no longer work.