Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Remove "Add Tab to New Group" item from Tab Context Menu

  • 2 回覆
  • 1 有這個問題
  • 144 次檢視
  • 最近回覆由 Slouch

Hi All,

I would like to remove the first item from the Tab Context Menu, which is "Add Tab to New Group", and simply have "Reload Tab" as the first menu item.

I was using this code, which worked in FF 145, until the latest update (FF 147)...

#context_openANewTab,
#context_moveTabToNewGroup,
#context_moveTabToGroup,
#context_ungroupTab + menuseparator {
   display: none !important;
}

However, now there is an extra separator line at the top of the menu (see attached images).

This code also removes the top menu item, but still leaves the separator line on top:

#tabContextMenu #context_moveTabToNewGroup {
  display: none !important;
}


Is there a way to remove the first menu item without adding the separator line?

Thanks!

Hi All, I would like to remove the first item from the Tab Context Menu, which is "Add Tab to New Group", and simply have "Reload Tab" as the first menu item. I was using this code, which worked in FF 145, until the latest update (FF 147)... #context_openANewTab, #context_moveTabToNewGroup, #context_moveTabToGroup, #context_ungroupTab + menuseparator { display: none !important; } However, now there is an extra separator line at the top of the menu (see attached images). This code also removes the top menu item, but still leaves the separator line on top: #tabContextMenu #context_moveTabToNewGroup { display: none !important; } Is there a way to remove the first menu item without adding the separator line? Thanks!
附加的畫面擷圖

由 Slouch 於 修改

所有回覆 (2)

If you don't use the tab group feature you can disable it by going to about:config in the address bar and change browser.tabs.groups.enabled to false.

That will make that menu item go away and any others related to tab grouping.

If you do use it, then perhaps someone else can come up with the correct values.

MarkRH said

If you don't use the tab group feature you can disable it by going to about:config in the address bar and change browser.tabs.groups.enabled to false.

Thanks, MarkRH.

When I set that feature to false, it does remove those tab group menu items, however the separator line still appears at the top because I am also removing the "New Tab at Right" menu item with the following code...

#context_openANewTab, #context_openANewTab + menuseparator {
   display: none !important;
}


See attached images.

I have a feeling something changed with the last update having to do with "next-sibling combinator selectors" which refer to the separator lines, because I can't figure out how to select that stray separator.

由 Slouch 於 修改

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題