Firefox 有不少多余的右键菜单,在使用中,经常会出现误点,令人非常不爽,特别是几个发送菜单最为烦人。有没有可能删除 Firefox 多余的右键菜单呢?功能强大的 Firefox 自然不会让人失望,通过 Firefox 的配置文件中”userChrome.css”可以达到删除多余菜单的目的。通过这个文件也可对 firefox 界面进行定制。

“userChrome.css”的位置在 Firefox 的配置文件夹的”chrome”子目录中。这个文件默认是不存在的,所以在添加下面代码前,需要建立这个文件,其实默认存在一个名叫”userChrome-example.css”的文件,用它另存即可。

以下是个人使用的删除右键多余菜单的 css 代码:

#context-back,
#context-forward,
#context-reload,
#context-stop,
#context-sep-stop,
#context-bookmarkpage,
#context-savepage,
#context-sendpage,
#context-sep-viewbgimage,
#context-openlink,
#context-sep-open,
#context-bookmarklink,
#context-sendlink,
#context-sep-copyimage,
#context-sendimage,
#context-setWallpaper
{ display: none !important; }

以下是代码说明:

#context-back 后退
#context-forward 前进
#context-reload 刷新
#context-stop 停止
#context-sep-stop 停止”下面的分隔符
#context-bookmarkpage 加入收藏夹…
#context-savepage 页面另存为…
#context-sendpage 发送页面…
#context-sep-viewbgimage 查看背景图片上面的分隔符
#context-openlink 在新窗口中打开
#context-sep-open 在新标签中打开链接下面的分隔符
#context-bookmarklink 加入收藏夹…
#context-sendlink 发送链接…
#context-sep-copyimage 复制图片地址下面的分隔符
#context-sendimage 发送图片…
#context-setWallpaper 设为桌面壁纸…