Unpacked Chrome extension that personalizes any website with a floating orb. It screenshots the page, sends that plus your prompt to the xAI Grok API, and injects CSS (streamed) and optional JavaScript. Keep prompting to iterate. Changes stick per site until you reset.
Not on the Chrome Web Store. Chrome forbids executing model-generated JavaScript, so this is load-unpacked only for now.
- Clone this repo.
bun installbun run build- Open
chrome://extensions, turn on Developer mode, click Load unpacked, and choose.output/chrome-mv3. - On the Gloss card, turn on Allow User Scripts (needed to run generated JS on strict sites like x.com).
- Open the Gloss options page and paste an xAI API key from console.x.ai. The default model is
grok-4.5; switch togrok-4.3if that key cannot use 4.5.
- Open any normal website.
- Click the Gloss orb, or press ⌘⇧Y / Ctrl+Shift+Y.
- Prompt like
make this more zenorcalm reading mode, hide the noise. - Keep going. Each run captures a fresh screenshot so the model can iterate.
Reset clears the restyle for that origin. JavaScript changes that did not register a cleanup hook may need a page refresh.
bun run playground # UI stories at http://localhost:6006
bun run build # production zip in .output/chrome-mv3
bun run compile # typecheckTo reload an already-running Chrome that was started with --remote-debugging-port=9333 --enable-unsafe-extension-debugging:
bun scripts/load-unpacked.mjsEvery restyle sends a screenshot of the visible tab plus a small DOM sketch (URL, title, landmarks, visible labels) to api.x.ai. Your API key is stored in chrome.storage.local and is only sent as a Bearer token to xAI.
Optional JavaScript from the model runs in the page. Treat prompts on logged-in or sensitive sites accordingly.
MIT