合并Firefox工具栏获取更多显示空间

来源:互联网 发布:今年网络流行词 编辑:程序博客网 时间:2024/05/16 05:55

来源:http://www.verydemo.com/demo_c116_i85802.html

http://www.lifehacker.com/software/firefox/geek-to-live-consolidate-firefoxs-chr
ome-210542.php

她这里讲到的方法,可以把Firefox导航栏合并到菜单栏上,从而节省空间,扩大页面显示
面积,对于小屏幕比较有用(大屏幕高分屏也可用来扮酷吧)。

首先是在导航栏空白处点右键,然后“定制”,在定制窗口中选中“使用小按钮”,然后把
导航栏上的按钮拖动到菜单栏右边空白处,包括地址框和搜索框。不想用的按钮就不必再拖
了。

再在导航栏上点右键,把导航栏取消掉,也就是不显示它。这些操作也可以在菜单--显示
--工具栏里面进行。

这样之后,菜单栏可能会很挤,地址栏也不够长,这时就要用Firefox的超强定制能力来设
置一下。方法是修改用户的userChrome.css文件(这个文件的位置在下面,如果没有就拿目
录下的example文件拷贝一个),主要项目有:

/*
* 去掉Help菜单。其他的菜单名字是:
* file-menu, edit-menu, view-menu, go-menu, bookmarks-menu, tools-menu, helpMenu
*/
#helpMenu, #go-menu, #bookmarks-menu { display: none !important; }

/*
* 让 前进/后退/停止三个按钮只在有效时才显示,如果没有可前进或可后退的页面时就不
显示
*/
#back-button[disabled="true"] { display: none; }
#forward-button[disabled="true"] { display: none; }
#stop-button[disabled="true"] { display: none; }

/* 去掉载入页面时右上角旋转的小按钮 throbber */
#throbber-box { display: none !important; }

/*
* 去掉地址栏里的Go按钮,以及搜索栏后面的Go按钮。
* 这个好像可以通过about:config来做。
*/
#go-button-stack, .search-go-button-stack {
display: none !important;
}

/*
* 修改搜索框的宽度。如果用Google工具栏替换了这个搜索栏的话,可能无效。
*/
#search-container, #searchbar {
-moz-box-flex: 200 !important;
}

各个系统下userChrome.css文件的位置见下面。修改userChrome.css以取得更多其他设置的
方法可以参考Mozilla网站上的说明。

Linux
~/.mozilla/firefox/xxxxxxxx.default/chrome/

Mac OS X
~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/chrome/

Windows XP/2000
C:\Documents and Settings\[User Name]\Application
Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\chrome\
where xxxxxxxx is a random string of 8 characters.

Windows 95/98/Me
C:\WINDOWS\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\chrome\

0 0
原创粉丝点击