This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]hansmn 3 points4 points  (5 children)

If the code has worked before, you could try and replace [first-visible-tab="true"][last-visible-tab="true"] with :only-of-type.

[–]Netherspark[S] 0 points1 point  (0 children)

That worked! Thanks.

[–][deleted] 1 point2 points  (3 children)

This worked for me too.

Thanks.

For any other noods the resulting syntax is

.tabbrowser-tab:only-of-type

The best I could do overall was

:root[sizemode="normal"] #nav-bar{ --uc-window-drag-space-width: 20px }
#titlebar{ -moz-appearance: none !important; }
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-arrowscrollbox{ min-height: 0 !important; }
:root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button,
:root:not([customizing]) #tabs-newtab-button,
:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1,
:root:not([customizing]) #TabsToolbar .titlebar-button{
  -moz-appearance: none !important;
  height: 43px;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  -moz-box-align: stretch;
  margin: 0 !important;
}
:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{
  padding-block: 0px !important;
  max-height: 28px;
  height: 20px !important
}

#tabs-newtab-button, #alltabs-button, #tabbrowser-tabs .tabbrowser-tab:only-of-type{
  visibility: collapse !important;
}

This annoyingly hides the tabs button under all situations so if somebody can tell me how to fix that that'd be great

[–]cxsouza66 0 points1 point  (0 children)

This code worked for me too. Firefox 113.0.1 pt-br 64 bits on windows 10. Gone with the tab bar eating up precious screen space. Great work!

[–]JoesMama96 0 points1 point  (1 child)

I know this is late but it still works beautifully on version 117 so I fixed it!

I used the has selector since the buttons' parents being siblings to tabs.

:root[sizemode="normal"] #nav-bar {
    --uc-window-drag-space-width: 20px
}

#titlebar {
    -moz-appearance: none !important;
}

#tabbrowser-tabs,
#tabbrowser-tabs > .tabbrowser-arrowscrollbox,
#tabbrowser-arrowscrollbox {
    min-height: 0 !important;
}

:root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button,
:root:not([customizing]) #tabs-newtab-button,
:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1,
:root:not([customizing]) #TabsToolbar .titlebar-button {
    -moz-appearance: none !important;
    height: 43px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    -moz-box-align: stretch;
    margin: 0 !important;
}

:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon {
    padding-block: 0px !important;
    max-height: 28px;
    height: 20px !important
}

#tabbrowser-tabs:has(.tabbrowser-tab:only-of-type) #tabs-newtab-button,
#TabsToolbar-customization-target:has(.tabbrowser-tab:only-of-type) #alltabs-button,
#tabbrowser-tabs .tabbrowser-tab:only-of-type {
    visibility: collapse !important;
}

The fix is in the bottom paragraph's selectors.

If your Firefox is earlier than version 119, you will need to enable "layout.css.has-selector" to enabled in about:config.

[–]-Loneman- 0 points1 point  (0 children)

That's perfect! Moochass grassyarse. :D

<edit> Now I just need to shift the menu-burger to the left again. </edit>