Skip to content

Makoo Documentation ​

Makoo is a framework for developing userscripts. You write components in Vue or React, then declare where on the page they mount and which page events they listen to. Makoo waits for elements to appear, mounts components, binds events, and cleans up completely when the page replaces nodes or a feature stops. The development server and userscript build are provided by Vite and vite-plugin-monkey.

Tampermonkey, Violentmonkey, and ScriptCat are supported. You need to know JavaScript, CSS selectors, and how to write components in your chosen framework.

Start Here ​

If this is your first time, complete the two tutorials in order:

  1. Quick Start: create a project, install the development script, and see your first component on a page.
  2. Tutorial: A Toggleable Tool Panel: build a panel that listens to a page element and can be closed and reopened.

If you already have a Vite project, see Add Makoo to an Existing Project.

Read as Needed ​

You want toRead
Complete a specific taskHow-to guides: Mount Components, Listen to Page Events, Control Injections and Read Status, Handle Node Replacement
Configure, debug, and releaseProject Configuration, Local Development, Build and Preview, Troubleshooting
Understand why it works this wayCore Concepts, Injection Lifecycle, Error Categories and Handling, Hot Updates
Look up parameters, return values, and typesAPI Reference

When to Use It ​

When a userscript places components in several locations, listens to events on site elements, and has to deal with asynchronously loaded DOM, node replacement in single-page apps, and resource release, Makoo manages all of this in one place.

If you only change an element once when the page loads, the native DOM API is usually enough.

Package Roles ​

PackageRuns inPurpose
@makoojs/coreBrowserCreate Core instances, declare components and listeners, control and read status
@makoojs/vue / @makoojs/reactBrowserFramework adapters and the APIs used inside components
@makoojs/cliNodeThe makoo() and makooDev() Vite plugins and the dev / build / preview commands
@makoojs/cli/monkeyBrowserCall the script manager's GM APIs
@makoojs/create-makooNodeCreate new projects