Firefox 70+ 开启 userChrome.css:

about:config

toolkit.legacyUserProfileCustomizations.stylesheets = True

使用方法:配置文件夹(profiles)新建一个 “chrome” 文件夹,接着在该文件夹下新建一个 userChrome.css 文件。

搜集整理的一些 CSS 样式:

/* 书签栏自动隐藏(会挤压页面 */
#PersonalToolbar .bookmark-item {
    margin: 0 !important;
}
#PersonalToolbar {
    margin-top: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    width: 100% !important;
    -moz-transition: .2s ease-in !important;
    -moz-transition-delay: .2s !important;
}
#navigator-toolbox:hover>#PersonalToolbar {
    max-height: 24px !important;
    min-height: 24px !important;
    -moz-transition: .2s ease-out !important;
    -moz-transition-delay: .2s !important;
}

/* 地址栏自动隐藏(会挤压页面 */
#nav-bar {
    min-height: 0 !important;
    max-height: 0 !important;
    --toolbarbutton-inner-padding: 0px !important;
}
#navigator-toolbox:hover>#nav-bar {
    min-height: unset !important;
    max-height: unset !important;
    --toolbarbutton-inner-padding: 5px !important;
}

/* 标签栏高度 */
#titlebar, #tabbrowser-tabs {
    margin-top: -1px !important;
    --tab-min-height: 20px !important;
    max-height: 34px !important;
}

/* 地址栏高度 */
#urlbar{ min-height: 24px !important;max-height: 24px !important;}

/* 滚动条变窄 */
.browserContainer>.browserStack>browser{
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: -3.5px;
    margin-right: -8px;
}
@-moz-document url-prefix("http://"),
    url-prefix("https://"),
    url-prefix("file://"),
    url-prefix("ftp://") {
    html{
        margin-top: 10px;
        padding-bottom: 8px;
    }
}

/* A标签淡蓝色样式 */
a{-webkit-transition: all 0.3s ease-out;}
a:hover{color: #39F !important;text-shadow:-5px 3px 18px #39F !important;-webkit-transition: all 0.3s ease-out;}
*::-webkit-selection {background: #333333 !important; color: #00FF00 !important; }

/* 去除A链接下划线 */
*{text-decoration:none!important}
a:hover{text-decoration:none!important}
a{
/*color: #014A8F;*/
-webkit-transition-property:color;
-webkit-transition-duration: 0.0s;
}

/* 指向文字加粗 */ 
a:hover {
/*color: #0000FF ;*/
-webkit-transition-property:color;
-webkit-transition-duration: 0.0s;
font-weight:bold
}

PS:Firefox Nightly 71 测试 OK

Last modification:January 6th, 2020 at 05:11 pm
如果觉得我的文章对你有用,请随意赞赏