Tab Tree is a Chrome extension that automatically organizes your browser tabs into a tree structure based on their opening relationships. It helps you manage large numbers of browsing tasks efficiently.
- 🌲 Automatic Tree Structure: Automatically builds hierarchy based on the opener tab, restoring your browsing path.
- 🎨 Chrome Native Style: Polished UI design that blends perfectly with the Chrome browser visual experience.
- 🔍 Real-time Search: Quickly filter the tab tree by title or URL keywords.
- ⚡ Powerful Batch Operations:
- Close Tree: One-click to close a tab and all its descendants.
- Close Children Only: Keep the parent page but clean up all derived pages.
- Move to New Window: Extract the current tab tree to a separate window to focus on the task.
- 👀 Visual Aids: Clear indentation guide lines and Favicon support.
- Download the source code from GitHub Repository.
- Run
npm installin the project root to install dependencies. - Run
npm run buildto build the project. - Open Chrome and go to
chrome://extensions/. - Enable "Developer mode" in the top right.
- Click "Load unpacked" and select the
distdirectory.
Built with React + Vite + Ant Design.
# Install dependencies
npm install
# Start dev server (HMR supported)
npm run dev
# Build for production
npm run build- Click Tab: Switch to the corresponding tab.
- Hover Actions:
- Click ❌: Quickly close the current tab and all its children (High frequency).
- Click ...: Open menu for more actions (Close current only, Close children only, Move to new window).
- Collapse/Expand: Click the arrow on the left to toggle sub-trees.
Tab Tree 是一款能够自动整理浏览器标签页层级关系的 Chrome 扩展。它能将平铺的标签页自动转化为树状结构,帮助你更高效地管理大量的浏览任务。
- 🌲 自动树状结构:根据标签页的打开来源(Opener)自动构建层级关系,还原浏览路径。
- 🎨 Chrome 原生风格:精心打磨的 UI 设计,完美融入 Chrome 浏览器视觉体验。
- 🔍 实时搜索过滤:支持通过标题或 URL 关键词快速筛选标签页树。
- ⚡ 强大的批量操作:
- 关闭当前及子标签页:一键关闭某个任务下的所有相关页面。
- 仅关闭子标签页:保留父页面,清理所有衍生页面。
- 在新窗口打开:将当前标签树提取到独立窗口,专注当前任务。
- 👀 视觉辅助:清晰的层级缩进辅助线,支持 Favicon 显示。
- 下载本仓库源码:GitHub Repository。
- 在项目根目录运行
npm install安装依赖。 - 运行
npm run build进行构建。 - 打开 Chrome 浏览器,进入
chrome://extensions/。 - 开启右上角的“开发者模式”。
- 点击“加载已解压的扩展程序”,选择项目下的
dist目录。
本项目基于 React + Vite + Ant Design 开发。
# 安装依赖
npm install
# 启动开发服务器(支持热更新)
npm run dev
# 构建生产版本
npm run build- 点击标签:跳转到对应标签页。
- 悬停操作:
- 点击 ❌ 按钮:快速关闭当前及所有子标签页(高频操作)。
- 点击 ... 按钮:展开更多操作菜单(仅关闭当前、仅关闭子标签、移动到新窗口)。
- 折叠/展开:点击左侧箭头可折叠/展开子树。
MIT
