Create/Modify tab groups with Microsoft Edge Extension

Walter Svenddal 21 Reputation points Microsoft Employee
2023-01-03T23:12:10.137+00:00

Hi,

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

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-01-04T06:50:58.57+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.