Overview
A Chrome extension that fills web forms intelligently using OpenAI and real-time DOM analysis. It reads the context around each form field instead of just matching by name, and gets more accurate the more you use it.
The Problem
Web forms are everywhere and they all ask slightly different versions of the same questions. Every autofill tool I tried broke constantly because they match fields by exact name attributes, which vary wildly across sites. I was re-entering the same information over and over.
My Approach
Instead of name matching, I used contextual analysis. The extension looks at labels, placeholders, surrounding text, and field types to understand what's actually being asked. OpenAI handles the semantic understanding, the extension handles the DOM interaction.
Technical Implementation
A content script parses the DOM to pull field context and sends it to the OpenAI API, which returns fill values based on a stored profile. Every manual correction gets logged and fed back to improve future accuracy. API key management is handled securely without exposing anything in the content script.
Results
Handles multi-step forms that standard autofill completely fails on. After about 20 corrections, accuracy on new form layouts gets noticeably better.
What I Learned
Learned a lot about browser security models and content script sandboxing. The main takeaway was that even a simple feedback loop beats a static model for anything personalized.