📜 ⬆️ ⬇️

Firefox 3.5 Last Tab close button and Closing last tab closes Firefox

I just updated my Firefox to version 3.5 and noticed that if there is only one tab left then there is no “close tab” button on it. It is much more convenient for me as a person using the Fast Dial to just close the last tab and see the Fast Dial window than to open a new tab and only then close the old one.

But there is a solution and it was found rather quickly:

Go to the Firefox profiles folder, for example, I have C: \ Users \ crash \ AppData \ Roaming \ Mozilla \ Firefox \ Profiles, then there will be one or more folders, I have only one there and it sounds like nxe2r5h9. default, go to it and in it in the chrome folder.

We see 2 files there:
')
userContent-example.css and userChrome-example.css, rename the last one to userChrome.css and add the following lines to it:

/ * Add tab-close-button to 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; }

Save, restart our browser and voila!

But it was not there, now when you close the last tab, the entire browser is closed, it does not matter! Go to about: config and change the variable browser.tabs.closeWindowWithLastTab from true to false.

Restart our browser, and our old-style is ready. I hope you come in handy.

UPD: In order to remove the button for creating a new tab, simply add the following code to the above userChrome.css:

.tabs-newtab-button {display: none}

Source: https://habr.com/ru/post/63274/


All Articles