X
Нажмите здесь, чтобы перейти на мобильную версию сайта.

Форум поддержки

Feature request for Firefox desktop: Button to hide/show tab bar

Размещено

I frequently edit the css sheet to disable the tab bar, then go back later and edit it again to bring it back.

A good thing about safari is that the top bar is tiny when you have only one page open, so you can shrink the window and stick it in the corner pretty well.

A button (maybe under view) to hide/show the tab bar would be sweet, if that's possible. Heck, you could even add a button for hide/show the address bar for a very minimal window¿¿

(Just an idea)

I frequently edit the css sheet to disable the tab bar, then go back later and edit it again to bring it back. A good thing about safari is that the top bar is tiny when you have only one page open, so you can shrink the window and stick it in the corner pretty well. A button (maybe under view) to hide/show the tab bar would be sweet, if that's possible. Heck, you could even add a button for hide/show the address bar for a very minimal window¿¿ (Just an idea)
Цитата

Дополнительные сведения о системе

Установленные плагины

N/A

Приложение

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15

Дополнительная информация

jscher2000
  • Top 10 Contributor
8578 решений 70134 ответов
Размещено

Полезный ответ

Hi rashreportloaf, I think some other users would find that useful, for example, when you right-click (Ctrl+click) the "+" button, a blank area of the tab bar, or a button on the mail toolbar, having more options in addition to Bookmarks Toolbar (and on Windows, Menu Bar) to turn on/off.

You can submit comments and suggestions for feature changes through one or more of the following links, or recently I saw someone created a Change.org petition (no idea whether that helps):

I don't think that would come very soon, so you may need to continue using custom CSS rules in a userChrome.css file for the near future. What do you think about a rule that squashes the bar down to a minimal height, but opens back up when you hover it with the mouse? The following is from when I briefly had a Mac to play with: https://support.mozilla.org/questions/1199921#answer-1065379

Hi rashreportloaf, I think some other users would find that useful, for example, when you right-click (Ctrl+click) the "+" button, a blank area of the tab bar, or a button on the mail toolbar, having more options in addition to Bookmarks Toolbar (and on Windows, Menu Bar) to turn on/off. You can submit comments and suggestions for feature changes through one or more of the following links, or recently I saw someone created a Change''.''org petition (no idea whether that helps): * Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ * Discourse: https://discourse.mozilla.org/c/firefox-development * Reddit: https://www.reddit.com/r/firefox/ * Twitter: https://twitter.com/firefox * Facebook: https://www.facebook.com/Firefox I don't think that would come very soon, so you may need to continue using custom CSS rules in a userChrome.css file for the near future. What do you think about a rule that squashes the bar down to a minimal height, but opens back up when you hover it with the mouse? The following is from when I briefly had a Mac to play with: https://support.mozilla.org/questions/1199921#answer-1065379
Помогла ли вам это? 1
Цитата

Задавший вопрос

Thanks for that script I'll give it a try. I left feedback on the qsurvey link you sent me

Thanks for that script I'll give it a try. I left feedback on the qsurvey link you sent me
Помогла ли вам это?
Цитата
cor-el
  • Top 10 Contributor
  • Moderator
17344 решений 156782 ответов
Размещено

Полезный ответ

You can possibly use the Browser Console (Command_Shift+J) to toggle a toolbar. You need to enable the command line.

Note that you can recall the last used commands with the Up/down key, so no need to re-enter. For the Tab bar this would be:

eTAB = window.document.getElementById("TabsToolbar");
aCOL = "collapsed";
eTAB.setAttribute(aCOL,eTAB.getAttribute(aCOL)=="true"?"false":"true");
eTAB.getAttribute(aCOL);

EDIT: Note that this probably won't work properly if you use code in userChrome.css to set the tabs on bottom. You would need extra code to remove the padding-bottom on the navigator-toolbox and this can only work if the padding-bottom doesn't have the !important flag.

window.document.getElementById("navigator-toolbox").style.setProperty(sPB,eTAB.getAttribute(aCOL)=="true"?"0px":"calc(0px + var(--tab-min-height)","important");

Toggle the entire navigator-toolbox:

eNTB = window.document.getElementById("navigator-toolbox");
sPTY = "visibility";
eNTB.style.setProperty(sPTY, eNTB.style.getPropertyValue(sPTY)=="collapse"?"visible":"collapse","important");
eNTB.style.getPropertyValue(sPTY);
You can possibly use the Browser Console (Command_Shift+J) to toggle a toolbar. You need to enable the command line. *https://developer.mozilla.org/en-US/Tools/Browser_Console Note that you can recall the last used commands with the Up/down key, so no need to re-enter. For the Tab bar this would be: <pre><nowiki>eTAB = window.document.getElementById("TabsToolbar"); aCOL = "collapsed"; eTAB.setAttribute(aCOL,eTAB.getAttribute(aCOL)=="true"?"false":"true"); eTAB.getAttribute(aCOL); </nowiki></pre> EDIT: Note that this probably won't work properly if you use code in userChrome.css to set the tabs on bottom. You would need extra code to remove the padding-bottom on the navigator-toolbox and this can only work if the padding-bottom doesn't have the !important flag. <pre><nowiki>window.document.getElementById("navigator-toolbox").style.setProperty(sPB,eTAB.getAttribute(aCOL)=="true"?"0px":"calc(0px + var(--tab-min-height)","important");</nowiki></pre> Toggle the entire navigator-toolbox: <pre><nowiki>eNTB = window.document.getElementById("navigator-toolbox"); sPTY = "visibility"; eNTB.style.setProperty(sPTY, eNTB.style.getPropertyValue(sPTY)=="collapse"?"visible":"collapse","important"); eNTB.style.getPropertyValue(sPTY); </nowiki></pre>

Изменено cor-el

Помогла ли вам это? 1
Цитата

Задавший вопрос

Thank you cor-el, that's pretty convenient too. I just want to say the window looks awesome with no bars at all, screenshot attached

Thank you cor-el, that's pretty convenient too. I just want to say the window looks awesome '''with no bars at all''', screenshot attached
Помогла ли вам это?
Цитата

Задавший вопрос

Oops file size error. screenshot attached now.

Oops file size error. screenshot attached now.
Помогла ли вам это?
Цитата
Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.