← All posts

Guides

Migrating a userscript from Tampermonkey to a JustZix rule

You have a Tampermonkey userscript you want to move to JustZix. Most of the code pastes over unchanged — but a few things work differently. This guide walks you through it step by step.

What pastes over unchanged

Plain JavaScript working on the DOM — querySelector, addEventListener, fetch, MutationObserver — behaves identically. The core of a typical userscript goes into a rule's JavaScript tab and works.

The metadata header — cut it, move it to the UI

The // ==UserScript== block is not code — it is configuration. In JustZix its equivalent is the interface:

In the userscriptIn JustZix
@match / @includethe rule's URL pattern
@namethe rule name
@run-atrules run after the page loads
@grantnot needed — see below

GM_* functions — what is missing and what replaces it

What you gain in return

Migration is not just rewriting. In JustZix you get a hierarchy (folder/group/rule), an action bar of on-demand buttons, on-page dev windows and rule sync across devices — things a userscript manager does not have.

Pitfalls

See also

Install JustZix — and move your userscripts onto something that grows with you.

Rate this post

No ratings yet — be the first.

Try it yourself

Install JustZix and paste any snippet from this article. Two minutes from zero to a working rule across all your devices.

Get JustZix

Features · How it works · Examples · Use cases