brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
browser-session-exportExport browser sessions for debugging and testing. Useful for replicating user sessions in development. Use when: browser debug, session export, cookie export
Independent GitHub snapshot · Automated classification · Original documentation governs
name: browser-session-export description: | Export browser sessions for debugging and testing. Useful for replicating user sessions in development.
Debug browser sessions by exporting cookies and local storage.
To extract data from browser SQLite databases, use:
from scripts.browser_exporter import extract_sqlite_data
# Extract data from a browser database file
data = extract_sqlite_data("/path/to/Cookies")
print(data)
That's it! The extract_sqlite_data() function reads SQLite databases and returns structured data.
✅ SQLite Expertise: Handles browser database formats automatically
✅ Multi-Browser Support: Works with Chrome, Firefox, and other browser databases
✅ Safe Read-Only Operations: Reads data without modifying browser profiles
✅ Cross-Platform: Works on macOS, Linux, and Windows
browser-session-export/
├── SKILL.md
└── scripts/
└── browser_exporter.py# Core export implementation
extract_sqlite_data(db_path)Helper function for reading SQLite databases. Safely extracts all table data from a database file.
Parameters:
db_path (str): Path to the SQLite database fileReturns:
dict: Dictionary with table names as keys and row data as valuesExample:
from scripts.browser_exporter import extract_sqlite_data
# Read Chrome cookies database
cookies = extract_sqlite_data("~/.config/google-chrome/Default/Cookies")
# Read Firefox cookies
firefox_cookies = extract_sqlite_data("~/.mozilla/firefox/profile/cookies.sqlite")
| Browser | Platform | Common Database Files |
|---|---|---|
| Chrome | macOS, Linux, Windows | Cookies, Login Data, History, Web Data |
| Firefox | macOS, Linux, Windows | cookies.sqlite, places.sqlite |
| Edge | macOS, Linux, Windows | Cookies, Login Data |
~/Library/Application Support/Google/Chrome/Default/~/.config/google-chrome/Default/%LOCALAPPDATA%/Google/Chrome/User Data/Default/~/.mozilla/firefox/<profile>/%APPDATA%/Mozilla/Firefox/Profiles/<profile>/extract_sqlite_data() to read the databaseNote: Browser databases may be locked when the browser is running. Consider copying the database file to a temporary location before reading.
import os
from scripts.browser_exporter import extract_sqlite_data
# Define Chrome profile path (Linux)
chrome_base = os.path.expanduser("~/.config/google-chrome/Default/")
# List of databases to extract
databases = ["Cookies", "Login Data", "History"]
for db_name in databases:
db_path = os.path.join(chrome_base, db_name)
if os.path.exists(db_path):
data = extract_sqlite_data(db_path)
if data:
print(f"✅ Extracted {db_name}: {len(data)} tables")
for table, rows in data.items():
print(f" - {table}: {len(rows)} rows")
else:
print(f"❌ Failed to read {db_name}")
else:
print(f"⚠️ {db_name} not found")
For complete function signatures and advanced usage, see scripts/browser_exporter.py.
Your debugging companion for browser sessions