如何隐藏Firefox火狐浏览器顶部标签栏
1.先通过以下火狐官方网址安装一个在侧边栏整理并显示标签页的扩展程序,推荐Tree Style Tab 作者:Piro (piro_or)
Firefox 附加组件(zh-CN)
addons.mozilla.org/zh-CN/firefox/
2.插件安装正常没问题再进行下一步
3.在地址栏输入about:config回车
4.搜索toolkit.legacyUserProfileCustomizations.stylesheets设置为true
5.需要使用到userChrome.css文件,使用方法见火狐官方介绍,以下是网址链接
How to Create a userChrome.css File
www.userchrome.org/how-create-userchrome-css.html
FirefoxCSS Store (firefoxcss-store.github.io)
6.userChrome.css文件内容如下
#main-window:not([drawtitle="true"]):not([inFullscreen="true"]) #nav-bar { margin-left : 30px; /* leftTop drag area */ border-right: 140px solid var(--toolbar-bgcolor); } :root[sizemode="maximized"] #nav-bar { margin-top: 10px !important; /* Top drag area */ margin-left : 0px !important; /* hidden leftTop drag area in Fullscreen mode*/ border-right: 140px solid var(--toolbar-bgcolor); } :root[privatebrowsingmode="temporary"] #nav-bar { border-right: 180px solid var(--toolbar-bgcolor) !important; } /* move down to hidden titlebar */ #titlebar { margin-bottom: -31px !important; } /* move down 3 button on rightTop */ .titlebar-buttonbox-container { margin-bottom: -5px !important; } :root[sizemode="maximized"] .titlebar-buttonbox-container { margin-bottom: -15px !important; } /* move down private icon */ .private-browsing-indicator { margin-bottom: -8px !important; } :root[sizemode="maximized"] .private-browsing-indicator { margin-bottom: -18px !important; } /* hidden horizontal tabbar on top */ #tabbrowser-tabs[orient="horizontal"] { visibility: collapse !important; } #sidebar-box[sidebarcommand="_0ad88674-2b41-4cfb-99e3-e206c74a0076_-sidebar-action"] sidebarheader { visibility: collapse !important; }
7.关闭浏览器所有标签页,再次打开火狐浏览器即可,无需重启电脑