July 21, 2010Firefox 删除 List All Tabs 和 New Tab 按钮, 缩短标签页高度

Author : Kunn | Views : 748 | 1 Comment

Category: 网络相关 | Tages: , ,

自从Firefox更新到 3.6.6 之后, 对标签页的高度很不习惯, 感觉很胖, 于是放狗, 调了半天, 调的过度了, 最后成这样了 — 变成mini的了, 并且去掉了List All Tabs, New Tab 按钮和左右滚动 (当然可以用 Ctrl + Tab 代替). 因为工作需要, 我不得不每次打开N个标签, 这样每个标签一目了然, 很不错, 木哈哈~~

实现方法: 主要通过 Stylish 修改CSS.

安装完 Stylish 扩展后, 新建一个脚本, 把下面这段CSS贴进去就ok了:

/*remove list all tabs*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tabs-alltabs-button { display: none !important; }
.tabs-container > stack { display: none !important; }
.tabs-newtab-button { display: none !important; }
/*Custom Tab Bar*/

.tabbrowser-tab {
height: 20px !important;
min-height: 20px !important;
max-height: 20px !important;
}
.tab-image-right, .tab-image-left, .tab-image-middle {
min-height: 20px !important;
max-height: 20px !important;
}
.tab-text {
margin-top: 1px !important;
margin-left: 3px !important;
}
.tab-close-button > .toolbarbutton-icon {
margin-top: 1px !important;display:none;
}
.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox .scrollbutton-down,
.tabbrowser-arrowscrollbox .scrollbutton-down-box,
.tabbrowser-tabs .tabs-alltabs-box,
.tabbrowser-tabs .tabs-alltabs-box-animate,
.tabbrowser-tabs .tabs-alltabs-button {
height: 20px !important;display:none;
}

/* Change underline color of active tab – RED */

.tabbrowser-tab[selected="true"] {
border-bottom: solid 1px #FF0000 !important;
}

可以修改上面的数值, 达到自己满意的效果…

updated: 激活标签页下增加一条红线

One Comment »

  • 黎明破晓 said:

    人呢?怎么消失了?

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.