Skip to: Site menu | Main content

本站永久網址:blog.anthonychen.idv.tw

[Firefox] 編輯右鍵選單的項目

在 userChrome.css 中加入下面語法可以修改 Firefox 的右鍵選單,這樣就不用依賴 MenuEditor 套件了。(更改 menuitem 的 label 即可更改其他選項)
/* 取消下列右鍵選單項目 */

#contentAreaContextMenu menuitem[label="Reload"],
                        menuitem[label="Open Link in New Window"],
                        menuitem[label="Send Image..."],
                        menu[label="ScrapBook"]
{
    display: none !important;
}

/* 取消右鍵選單分隔線 */
#contentAreaContextMenu menuseparator 
{
    display: none;
}

/* 隱藏 disabled 的項目*/

menuitem[disabled="true"],
menuitem[disabled="true"] + menuseparator { 
    display: none;
} 

*測試版本:Firefox 1.5、Firefox 2.0 beta 2



Technorati Tags:

2006年09月07日 下午11:00 by anthonychen
Permalink 迴響 [0]

引用 URL: http://www.javaworld.com.tw/roller/anthonychen/entry/2006_9_6_firefox_context_menu
迴響:

發表迴響:

姓名:
E-Mail:
URL:

您的迴響:

HTML 語法: 關閉