0%

让Firefox自动隐藏地址栏和书签栏

Firefox的“刘海”真是越来越大了,垂直空间捉襟见肘.在userChrome.css中添加下面的代码,可以在非全屏模式下也自动隐藏地址栏和书签栏(当光标移上去、按下Alt-D或处于新标签页时会重新出现),并让选项卡的高度缩小一点:

1
2
3
4
5
6
7
8
9
10
11
12
:root[sessionrestored]
#navigator-toolbox:not([inFullscreen="true"]):not(:focus-within):not(:hover) #nav-bar,
:root[sessionrestored]
#navigator-toolbox:not([inFullscreen="true"]):not(:focus-within):not(:hover) #PersonalToolbar {
height: 0 !important;
min-height: 0 !important;
opacity: 0 !important;
}

#navigator-toolbox:not([inFullscreen="true"]) {
--tab-min-height: 28px !important;
}

效果如图:

firefox.gif