firefox右键菜单定制
来源:互联网 发布:ucloud 域名备案 编辑:程序博客网 时间:2024/06/10 21:02
今天发现一个问题,就是经常使用打开链接在同一个窗口中,而右击时发现第一个菜单默认是在新窗口中打开,所以想修改一下,
上网搜了一些资料,发现修改一下配置文件就行了,方法如下,支持原创:
它允许你给菜单选项重新排序、也可让你隐藏菜单选项。
参考 http://kb-upgrade.mozillazine.org/index.php/Firefox_:_Tips_:_Customize_context_menu
参考扩展 Menu Editor 是插件,不是其他的文件。它允许你给菜单选项重新排序、也可让你隐藏菜单选项。
首先,定位到个人配置文件夹,找到名为 "chrome" 的子文件夹。你需要编辑该文件夹下的 userChrome.css 文件,如果它不存在就新建之。
把下面这行加入 userChrome.css 文件,将可以隐藏任何右键菜单选项。
#id1, #id2 { display:none !important; }
把 #id1, #id2 替换为下面的任何一项:(指明每个选项所对应的右键菜单选项)
#context-openlink Open Link in New Window
#context-openlinkintab Open Link in New Tab
#context-sep-open line separator
#context-bookmarklink Bookmark This Link...
#context-savelink Save Link As...
#context-sendlink Send Link...
#context-copyemail Copy Email Address
#context-copylink Copy Link Location
#context-sep-copylink line separator
#context-viewimage View Image
#context-copyimage-contents Copy Image
#context-copyimage Copy Image Location
#context-sep-copyimage line separator
#context-saveimage Save Image As...
#context-sendimage Send Image...
#context-setWallpaper Set As Wallpaper...
#context-blockimage Block Images from...
#context-back Back
#context-forward Forward
#context-reload Reload
#context-stop Stop
#context-sep-stop line separator
#context-bookmarkpage Bookmark This Page...
#context-savepage Save Page As...
#context-sendpage Send Page...
#context-sep-viewbgimage line separator
#context-viewbgimage View Background Image
#context-undo Undo
#context-sep-undo line separator
#context-cut Cut
#context-copy Copy
#context-paste Paste
#context-delete Delete
#context-sep-paste line separator
#context-selectall Select All
#context-sep-selectall line separator
#context-keywordfield Add a Keyword for this Search...
#context-searchselect Search Web for ...
#frame-sep line separator
#frame This Frame
#context-sep-properties line separator
#context-viewpartialsource-selection View Selection Source
#context-viewpartialsource-mathml View MathML Source
#context-viewsource View Page Source
#context-viewinfo View Page Info
#context-metadata Properties
#context-sep-bidi line separator
#context-bidi-text-direction-toggle Switch Text Direction
#context-bidi-page-direction-toggle Switch Page Direction
例如,隐藏 "View Background"(查看背景) 菜单选项以及之后的水平线:
#context-viewbgimage,
#context-sep-viewbgimage {
display: none !important;
}
加上一段,在菜单项无效时隐藏
/*
* 隐藏右键菜单,不活动时隐藏
*/
#context-back[ disabled ="true"] ,
#context-forward[ disabled ="true"] ,
#context-stop[ disabled ="true"] ,
#context-viewbgimage[ disabled ="true"]{
display: none !important;
}
此图片仅显示局部,请点击查看完整图片!
- firefox右键菜单定制
- 定制FLASH右键菜单
- 定制Eclipse右键new菜单
- 可定制的IE鼠标右键菜单
- 定制Eclipse RCP编辑器右键菜单
- 支持IE和FireFox的右键菜单
- 为何定制的系统,长按触摸屏没有右键菜单?
- 定制Eclipse视图Tab的右键系统菜单
- Ubuntu & GNOME 2 下 gvim 右键菜单的定制
- 在Flex中个性化定制属于你的右键菜单
- Gnome桌面的定制(修改面板 修改右键菜单) [初级]
- Eclipse中定制自己的右键new菜单
- IE,FireFox中屏蔽右键菜单和选择功能
- firefox 3,ie 8支持的右键菜单!
- javascript+css 实现右键菜单 (IE, firefox,chrome)
- javascript 右键菜单 支持多级菜单 支持不同节点展示不同菜单 兼容firefox和IE
- javascript 右键菜单 支持多级菜单 支持不同节点展示不同菜单 兼容firefox和IE
- 右键菜单
- Spring Security3.0.1于2010-01-17发布
- 获取单元格所在列的名称
- 闰年
- 用BasicMenuItemUI实现个性化菜单项的简单实例
- Spring Security 2 配置精讲
- firefox右键菜单定制
- resin 配置与使用
- 现在处事十则
- spring security 2.0.x中文参考文档
- spring security 2.0.x中文参考文档
- 码农面试之失败血泪回忆
- thinking in c++ 3.6
- 2011-1-17,2011-1-23
- DevKit8000 U-boot环境设置问题