On 2020-10-08, cjsmall <
jeffer...@gmail.com> wrote:
> Pre-Quantum there were extensions to remove the New Tab button. These are all gone. Is there any way to get this button from displaying? It's annoying and in the way. Thanks.
Hurray!!!!! I'm not the only one who is afflicted with an
unwanted tab bar problem!
My angle is I want to have the tab bar completely gone when there
is only one tab for a given browser window. I had a workaround
until the update to Firefox ESR 78.3.0esr. In my case, I'm
running Devuan Ascii.
To just get rid of the 'new tab' button, I used the following
method:
1) Hamburger menu -> Customize
2) Move the 'New Tab' button to the overflow area
3) Right-click on 'New Tab' in the overflow area -> Remove
from Toolbar
I found the following workaround here:
https://www.reddit.com/r/FirefoxCSS/comments/7dqtuf/hide_tab_bar_if_only_one_tab_is_open/
I have this in my userChrome.css file:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv cut here vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
/* This came from this page: */
/*
https://www.reddit.com/r/FirefoxCSS/comments/7dqtuf/hide_tab_bar_if_only_one_tab_is_open/
*/
/* hide tab bar if only one tab */
tab:only-of-type {
display:none;
}
/* unset the tab bar min-height */
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox,
#tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
min-height: initial !important;
/* rmr: change to 0px did not help. */
/* min-height: 0px !important; */
}
/* set the height on the tabs instead */
tab {
line-height: 32px; height: 32px;
}
/* hide new tab button so tab-bar can collapse */
.tabs-newtab-button {
display: none;
}
/* ...but show it on tab-bar hover */
/* rmr: commenting this out does not help. */
#tabbrowser-tabs:hover .tabs-newtab-button {
display: block;
}
/* It is also necessary to use 'customize' to move the new tab
button to */
/* the overflow area, then remove the new tab button from the
toolbar. */
/* FIXME: With that, the tab bar remains, even though it is
empty. */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cut here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
However, even with all that CSS code, the tab bar does not
collapse for me. It is completely empty of any content that I
can see, but it won't collapse.
Does anyone here have a solution to make the empty tab bar
finally collapse?
I'm usually pretty good with using Inspect Element to remove
offensive (moving, etc.) ads from pages I'm viewing. Is there
a way to open a DOM Inspector on the stuff in the tab bar? If
so, it may be possible to find out what might be there but not
readily visible or what attribute setting might make the tab bar
collapse.
In my case, I have scripts using xmacroplay (on Linux) to
automate printing check images from my bank, automatically log in
to a non-financial website I frequent, etc. If I can't get the
tab bar to collapse, I'm going to have to modify at least some of
those scripts.
--
Robert Riches
spamt...@jacob21819.net
(Yes, that is one of my email addresses.)