Skip to content

Ryanu9/cookie_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍪 Cookie Switcher

一键保存、管理和切换网站 Cookie 配置的 Chrome 扩展。

A Chrome extension to save, manage and switch website cookie profiles with one click.

演示


✨ 功能 / Features

中文

  • 保存配置 — 一键保存当前网站的所有 Cookie 为命名配置
  • 快速切换 — 在已保存的配置间一键切换,自动清除旧 Cookie 并注入新 Cookie
  • Cookie 编辑器 — 类似 Cookie-Editor 的表单式编辑,支持高级属性(Domain / Path / SameSite / Secure / HttpOnly)
  • 搜索过滤 — 按名称、值、域名快速搜索 Cookie
  • 导入 / 导出 — JSON 格式一键导入导出当前 Cookie
  • 多域名管理 — "所有配置"标签页查看跨域名的配置,点击切换自动打开新标签页
  • 图标气泡 — 插件图标显示当前域名的配置数量
  • 匿名窗口支持 — 自动识别 Cookie Store,在匿名窗口中正常工作

English

  • 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

📦 安装 / Installation

中文

  1. 下载或克隆本仓库
  2. 打开 Chrome,访问 chrome://extensions/
  3. 开启右上角「开发者模式」
  4. 点击「加载已解压的扩展程序」,选择本项目文件夹

English

  1. Download or clone this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select this project folder

🔧 使用指南 / Usage

保存配置 / Save Profile

  1. 打开目标网站
  2. 点击扩展图标打开弹窗
  3. 输入配置名称,点击「保存」

切换配置 / Switch Profile

  • 当前域名标签页 — 在当前标签页切换 Cookie
  • 所有配置标签页 — 打开新标签页并加载对应域名和 Cookie

Cookie 编辑器 / Cookie Editor

  • 点击 Cookie 名称展开编辑表单
  • 修改 Name / Value,点击保存图标提交
  • 点击「显示高级」编辑 Domain、Path、SameSite 等高级属性
  • 底部工具栏:添加、删除全部、导入 JSON、导出 JSON

🏗️ 技术栈 / Tech Stack

  • Chrome Extension Manifest V3
  • chrome.cookies API
  • chrome.storage.local
  • Background Service Worker
  • Vanilla JavaScript / HTML / CSS

📁 项目结构 / Project Structure

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

📄 License

MIT

About

在chrome中自由切换你保存的cookie

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors