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

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 2 个回答
  • 1 人有此问题
  • 200 次查看
  • 最后回复者为 Slouch
  • Open

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于修改

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题