Item logo image for Auto-Collapse Tab Groups

Auto-Collapse Tab Groups

Featured
4.4(

5 ratings

)
ExtensionAccessibility330 users

1 support issue

For additional help, check out the developer's support site.

  • All
  • Questions
  • Suggestions
  • Problems

Josh Wilson

Feb 21, 2023

Possible to have the collapsed tabs reopen on mouse hover instead of click?

Hi Florian, as per the title, I was wondering if this was even possible, as I know mouseovers can be detected for anything within the browser window, but I'm not sure if that extends to elements of the browser UI itself, such as the tabs and tab groups. thoughts? I am a complete newbie to JavaScript (literally learning for a couple of weeks) but Chat GPT seems to think that the following code could do the job:

chrome.runtime.onInstalled.addListener(function() {
chrome.tabGroups.onMouseEntered.addListener(function(tabGroupId) {
chrome.tabGroups.update(tabGroupId, { collapsed: false });
});
});

I did unpack your extension, insert this code, and give it a go, but unfortunately it didnt seem to work. do you have any ideas?

Google apps