An AI agent that lives in your browser

AI Userscript Agent: Say What You Want, It Writes, Runs and Fixes It

  • Say what you want done on the page you are viewing: download this table as CSV, add a light/dark mode toggle, translate it side by side in two languages. The agent writes the userscript, runs it right there and keeps fixing it until it works. Save it and it runs again next time.
  • Or just ask: summarize the article, explain this form, compare these prices. MonkeyMom reads the page and answers right there.
Before you install, pick your device:

Install the Violentmonkey extension in Edge or Chrome, then tap the Install button above.

Windows install guide

Free to install. Bring your own API key (OpenRouter or any OpenAI-compatible endpoint). 中文版

MonkeyMom AI chat showing a generated userscript with Run and Save buttons
A real MonkeyMom session: the agent writes the userscript and runs it on the page, ready to save.

What can you make with MonkeyMom?

Start with an annoying page, a repetitive task, or a missing tool. Describe the outcome; MonkeyMom writes the userscript and turns it into something useful.

Reshape any website

“Hide floating popups and give this article a comfortable dark reading mode.”

Remove clutter, rearrange layouts, add missing buttons, or create a comfortable reading view. Run the change once, or save it as a child script that applies again on your next visit.

Extract useful data

“Read the visible table on this page and turn it into a CSV file.”

Turn tables, listings, and other visible content into structured files without copying cells by hand. MonkeyMom can inspect the page, extract the data, organize it, and download the result locally.

Automate repetitive work

“Fill this form with my saved details and stop before the final submit.”

Let an agent read, click, fill fields, run scripts, and check each result. It suits lightweight workflows across one or several pages, while sensitive actions still require confirmation.

Add judgment to scripts

“Classify these items and hide the ones that are not relevant to me.”

Fixed rules are awkward with fuzzy meaning. Child scripts can call MKM.ai for classification, semantic extraction, or content decisions, while the userscript handles the page changes directly.

Why choose MonkeyMom?

MonkeyMom began with a simple idea: AI should do more than generate scripts—it should run them locally right away. It can observe the result, diagnose mistakes, and try again. The browser becomes a lightweight workspace where ideas become actions.

One mother script, many child scripts

MonkeyMom is a mother script inside your existing userscript manager. It creates smaller child scripts for pages you want to change, while providing the panel, AI generation, execution bridge, logs, and management tools. Each child focuses on one job.

You need not wait for a script author or submit a store listing before trying your idea. Describe the task and the agent writes and runs it on the page you are viewing, with no copy-paste into the manager and no install step; save it once you are happy. Child scripts can later be enabled, edited, disabled, imported, or exported.

Child scripts for certainty, AI for ambiguity

A model need not perform every tiny action. Clicks, selectors, storage, formatting, and downloads work best as deterministic code: fast, repeatable, and free of model calls. AI is added where meaning, classification, or unstructured content makes fixed rules break down.

This keeps userscripts practical while making them easier to create. The userscript gives the agent a dependable way to act; AI helps it handle situations that selectors and conditions alone cannot describe.

One agent, four capabilities

Install MonkeyMom once and every page gets an AI agent: it writes userscripts, manages them, calls AI from inside them, and completes tasks on its own.

Write, run, fix: the agent loop

Describe what you want. The agent loop can generate a script, test-run it, read logs and attempt repairs. Review the result before saving it.

Userscript manager

Enable, edit, delete, import and export child scripts. Install from .user.js links and export back to standard Tampermonkey format. A child-script store is also planned, where you will be able to download scripts made by others.

Autonomous agent

Give it a vague task. It reads the page, takes screenshots, runs scripts and keeps going across page loads until the task is done.

AI inside your scripts

Scripts call MKM.ai for semantic decisions at runtime. Your API key stays in the gateway and is never exposed to scripts.

Desktop and mobile, Edge + Violentmonkey first

On Windows, Mac and Android, the recommended setup is Edge with the Violentmonkey extension; on iPhone and iPad, use Edge with Stay for Mobile, or Safari with Stay for Safari. A compatibility layer smooths over manager differences, so the same script also runs on Tampermonkey and ScriptCat.

Built-in debugger

Per-script log bus plus an on-demand Eruda console, so you can debug on phones without DevTools.

MonkeyMom, Tampermonkey, or ChatGPT: which do you need?

These tools serve different parts of the workflow. Choose based on whether you want to run an existing userscript, write code in a chat, or generate and test a script on the page itself.

On a small screen, scroll the table sideways to see the full workflow.

MonkeyMom, Tampermonkey, or ChatGPT: which do you need?
ToolBest suited toHow you work
Tampermonkey / ViolentmonkeyInstalling and running existing userscripts, or managing code you write yourself.Install a .user.js file or paste code into the manager. The manager provides the permissions and execution environment.
ChatGPT or another AI chatDiscussing an approach, learning how userscripts work, or drafting a userscript from a description.With a plain chat workflow, copy code to your manager, test it in the browser, and return errors or page details to the conversation yourself.
MonkeyMom + a host managerCreating page-specific scripts with an AI feedback loop, or doing light browser automation.Describe the task in the page panel. MonkeyMom can run code, collect logs and ask the model to revise it. Review the result and save the child script.

Already have a script that works? Your existing manager may be enough. MonkeyMom adds an in-page AI workflow; it still needs a host manager and your own model API key.

How to have the agent write a userscript for you

From an idea to a persistent page mod in three steps.

  1. 01

    Install

    Add MonkeyMom to Violentmonkey (recommended), or Tampermonkey, ScriptCat, Stay for Mobile or Stay for Safari, then set your API key.

  2. 02

    Describe

    Open the panel on a regular web page and describe the result you want, like "export this table to CSV".

  3. 03

    Keep it

    Test the result, inspect the code, then save and enable it for the pages you choose. Automatic runs follow its match rules and run timing.

Before your first AI-generated userscript

1. Pick your device under the Install button and follow its note: on Windows and Mac, add the Violentmonkey extension to Edge or Chrome (Mac can also use Safari with Stay for Safari); on Android, add Violentmonkey inside Edge; on iPhone and iPad, add Stay for Mobile inside Edge, or use Stay for Safari. Then allow the manager to run on the site you want to change.

2. Use the install button on this page and confirm in your manager. If you see JavaScript text instead of an install dialog, check that a userscript manager is installed and enabled.

3. Open a regular website, open the MonkeyMom panel, and use Settings to enter your API endpoint, model and API key. AI requests use that provider's balance and pricing.

Get a userscript manager: Violentmonkey · Stay for Safari

Install MonkeyMom userscript⚠ Install Violentmonkey or Stay first, or this will not work

Try a small, verifiable task first

On this page, add a button above the first table that downloads its visible rows as a CSV file. Keep the column headings. Do not submit forms or navigate away.

Check the downloaded columns and rows. If the result is wrong, tell the AI what happened and include the relevant logs. Narrow the task before saving a script for repeated use.

The feedback loop matters. MonkeyMom can run code on the current page, collect logs and errors, return that evidence to the model, and revise the script. You get a tested starting point instead of an unverified snippet.

You can inspect and edit the userscript, choose where it runs, or export it as a standard userscript file. The result remains under your control.

A real agent task

From a complex table to a CSV file

A code generator gives you an answer. An agent stays with the task: inspect the page, choose an action, run a userscript, read the result, and continue until it succeeds or needs your input.

What happened in an early MonkeyMom test

In one test, the task was to turn a complex keyword table into CSV. The visible data had no convenient export, and copying every row and column by hand would have been tedious.

MonkeyMom inspected the page, wrote an extraction userscript, processed 100 rows of visible keyword data, organized the columns, and downloaded a CSV. It did not merely suggest a userscript; it ran the userscript to finish the job.

MonkeyMom agent reporting 100 rows of visible keyword data organized and downloaded as CSV
The actual agent result: 100 rows of visible keyword data organized and downloaded as CSV.

Tools for observing and acting

The agent can read pages, take full or partial screenshots, make requests, execute scripts, handle local files, and resume supported tasks after navigation. It can gather information, transform it, and produce a download instead of stopping at instructions.

MonkeyMom agent showing full-page and visible-area screenshot results
Full-page and visible-area screenshots give the agent visual context.

MonkeyMom is for lightweight browser automation, not every unattended workflow. Websites change, anti-automation systems can interfere, and AI calls add latency and cost. Sensitive actions such as payments, deletions, and publishing require confirmation.

Works with the userscript manager you already use

Windows, Mac, and mobile devices, with support for Chrome, Firefox, Edge and Safari.

  • Violentmonkey
  • Tampermonkey
  • ScriptCat
  • Stay for Safari

Managers expose different GM APIs and handle injection differently. MonkeyMom's compatibility layer gives generated and imported child scripts a more consistent environment, so authors need not rediscover every manager's quirks.

On Windows and Mac, install Violentmonkey in Edge or Chrome (on Mac, Safari with Stay for Safari also works); on Android, install Violentmonkey in Edge for Android; on iPhone/iPad, install Stay for Mobile in Edge for iOS (Violentmonkey is not available there yet), or use Stay for Safari. The host manager remains necessary. Compatibility covers supported APIs; it does not guarantee that every existing script or browser feature works unchanged.

What is a userscript?

A userscript is a small piece of JavaScript that runs on the web pages you visit and changes them the way you want: hide ads, add a download button, auto-fill a form, turn a table into CSV.

Userscripts run inside a userscript manager such as Tampermonkey, Violentmonkey, ScriptCat or Stay for Safari. The manager gives them GM APIs, extra privileges that normal page scripts don't have, like cross-origin requests, storage and downloads.

Writing a userscript used to require a developer. With MonkeyMom, you describe it and the agent writes, runs and fixes it for you.

A userscript is usually a single file whose metadata tells the manager which pages it should affect. It can personalize a website, add a feature, automate a routine, or prototype an idea without a full extension project.

MonkeyMom lowers that entry barrier. Start with plain language and run the result locally; inspect the userscript only when you want to customize, learn, or export it.

FAQ

Common questions about userscripts and MonkeyMom.

Make the web work your way

Install MonkeyMom and let the agent turn your next idea into a working userscript in minutes.

Before you install, pick your device:

Install the Violentmonkey extension in Edge or Chrome, then tap the Install button above.

Windows install guide