Cookie Manager PRO (Optimized + Import/Export)

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Balta Zar
今日安裝
0
安裝總數
10
評價
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.