添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I'm looking to create a Microsoft Edge extension to create, modify, delete tab groups, but can't find any good documentation that isn't just Chrome-based. Does Edge has Edge-specific extension APIs for using its tab groups or other Edge-specific features? Seems like a pretty major loss otherwise...

Thanks

Hi @Walter Svenddal ,

Edge extensions support most Chrome APIs and you'll find more information here . Unfortunately, Edge currently does not have Edge-specific extension APIs like edge.tabs or something. But you can still use supported APIs like chrome.tabs.group to build an extension to manage tab groups in Edge.

Code sample

aync function test() {  
  var groupId = await chrome.tabs.group({ tabIds: tabId });  
  chrome.tabGroups.update(groupId, { collapsed: false, title: "title", color: "blue" });  

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Best Regards,
Shijie Li