explaingit

blackmatrix7/ios_rule_script

📈 Trending26,147JavaScriptAudience · developerComplexity · 3/5ActiveLicenseSetup · easy

TLDR

A collection of traffic routing and automation rules for iOS proxy apps like Quantumult X, letting users control which apps use VPN and which connect normally.

Mindmap

mindmap
  root((repo))
    What it does
      Route traffic rules
      Rewrite rules
      Automation scripts
    Use cases
      Access intl services
      Block ads in apps
      Auto check-ins
      Monitor stock
    Tech stack
      JavaScript
      MagicJS framework
      iOS proxy apps
    Audience
      Chinese users
      Power users
      iOS developers
    Community
      Rule aggregation
      Open source
      26k stars

Things people build with this

USE CASE 1

Route traffic between international and Chinese services without manual switching on your iPhone.

USE CASE 2

Automatically remove ads and startup screens from Chinese shopping and utility apps.

USE CASE 3

Set up daily check-in automation for reward programs in Chinese apps.

USE CASE 4

Monitor product stock availability and receive notifications when items are back in stock.

Tech stack

JavaScriptMagicJSQuantumult XSurge

Getting it running

Difficulty · easy Time to first run · 5min
Use it freely, but any project you distribute that includes this code must also be GPL-licensed and open source.

In plain English

This is a collection of traffic routing rules and automation scripts primarily designed for iOS network proxy tools like Quantumult X and Surge. In plain terms, it helps people who use VPN-like apps on their iPhone control exactly which apps or websites get routed through a proxy and which connect normally, useful for accessing both international and Chinese services simultaneously without manual switching. The project packages two main things: routing rules (which decide how your internet traffic gets directed) and rewrite rules (which can modify or block certain requests, like stripping out ads from apps). There are also automation scripts for specific Chinese apps, for example, scripts that automatically complete daily check-ins on shopping apps, remove startup advertisements, and monitor product stock availability. The README is written entirely in Chinese and the project is clearly targeted at Chinese-speaking users navigating a split internet environment. It is a community aggregation effort rather than original rule creation, the maintainers collect and organize rules from across the open-source community into one convenient place. The scripts run inside apps like Quantumult X using a JavaScript-based framework called MagicJS. For a non-technical founder: think of this as a configuration pack for power users who want fine-grained control over their mobile network traffic. You would not install or deploy this yourself, it requires specific iOS proxy apps and technical setup. It has nearly 26,000 GitHub stars, indicating a large and active user base in the Chinese developer community.

Copy-paste prompts

Prompt 1
How do I import these routing rules into Quantumult X to split traffic between VPN and direct connections?
Prompt 2
Show me how to write a MagicJS automation script that auto-completes daily check-ins in a Chinese shopping app.
Prompt 3
How can I use the rewrite rules in this repo to block ads in iOS apps without a system-wide ad blocker?
Prompt 4
What's the difference between routing rules and rewrite rules in Quantumult X, and when would I use each?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.