Louis
火狐狸
火狐狸
  • UID72
  • 注册日期2004-11-23
  • 最后登录2005-01-17
  • 发帖数160
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:6682回复:3

自定义自己的右键菜单

楼主#
更多 发布于:2004-12-13 15:52
很多插件都会向你的右键菜单中插入东西,结果变得越来越长,很是讨厌,这儿给出大部分默认的右键菜单的id,这样你可以通过自己编辑userChrome.css来去除自己不想要的项目。

如何编辑userChrome.css
1 可以使用ChromeEdit扩展编辑,具体请看论坛faq或者wiki
2 手动编辑:打开你的profile目录,找到chrome目录,在这个目录下建立一个userChrome.css,如果已经存在,直接编辑就可以了。


在这儿给出一个例子:
#context-stop, 
#context-sep-stop
{ display: none !important }


这个例子中取消了两个右键项目的显示
#context-stop 右键的停止
#context-sep-stop 右键停止下放的分割线(所有有-sep都是指分割线)
!importan 表示这个式样是覆盖其它式样的

下面是大部分的右键项目id:
#context-back,
#context-bookmarklink,
#context-copyemail,
#context-sep-copyimage,
#context-sep-copylink,
#context-forward,
#context-sep-open,
#context-openlink,
#context-openlinkintab,
#context-sep-paste,
#context-sep-properties,
#context-reload,
#context-savepage,
#context-sep-selectall,
#context-viewpartialsource-mathml,
#context-viewpartialsource-selection,
#context-frame-sep,
#context-stop,
#context-sep-stop,
#context-sep-undo,
#context-viewbgimage,
#context-showonlythisframe,
#context-viewsource,
#context-viewinfo

返回顶部