Tweak any webpage with a prompt.
For example:
- Hide all headlines about the NBA
- Convert this page to dark mode
- Change the font style to inter
git clone https://github.com/willhennessy/tweak.git
cd tweakNo build step required. This is a plain HTML/CSS/JS extension.
- Open
chrome://extensions - Enable Developer mode (toggle in the top right)
- Click Load unpacked
- Select the
tweakfolder
- Click the Tweak icon in your toolbar
- Paste your Anthropic API key and save
- Pin the Tweak icon in your toolbar
- Navigate to any webpage
- Click the Tweak icon
- Type a visual change (e.g. "make the follow button green")
- Press Apply or
Cmd+Enter
Applied tweaks are saved per domain and re-injected automatically on future page loads. You can toggle or delete them from the Active tab in the popup.
- Chrome 116+
- Anthropic API key (Claude)
- coming soon: Codex API key
- coming soon: freemium model, no API key required
Tweak sends the page's HTML and your prompt to Claude, which returns a CSS ruleset. The extension injects that CSS directly into the page using Chrome's scripting.insertCSS API — no eval, no JavaScript execution, no CSP issues.
Tweaks are stored in chrome.storage.local keyed by domain and re-applied via a tabs.onUpdated listener on each page load.
manifest.json Chrome extension manifest (MV3)
background.js Service worker — handles Claude API calls and CSS injection
content.js Content script — manages tweak storage per domain
popup.html/js Extension popup UI
options.html/js API key settings page