一键保存、管理和切换网站 Cookie 配置的 Chrome 扩展。
A Chrome extension to save, manage and switch website cookie profiles with one click.
- 保存配置 — 一键保存当前网站的所有 Cookie 为命名配置
- 快速切换 — 在已保存的配置间一键切换,自动清除旧 Cookie 并注入新 Cookie
- Cookie 编辑器 — 类似 Cookie-Editor 的表单式编辑,支持高级属性(Domain / Path / SameSite / Secure / HttpOnly)
- 搜索过滤 — 按名称、值、域名快速搜索 Cookie
- 导入 / 导出 — JSON 格式一键导入导出当前 Cookie
- 多域名管理 — "所有配置"标签页查看跨域名的配置,点击切换自动打开新标签页
- 图标气泡 — 插件图标显示当前域名的配置数量
- 匿名窗口支持 — 自动识别 Cookie Store,在匿名窗口中正常工作
- Save Profiles — Save all cookies of the current website as a named profile
- Quick Switch — Switch between saved profiles with one click, auto-clearing old cookies and injecting new ones
- Cookie Editor — Cookie-Editor-style form editing with advanced properties (Domain / Path / SameSite / Secure / HttpOnly)
- Search & Filter — Quick search cookies by name, value, or domain
- Import / Export — One-click import/export cookies in JSON format
- Multi-domain Management — "All Profiles" tab to view cross-domain profiles, switching opens a new tab automatically
- Badge Counter — Extension icon shows the number of saved profiles for the current domain
- Incognito Support — Automatically detects Cookie Store, works correctly in incognito windows
- 下载或克隆本仓库
- 打开 Chrome,访问
chrome://extensions/ - 开启右上角「开发者模式」
- 点击「加载已解压的扩展程序」,选择本项目文件夹
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select this project folder
- 打开目标网站
- 点击扩展图标打开弹窗
- 输入配置名称,点击「保存」
- 当前域名标签页 — 在当前标签页切换 Cookie
- 所有配置标签页 — 打开新标签页并加载对应域名和 Cookie
- 点击 Cookie 名称展开编辑表单
- 修改 Name / Value,点击保存图标提交
- 点击「显示高级」编辑 Domain、Path、SameSite 等高级属性
- 底部工具栏:添加、删除全部、导入 JSON、导出 JSON
- Chrome Extension Manifest V3
chrome.cookiesAPIchrome.storage.local- Background Service Worker
- Vanilla JavaScript / HTML / CSS
cookie_manager/
├── manifest.json # 扩展配置 / Extension config
├── popup.html # 弹窗界面 / Popup UI
├── popup.js # 弹窗逻辑 / Popup logic
├── style.css # 样式 / Styles
├── background.js # 后台服务 / Background service worker
└── icons/ # 图标 / Icons
├── icon.svg
├── icon16.png
├── icon48.png
└── icon128.png
MIT
