[Duplicated][Request]Add Tab Islands
-
Angrythekidd last edited by leocg
Honestly, this browser should have tab islands like Opera One. Who's with me!?!
-
Senumad last edited by
Opera GX has a lot of features that makes it better, and adding features from opera one would be better for client side and market side since most of my friends use brave because of tab groups.
-
steadythrone376 last edited by leocg
Hello, I wrote code to create tab islands in opera gx. I keep getting the error tab that tab grouping isn't supported in this window. I will provide my background.js. Thanks!
chrome.runtime.onInstalled.addListener(() => { console.log("Tab Islands extension installed."); }); chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { if (request.action === "organizeTabs") { chrome.tabs.query({ currentWindow: true }, (tabs) => { if (chrome.tabGroups) { chrome.tabs.group({ tabIds: tabs.map(tab => tab.id) }, (group) => { if (chrome.runtime.lastError) { console.error("Error grouping tabs:", chrome.runtime.lastError); return; } chrome.tabGroups.update(group, { title: "Tab Island", color: "blue" }, () => { if (chrome.runtime.lastError) { console.error("Error updating tab group:", chrome.runtime.lastError); return; } console.log("Tabs organized into islands."); }); }); } else { console.error("Tab grouping is not supported in this window."); } }); } });
-
sgunhouse Moderator Volunteer last edited by
@steadythrone376 Well, your code doesn't add the feature - merely presumes it is there but hidden. Did you expect that to work?
-
steadythrone376 last edited by steadythrone376
@sgunhouse I thought since opera supports the tabs extension API, I code use that function from that , and I give permissions in my manifest.json for tabs. Is my logic flawed? How could I fix it?
-
sgunhouse Moderator Volunteer last edited by
@steadythrone376 The error message implies that the object chrome.tabgroups does not exist, yes? Hence the only way to fix it would be to create it, and all its associated features and functions. Probably possible, but by no means trivial.