Convert Figma logo to code with AI

blackmatrix7 logoios_rule_script

分流规则、重写写规则及脚本。

17,270
2,767
17,270
135

Top Related Projects

3,266

SSR 去广告ACL规则/SS完整GFWList规则/Clash规则碎片,Telegram频道订阅地址

🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 等基于 Clash Premium 内核的客户端。

8,116

This project is based on the scripting capabilities of several excellent iOS proxy tools (e.g. Surge, Quantumult X)

Quick Overview

The blackmatrix7/ios_rule_script repository is a comprehensive collection of rules and scripts for iOS ad blocking and network management. It provides a wide range of customizable rules for popular ad blockers and network tools, helping users to enhance their browsing experience and control network traffic on iOS devices.

Pros

  • Extensive collection of rules for various applications and services
  • Regular updates to keep rules current and effective
  • Supports multiple popular ad blocking and network management tools
  • Well-organized and easy to navigate repository structure

Cons

  • Primarily focused on Chinese websites and services, which may limit usefulness for non-Chinese users
  • Requires some technical knowledge to implement and customize rules
  • May cause unintended blocking of desired content if not configured properly
  • Large repository size may be overwhelming for new users

Getting Started

To use the rules and scripts from this repository:

  1. Choose the appropriate rule set for your ad blocker or network tool (e.g., Surge, Quantumult X, Loon).
  2. Copy the raw URL of the desired rule file.
  3. Add the URL to your ad blocker or network tool's configuration.
  4. Update and apply the rules in your app.

For example, to use Surge rules:

1. Go to the Surge folder in the repository.
2. Select the desired rule file (e.g., Advertising.list).
3. Click on "Raw" to get the raw URL.
4. In Surge, go to Settings > Rule Set > Add New Rule Set.
5. Paste the raw URL and give it a name.
6. Enable the new rule set in your Surge configuration.

Remember to regularly update your rules to ensure optimal performance and effectiveness.

Competitor Comparisons

3,266

SSR 去广告ACL规则/SS完整GFWList规则/Clash规则碎片,Telegram频道订阅地址

Pros of ACL4SSR

  • More comprehensive rule sets for various applications and services
  • Frequent updates and active community contributions
  • Better support for Chinese websites and services

Cons of ACL4SSR

  • Less focus on iOS-specific rules
  • May include more rules than necessary for some users
  • Documentation primarily in Chinese, which may be challenging for non-Chinese speakers

Code Comparison

ACL4SSR:

# 内容:YouTube
# 数量:17条
USER-AGENT,com.google.ios.youtube*
USER-AGENT,YouTube*
DOMAIN-SUFFIX,googlevideo.com
DOMAIN-SUFFIX,youtube.com
DOMAIN,youtubei.googleapis.com

ios_rule_script:

# YouTube
DOMAIN-SUFFIX,googlevideo.com
DOMAIN-SUFFIX,youtube.com
DOMAIN,youtubei.googleapis.com
DOMAIN-SUFFIX,ytimg.com
USER-AGENT,com.google.ios.youtube*

Both repositories provide similar rule structures, but ACL4SSR tends to have more detailed and numerous rules for each service. ios_rule_script focuses more on iOS-specific implementations and may have more concise rule sets for certain applications.

🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 等基于 Clash Premium 内核的客户端。

Pros of clash-rules

  • More focused on Clash configuration rules
  • Regularly updated with community contributions
  • Lightweight and easy to integrate into existing Clash setups

Cons of clash-rules

  • Less comprehensive coverage of platforms compared to ios_rule_script
  • Fewer customization options for different use cases
  • Limited documentation and examples for new users

Code Comparison

clash-rules:

payload:
  - DOMAIN-SUFFIX,google.com
  - DOMAIN-SUFFIX,youtube.com
  - IP-CIDR,172.217.0.0/16

ios_rule_script:

DOMAIN-SUFFIX,google.com
DOMAIN-SUFFIX,youtube.com
IP-CIDR,172.217.0.0/16,no-resolve

The code structure is similar, but ios_rule_script uses a simpler format without the payload: wrapper. Additionally, ios_rule_script includes the no-resolve option for IP-CIDR rules, which can improve performance in certain scenarios.

Both repositories provide valuable resources for managing network traffic and content filtering. clash-rules is more specialized for Clash users, while ios_rule_script offers a broader range of rules and scripts for various platforms and applications. Users should choose based on their specific needs and the platforms they're using.

8,116

This project is based on the scripting capabilities of several excellent iOS proxy tools (e.g. Surge, Quantumult X)

Pros of Script

  • More focused on specific scripts for popular apps and services
  • Simpler structure, easier for beginners to navigate
  • Includes detailed usage instructions for each script

Cons of Script

  • Less comprehensive rule set compared to ios_rule_script
  • Updates less frequently
  • Limited support for advanced configurations

Code Comparison

Script:

var body = $response.body;
var obj = JSON.parse(body);
obj.data.is_vip = true;
obj.data.vip_endtime = 1893427199;
body = JSON.stringify(obj);
$done({body});

ios_rule_script:

name: Example Rule
desc: This is an example rule
rules:
  - DOMAIN-SUFFIX,example.com,DIRECT
  - DOMAIN-KEYWORD,ad,REJECT
  - IP-CIDR,192.168.0.0/16,DIRECT

The Script repository focuses on individual JavaScript scripts for specific app modifications, while ios_rule_script provides a more comprehensive set of rules and configurations for various purposes, including ad-blocking, network routing, and app modifications. Script is more suitable for users looking for quick, ready-to-use solutions for popular apps, while ios_rule_script offers a more extensive and customizable approach to iOS network management and app modifications.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Rules And Scripts

前言

各平台的分流规则、复写规则及自动化脚本。

特别声明

  1. 本项目内所有资源文件,禁止任何公众号、自媒体进行任何形式的转载、发布。
  2. 编写本项目主要目的为学习和研究ES6,无法保证项目内容的合法性、准确性、完整性和有效性。
  3. 本项目涉及的数据由使用的个人或组织自行填写,本项目不对数据内容负责,包括但不限于数据的真实性、准确性、合法性。使用本项目所造成的一切后果,与本项目的所有贡献者无关,由使用的个人或组织完全承担。
  4. 本项目中涉及的第三方硬件、软件等,与本项目没有任何直接或间接的关系。本项目仅对部署和使用过程进行客观描述,不代表支持使用任何第三方硬件、软件。使用任何第三方硬件、软件,所造成的一切后果由使用的个人或组织承担,与本项目无关。
  5. 本项目中所有内容只供学习和研究使用,不得将本项目中任何内容用于违反国家/地区/组织等的法律法规或相关规定的其他用途。
  6. 所有基于本项目源代码,进行的任何修改,为其他个人或组织的自发行为,与本项目没有任何直接或间接的关系,所造成的一切后果亦与本项目无关。
  7. 所有直接或间接使用本项目的个人和组织,应24小时内完成学习和研究,并及时删除本项目中的所有内容。如对本项目的功能有需求,应自行开发相关功能。
  8. 本项目保留随时对免责声明进行补充或更改的权利,直接或间接使用本项目内容的个人或组织,视为接受本项目的特别声明。

规则

我们并不生产规则,我们只是开源规则的搬运工。

分流规则

https://github.com/blackmatrix7/ios_rule_script/tree/master/rule

复写规则

https://github.com/blackmatrix7/ios_rule_script/tree/master/rewrite

所有规则数据都来自互联网,感谢开源规则项目作者的辛勤付出。

脚本

脚本说明

脚本介绍框架维护状态
什么值得买什么值得买任务和去广告MagicJS 2/3正常
百度贴吧带重试功能的贴吧签到,提高签到成功率MagicJS 3正常
开屏去广告通过脚本去除缓存到本地的APP开屏广告MagicJS 3正常
慢慢买每日自动签到MagicJS 2正常
叮咚买菜每日自动签到MagicJS 3正常
Fa米家每日自动签到MagicJS 2正常
Luka每日自动签到MagicJS 2正常
哲也同学之乎者也MagicJS 3正常
Synology群晖Download Station资源离线下载MagicJS 3正常
AppleStoreAppleStore 商品库存监控MagicJS 3暂停

Quantumult X Gallery

部分脚本已配置为Quantumult X Gallery。

地址: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/gallery.json

BoxJS

感谢 @chouchoui 为本项目添加BoxJS的订阅。

地址:https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/boxjs.json

外部资源

项目中资源来自互联网上其他开源项目(具体以不同目录的说明为准),这里主要进行一些整合和备份。对于此类资源,无法对使用过程中出现的任何问题进行解答,您需要联系原作者。

地址:https://github.com/blackmatrix7/ios_rule_script/tree/master/external

感谢

以下排名不分先后

@BaileyZyp @Mazeorz @LuzMasonj @chouchoui @ypannnn @echizenryoma @zirawell @urzz @ASD-max