Vinh's Automations

Role: Solo Developer Timeline: 2025–Present Platform: Chrome / Edge (Manifest V3)

A secure, production-grade userscript manager browser extension for Google Chrome and Microsoft Edge. Functionally similar to Tampermonkey, purpose-built with strict per-script isolation, AES-256-GCM encryption at rest, GitHub-based install and auto-update, and a professional dashboard UI.

The Problem

Browser userscripts are essential for automating repetitive web workflows, but existing solutions had trade-offs I wanted to address:

Solution Overview

Secure Script Management

  • AES-256-GCM encryption for all script code and metadata stored in chrome.storage.local
  • PBKDF2 key derivation with per-session key caching
  • Zero telemetry — no analytics, no phone-home, no external requests except GitHub
  • Ring-buffer logger (500 entries) with source code redaction for safe log sharing

Manifest V3 Injection

  • Dual-path injection strategy: USER_SCRIPT world (Chrome 122+) with chrome.userScripts.execute()
  • ISOLATED world fallback via content script eval for older browsers
  • Trusted Types policy detection and bypass where allowed
  • Per-script IIFE isolation — no shared global scope between scripts

GitHub-Based Workflow

  • Install scripts directly from raw GitHub URLs with full metadata parsing
  • Auto-update via @updateURL with configurable intervals (1h, 6h, 12h, 24h, manual)
  • Startup checks for missed updates when the browser restarts
  • Preview metadata before installing via the dashboard

Professional Dashboard

  • CodeMirror-powered editor with syntax highlighting and line numbers
  • SPA-style dashboard: Scripts, Add, Updates, Settings, Logs, and About pages
  • Popup interface for quick script toggle and install-from-URL
  • Setup warning banner with one-click fix for chrome.userScripts permission

Tech Stack

JavaScript (ES2022) Chrome Extension API Manifest V3 CodeMirror AES-256-GCM PBKDF2 GitHub API Service Worker

Screenshots

Challenges & Solutions

Outcomes & Impact

Lessons Learned

Future Improvements