在火狐浏览器 Firefox 中安装扩展 firebug 后,会在工具栏增加一个 firebug 按钮,一直喜欢简洁的界面,看着不爽。而且一般都是直接通过右键点击“查看元素”打开 firebug,也用不到这个按钮。于是想到把 firebug 按钮删除。

其删除方法与“删除 firefox 多余右键菜单方法”一样,通过 Firefox 的配置文件中”userChrome.css”来达到目的。“userChrome.css”的位置在 firefox 的配置文件夹的”chrome”子目录中。

由于新版 Firefox 中“chrome”这个文件夹默认是不存在的,所以需要先建立这个文件夹,然后在新建的“chrome”文件夹中新建“userChrome.css”文件,再添加以下代码,保存重启 Firefox 即可。

以下是删除 firebug 工具栏按钮的 css 代码:

#firebug-button { display: none !important; }

Firefox 个人配置文件夹(profile)在各操作系统中的位置:

Windows xp Documents and Settings\你的用户名\Application Data\Mozilla\Firefox\Profiles

Windows 7 Users\你的用户名\AppData\Roaming\Mozilla\Firefox\Profiles

Linux ~/.mozilla/firefox/

MCA 你的用户名/Library/Application Support/Firefox/Profiles