火狐是可以自定义css来控制一些窗体组件的,所以摘录一些右键菜单的类名,给需要的同学。
以下内容摘录自:火狐Firefox CSS樣式:隱藏三道槓選單多餘選項
/*三道杠*/
#appMenu-new-window-button,/*新增视窗*/
#appMenu-private-window-button,/*新增隐私视窗*/
#appMenu-find-button,/*查找*/
#appMenu-more-button,/*更多*/
#appMenu-print-button,/*列印*/
#appMenu-print-button + toolbarseparator,
#appMenu-open-file-button,
#appMenu-save-file-button,/*存档*/
#appMenuRestoreLastSession,
#appMenu-library-button,
#appMenu-edit-controls,
#appMenu-zoom-controls,
#appMenu-mainView > vbox:nth-child(1) > toolbarseparator:nth-child(8),
#appMenu-mainView > vbox:nth-child(1) > toolbarseparator:nth-child(10),
#appMenu-mainView > vbox:nth-child(1) > toolbarseparator:nth-child(12),
/*页面右键视窗单*/
/*分享-视窗中项目-此图片-此链结-此页面*/
#context-shareselect,
#context-shareimage,
#context-sharelink,
#context-sharepage,
/*复制-图片网址-图片*/
#context-copyimage,
#context-copyimage-contents,
/*发送-页面链结-链结-图片到*/
#context-sendpage,
#context-sendlink,
#context-sendimage,
/*发送页面-链结到设备...*/
#context-sendpagetodevice,
#context-sendlinktodevice,
/*打开链结*/
#context-openlinkincurrent,
#context-openlinkintab,/*用新分页开启*/
#context-openlink, /*在新视窗*/
#context-openlinkprivate, /*在新的隐私浏览视窗*/
#context-openselectedlinksintab,/*在新分页中视窗中的*/
/*分隔线*/
#appMenuHistory.clearRecent.label,/*回复先前浏览*/
#appMenu-fxa-container + toolbarseparator,/*登录同步服务下方*/
#tabContextMenu > menuseparator,/*分页全部*/
#context-sep-copyimage, /*复制图片下面的*/
#context-sep-stop, /*停止下面的*/
#context-sep-selectall, /*全视窗下面的*/
#spell-check-enabled, /*拼写检查*/
#spell-separator, /*拼写检查*/
#inspect-separator, /*审查元素*/
#context-sep-viewbgimage,/*检视背景图*/
#context-sep-viewsource, /*元素*/
#context-sep-open, /*新视窗下面的*/
/*此...加入书签*/
#context-bookmarkpage, /*页面*/
#context-bookmarklink, /*链结*/
/*检视*/
#context-inspect,/*元素*/
#frame,/*本页框*/
#context-keywordfield,/*为此搜寻添加关键字…*/
#context-savepage,/*网页另存为*/
#spell-add-dictionaries-main,/*新增字典*/
/*menu[label="In My Pocket"].menu-iconic,/*页面*/
menuitem[label*="Pocket"].menuitem-iconic,/*链结*/
/*===分页列右键视窗单===*/
#context_toggleMuteTab,/*静音*/
#context_duplicateTab,/*复制分页*/
/*关闭*/
#context_closeTab,
#toolbar-context-undoCloseTab,/*复原*/
#context_undoCloseTab,/*复原*/
/*重新-载入/全部*/
#context_reloadTab,
#context_reloadAllTabs,
/*将分页传送到装置*/
#context-sep-sendpagetodevice,
#context-sep-sendlinktodevice,
#context_sendTabToDevice,
#context_sendTabToDevice_separator,
#context_openNonRemoteWindow,
#context_openTabInWindow,/*移动到新视窗*/
#context_closeTabsToTheEnd, /*关闭右侧*/
#menu_restoreAllTabs,/*还原所有*/
/*书签右键/按钮*/
#subscribeToPageMenuitem,/*订阅此页…*/
#placesContext menuseparator,
#placesContext_editSeparator,.hide-if-empty-places-result,
#placesContext_sortSeparator,[class="bookmarks-actions-menuseparator"],
#placesContext_openSeparator,
#placesContext_deleteSeparator,/*分隔线*/
[id="placesContext_open:newprivatewindow"],/*用新隐私视窗开启*/
[id="placesContext_open:newtab"], /*用新分页开启*/
[id="placesContext_open:newwindow"], /*在视窗中开启*/
[id="placesContext_new:separator"], /*新增分割线*/
[id="placesContext_sortBy:name"], /*按名称排序*/
[id="placesContext_openContainer:tabs"],/*全部用分页开启*/
#placesContext_open,/*开启*/
#placesContext_cut,/*剪下*/
#placesContext_paste,/*贴上*/
#personal-bookmarks .toolbarbutton-text,/*文字*/
#BMB_bookmarksShowAllTop,/*管理所有*/
#BMB_unsortedBookmarks,/*其他*/
#BMB_bookmarksPopup menuseparator:first-of-type,/*分隔线*/
#BMB_bookmarksPopup menuseparator:nth-of-type(2),
menupopup[placespopup="true"] > menuseparator:nth-last-child(-n+2) + menuitem /*用新分页开启*/
{display: none !important;
}
/*历史按钮选单*/
#appMenuViewHistorySidebar,
#appMenuClearRecentHistory,
#appMenuRecentlyClosedTabs,
#appMenuRecentlyClosedWindows,
#appMenuRecentlyClosedWindows + toolbarseparator,
.PanelUI-subView toolbarseparator:nth-child(3),
/*右键三按钮*/
#context-navigation,
#context-sep-navigation{
display: none !important;
}
如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。
如本文对您有用,捐赠和留言 将是对我最好的支持~(捐赠可转为站内积分)
如愿意,请向朋友推荐本站,谢谢。
尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。
留言