A high-end collection of userscripts designed for browser customization, automation, and UI/UX enhancement. The repository uses deep native DOM manipulation, background tab extraction (for cross-origin AI results), and sophisticated HSL color tokens to deliver premium, seamless browser experiences.
ai-mode-for-brave/# Google AI integration for Brave Search sidebarauto-f2-clean-cookie/# Advanced cookie and session managertexpander-ai/# AI-powered text expansion utilitiesmain.js# Universal entry point convention in each folder
- Dual-Role Logic: Scripts often use a single file with multiple
@matchrules to handle background tabs and main tabs concurrently. - Native Rendering: Prefer direct DOM extraction and injection over iframes to maintain CSS harmony and avoid security hurdles.
- Ethereal Glass Design: Consistent UI tokens (Double-Bezel, HSL dark modes) across all scripts.
- State Management: Using
GM_setValueandGM_addValueChangeListenerfor real-time cross-tab state syncing.
- Requires a userscript manager (Tampermonkey, Violentmonkey).
ai-mode-for-braverequires popups enabled for background tab extraction.
-
Brave Search SPA: Brave Search is a Single-Page Application; simple
loadevents aren't enough. Usepopstateand URL polling to ensure sidebar panels persist across filtering/navigation. -
Google AI Stream: Google AI Mode doesn't render statically; it streams. The script must wait for content settling (mutation silence) before extraction.
-
Fast Path Extraction: In v1.4.0, we replaced static waits with polling. If Google's
[data-complete]exists, we capture immediately. This significantly improves UX by reducing idle time. -
Multi-Query Cache: The script now uses
gai_cacheto store up to 10 queries simultaneously, allowing users to switch between recent searches without re-fetching content.