Rule Rewriter

Make a rewrite rule for Surge, Loon, Quantumult X, Shadowrocket or Stash: pick the requests, pick the JSON fields to change, and test it before you use it.

1. Which requests

* matches anything, like /v1/*/profile.

2. What to change

Paths look like data.user.vip. Use [0] for one list item and [*] for all of them: data.items[*].price.

The parsed body is obj.

3. Your app

Where the script will live, like a GitHub raw or gist link. Put the script there, then paste the config into your app.

Pattern



              

Script



              

Config



              

Try it

Everything runs in your browser. Only change traffic for apps and accounts you own or are allowed to test.