Firefox:删除多余的右键菜单选项
Mozilla中文Wiki
您的位置: 首页 → userChrome.css专题 → 删除多余的右键菜单选项
参考:http://kb.mozillazine.org/index.php/Firefox_:_Tips_:_Customize_context_menu
参考扩展Menu Editor (http://menueditor.mozdev.org)。它允许你给菜单选项重新排序、也可让你隐藏菜单选项。
首先,定位到个人配置文件夹,找到名为 "chrome" 的子文件夹。你需要编辑该文件夹下的userChrome.css文件,如果它不存在就新建之。
把下面这行加入userChrome.css文件,将可以隐藏任何右键菜单选项。
#id1, #id2 { display:none !important; }
把 #id1, #id2 替换为下面的任何一项:(指明每个选项所对应的右键菜单选项) FIXME
#context-back #context-blockimage #context-bookmarklink #context-bookmarkpage #context-copy #context-copyemail #context-copyimg #context-copyimg-contents #context-copylink #context-cut #context-delete #context-forward #context-metadata #context-openlink #context-openlinkintab #context-paste #context-reload #context-saveimage #context-savelink #context-savepage #context-searchselect #context-selectall #context-sendimage #context-sendlink #context-sendpage #context-sep-open #context-sep-stop #context-setWallpaper #context-stop #context-undo #context-viewbgimage #context-viewimage #context-viewinfo #context-viewpartialsource-mathml #context-viewpartialsource-selection #context-viewsource #openintabs-menuseparator #openintabs-menuitem
例如,隐藏 "View Background"(查看背景) 菜单选项以及之后的水平线:
#context-viewbgimage,
#context-sep-viewbgimage {
display: none !important;
}
![[首页]](/stylesheets/images/wiki.png)