userChrome.css 应该在 ubuntu 下的~/.mozilla/firefox/qqfr6h1w.default/chrome 目录中。(注意:qqfr6h1w.default 是随机的)。windows 下在 %appdata%MozillaFirefoxProfilesdefault.teachrome (注意:default.tea 也是随机的)
默认这里有个 userChrome-example.css,改名或者复制为 userChrome.css。修后后需要重新启动 firefox 才能看到效果。我推荐的设置内容如下:
/* 收藏时直接显示关键字 keyword 输入框 */
#keywordRow { display: -moz-grid-line !important; }

/* 当有历史记录时才显示前进、后退按钮*/
#back-button[disabled="true"] { display: none; }
#forward-button[disabled="true"] { display: none; }
/* 当前tab的文字为红色 */
tab[selected="true"] { color: #c00 !important; }
/* 当前tab才显示 favicon */
tab:not([selected="true"]) .tab-icon {
display: none !important; }
/* 非当前tab半透明 */
#content tab:not([selected="true"]) {
-moz-opacity: 0.5 !important; }
/* 不显示当前tab的焦点虚线 */
tab:focus > .tab-middle { -moz-outline: none !important }
/* 不显示菜单中的 “发行说明” */
menuitem[label="发行说明"] { display: none; }
/* 为地址栏和搜索栏加上圆角效果 */
#urlbar {
-moz-appearance: none !important;
-moz-border-radius: 3px !important;
padding-right: 1px !important; }
更多资料可参看 UserChrome.css
Leave a reply