相关文章推荐
力能扛鼎的咖啡  ·  I need help with ...·  7 月前    · 
阳光的葫芦  ·  如何实现MySQL ...·  1 年前    · 

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