Disclosure: I'm a solo developer in Korea and the author of TabZipsa, the extension mentioned at the end. This post was written with AI assistance.
If you keep three or four Chrome windows open, "which window was that tab in?" becomes a daily question. Ctrl+Shift+A (tab search) helps, but I wanted a list that's always visible next to the page. Here's the minimal version.
{
"manifest_version": 3,
"name": "All tabs side panel",
"version": "0.1.0",
"permissions": ["sidePanel", "tabs"],
"side_panel": { "default_path": "panel.html" },
"background": { "service_worker": "background.js" },
"action": {}
}
The Side Panel API needs Chrome 114+. The tabs permission is what lets you read titles and URLs.
chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });
js
async function render() {
const wins = await chrome.windows.getAll({ populate: true, windowTypes: ['normal'] });
const root = document.getElementById('root');
root.textContent = '';
wins.forEach((w, i) => {
const h = document.createElement('h2');
h.textContent = `Window ${i + 1} (${w.tabs.length})`;
root.append(h);
const ul = document.createElement('ul');
for (const t of w.tabs) {
const li = document.createElement('li');
li.textContent = t.title || t.url;
if (t.active) li.className = 'active';
li.onclick = async () => {
await chrome.windows.update(w.id, { focused: true });
await chrome.tabs.update(t.id, { active: true });
};
ul.append(li);
}
root.append(ul);
});
}
let timer;
const schedule = () => { clearTimeout(timer); timer = setTimeout(render, 100); };
for (const ev of [chrome.tabs.onCreated, chrome.tabs.onRemoved, chrome.tabs.onUpdated,
chrome.tabs.onActivated, chrome.tabs.onMoved, chrome.tabs.onAttached]) {
ev.addListener(schedule);
}
render();
panel.html is just a <div id="root"></div>, a little CSS and <script src="panel.js"></script>.
tabs.onUpdated fires many times while a page loads; without a short debounce the list flickers.windows.getAll({ populate: true }) is your friend.
Add grouping and it gets genuinely useful: chrome.tabs.group({ tabIds, createProperties: { windowId } }) plus chrome.tabGroups.update(groupId, { title, color }) (needs the tabGroups permission). Grouping by domain is a few lines of new URL(t.url).hostname.
That's roughly where TabZipsa started. It adds one-click grouping by task (an AI only sees tab titles and domains, never page content), grouping by site without AI, a history map by site or topic, and un idle tabs. You can try the AI grouping 100 times without signing in, then sign in with Google for 1,000 free classifications (one-time): https://tabzipsa.com
What would you add to a tab list in the side panel?