Cookie Manager PRO (Optimized + Import/Export)

Faster startup, optimized DOM, draggable UI, import/export, stable deletion.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Balta Zar
日安装量
1
总安装量
11
评分
0 0 0
版本
2.1
创建于
2025-10-29
更新于
2025-11-26
大小
10.6 KB
许可证
暂无
适用于
所有网站

A fast, portable, drag-and-drop cookie manager with full import/export, strong deletion logic, real-time search, and Shadow-DOM UI isolation. Designed for high performance and full cross-site compatibility.

Features

1. Clean & Self-Contained Interface

Floating 🍪 launcher button (draggable).

Modern dark-themed panel with isolated Shadow DOM to prevent CSS conflicts.

Fully draggable control panel with smooth movement.

Lightweight UI with optimized DOM updates.



---

2. Complete Cookie Management

View

Loads all cookies from the current page.

Displays name, value (truncated), and actions.

Auto-escaping prevents HTML/UI injection.


Search.

Real-time filtering by cookie name or value.


Add

Add new cookies with name + value prompts.


Edit

Edit cookie values directly from the table.


Delete (Single).

Advanced deletion algorithm:

Removes cookies across all domain variations.

Removes cookies across all path depths.

Uses proper expires=1970 invalidation.


Ensures maximum deletion reliability even on complex subdomains.


Delete All.

Confirmation prompt before wiping all cookies.

Uses the same robust domain/path traversal logic.



---

3. Import / Export Tools

Export Cookies.

Downloads a cookies.json file.

Includes all cookies in a clean, pretty-formatted JSON structure.


Import Cookies.

Accepts JSON files in the same format.

Automatically writes each cookie back to document.cookie.

Validates JSON and alerts on corruption.



---

4. Performance Optimizations

Loads only after document-idle for compatibility and speed.

Deferred initialization (150 ms post-ready) to avoid blocking page rendering.

Efficient DOM rendering via batch HTML updates.

Minimal event listeners and no external libraries.



---

5. Technical Notes

Runs on all websites (*://*/*)

Uses only native JavaScript.

Zero external dependencies.

Fully contained inside a Shadow DOM to avoid styled breaks on any webpage.

Supports both mouse and touch drag interactions.



📌 How to Use

1. Install the script.


2. Click the 🍪 floating button to open the cookie panel.


3. Use:

Search to quickly find cookies.

Add/Edit/Delete to modify entries.

Export/Import to back up or restore cookies.

Delete All for full cleanup (with confirmation).





---

📌 Why This Script Is Better?

Faster and cleaner than most cookie managers.

Much more reliable deletion thanks to multi-domain/path traversal.

Shadow DOM UI prevents site CSS from breaking the interface.

Perfect for debugging, testing, or persistent cookie management.

Mobile-friendly drag interface.