AI-driven userscript manager for Chrome. Describe what you need in natural language, and ScriptForge generates, analyzes, and installs a Tampermonkey-compatible userscript — all without leaving the browser.
- AI script generation via OpenAI-compatible APIs (OpenAI, OpenRouter, Ollama, LM Studio, etc.)
- AST-based static analysis using acorn — blocks dangerous patterns (
eval,new Function, dynamicimport, etc.) before execution - Permission confirmation UI — review the requested permissions and explicitly approve or reject
- Tamper detection via SHA-256 hashing
- Export / Import
.user.jsfiles from file or URL - Chrome Side Panel support
- Conversation-style Create tab — prompts appear as chat bubbles; reset with "Create new" button
- Auto-generated script names with emoji (e.g.
🎨 Page Colorizer)
npm install
npm run build- Open
chrome://extensions - Enable Developer mode
- Click Load unpacked
- Select the
extension/directory
npm run packageCreates dist/scriptforge-extension.zip.
- Open Settings from the extension popup and configure your API provider (base URL, API key, model)
- Choose the page context format to send: DOM Tree (recommended) or Full HTML
- Navigate to the target page, open Create tab, and describe the script you want in natural language
- Review permissions on the confirmation dialog and approve
- Enable the script from the Scripts list — reload the target page if needed
| Provider | Base URL | Example Model |
|---|---|---|
| OpenAI | https://api.openai.com/v1 |
gpt-4o-mini |
| OpenRouter | https://openrouter.ai/api/v1 |
openai/gpt-4o-mini |
| Ollama | http://localhost:11434/v1 |
llama3.2 |
| LM Studio | http://localhost:1234/v1 |
loaded model name |
When generating a script, the content of the current tab (DOM Tree or Full HTML, as configured) is sent to the API provider. Avoid using ScriptForge on sensitive pages.
- Generated code passes static analysis and permission review before execution
- Scripts run via
chrome.userScripts(USER_SCRIPT world) — noeval/new Function, CSP-compliant - After enabling a script, a page reload may be required for changes to take effect
MIT — see LICENSE