[分享] Firefox 隐藏整个顶部栏 全屏显示

2020-06-22 05:33:34 +08:00
 JCZ2MkKb5S8ZX9pq

简介

方法

/*
Firefox Hide Header / Navigator / Top / Tabs / Address / Toolbox

Step 1:
about:config > toolkit.legacyUserProfileCustomizations.stylesheets > true

Step 2:
about:support > Click on "Profile Folder" -> "Open Folder"
Create folder "chrome" here, and put this file in (as "userChrome.css").

More:
Tutorial: How to create and live-debug userChrome.css : FirefoxCSS
https://www.reddit.com/r/FirefoxCSS/comments/73dvty/tutorial_how_to_create_and_livedebug_userchromecss/
*/
@-moz-document url("chrome://browser/content/browser.xul"),
url("chrome://browser/content/browser.xhtml") {
    /*
    隐藏顶部栏
    第一行 10px 是顶部触发显示的高度。
    下面的 99px 是顶部栏的预估高度。受各种自定义设置的影响,请自行调整。
    如果只需要隐藏地址栏,保留标签栏,用 #nav-bar,然后可能需要适度调节。
    */
    #navigator-toolbox {
        max-height: 15px !important;
        z-index: 1000 !important;
        background: black !important;
        opacity: 0 !important;
        margin-bottom: -99px;
        transition: all .2s !important;
    }

    #navigator-toolbox:hover {
        max-height: none !important;
        opacity: 1 !important;
    }
}

3497 次点击
所在节点    浏览器
5 条回复
ciaoly
2020-06-22 08:43:14 +08:00
道理我都懂,可为啥自定义 Firefox 的外观用的是 chrome.css 呢?这是 Firefox 和 chrome 有什么渊源还是咋地?
(刚查了查 chrome 单词的意思,就“镉”的意思哇,难道有表示“外观”的意思?
Remember
2020-06-22 08:57:26 +08:00
firefox 配置用 chrome 这个词的时候,chrome 还不知道在哪儿呢。
JCZ2MkKb5S8ZX9pq
2020-06-22 15:34:28 +08:00
或者最后补那 8px 的补丁这样打也可以

html[sizemode="maximized"] #navigator-toolbox{
margin-bottom: -7px !important;
}
html[sizemode="maximized"] #navigator-toolbox:hover{
margin-bottom: 0 !important;
}
ltuxer
2021-09-23 16:02:01 +08:00
终于找到想要的了,不然用插件 auto full screen 会看不到系统任务栏。
ltuxer
2021-12-05 16:53:47 +08:00
找到个更好的了 https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_toolbox.css ,这个内外屏切换不会出现 bug ,你这个只有一个屏时改下参数还是可以的,多屏就有点 bug 了,在外屏正常全屏,在内屏顶部会多出一部分

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/683602

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX