├── Loon ├── Frist │ ├── First.md │ ├── Fourth.md │ ├── README.md │ ├── Second.md │ └── Third.md ├── Plus │ ├── Branch&Copy.md │ ├── Branch.md │ ├── Built-in_Proxy.md │ ├── CA.md │ ├── Configuration.md │ ├── Custom_Icon.md │ ├── DNS.md │ ├── Default_Proxy.md │ ├── Download_From_URL.md │ ├── Fallback.md │ ├── Final.md │ ├── Global_Group.md │ ├── Global_Policy.md │ ├── JaveScript_1.md │ ├── JaveScript_2.md │ ├── JaveScript_3.md │ ├── JaveScript_Format.md │ ├── JaveScript_Modify.md │ ├── Local_JaveScript.md │ ├── MITM.md │ ├── Matryoshka.md │ ├── Network_Sharing.md │ ├── New_Proxy_Group.md │ ├── PCC.md │ ├── Plugin.md │ ├── Plugin_Format.md │ ├── Plugin_Recommend.md │ ├── Plugin_Summary.md │ ├── Proxy.md │ ├── README.md │ ├── README_EN.md │ ├── Regex.md │ ├── Remote_Filter.md │ ├── Remote_Filter_NameKeyword.md │ ├── Remote_Filter_NodeSelect.md │ ├── Remote_JaveScript.md │ ├── Remote_Proxy.md │ ├── Remote_Proxy_in_Proxy_Group.md │ ├── Remote_Rule.md │ ├── Remote_Script.md │ ├── Remote_Script_Format.md │ ├── Rewrite.md │ ├── Rule.md │ ├── Rule_Recommend.md │ ├── Rule_Summary.md │ ├── TOP_Policy.md │ ├── URL-Test.md │ ├── URL_Download.md │ ├── URL_Schemes.md │ ├── cron.md │ ├── hostname.md │ ├── ssid-trigger.md │ └── ssid.md ├── Plus_EN │ ├── Branch&Copy_EN.md │ ├── Branch_EN.md │ ├── CA_EN.md │ ├── Configuration_EN.md │ ├── DNS_EN.md │ ├── Default_Proxy_EN.md │ ├── Download_From_URL_EN.md │ ├── Fallback_EN.md │ ├── Final_EN.md │ ├── Global_Group_EN.md │ ├── Global_Policy_EN.md │ ├── JaveScript_1_EN.md │ ├── JaveScript_2_EN.md │ ├── JaveScript_3_EN.md │ ├── JaveScript_Format_EN.md │ ├── JaveScript_Modify_EN.md │ ├── Local_JaveScript_EN.md │ ├── MITM_EN.md │ ├── Matryoshka_EN.md │ ├── Network_Sharing_EN.md │ ├── New_Proxy_Group_EN.md │ ├── PCC_EN.md │ ├── Plugin_EN.md │ ├── Plugin_Format_EN.md │ ├── Plugin_Recommend_EN.md │ ├── Plugin_Summary_EN.md │ ├── Proxy_EN.md │ ├── README.md │ ├── Regex_EN.md │ ├── Remote_Filter_EN.md │ ├── Remote_Filter_NameKeyword_EN.md │ ├── Remote_Filter_NodeSelect_EN.md │ ├── Remote_JaveScript_EN.md │ ├── Remote_Proxy_EN.md │ ├── Remote_Proxy_in_Proxy_Group_EN.md │ ├── Remote_Rule_EN.md │ ├── Remote_Script_EN.md │ ├── Remote_Script_Format_EN.md │ ├── Rewrite_EN.md │ ├── Rule_EN.md │ ├── Rule_Recommend_EN.md │ ├── Rule_Summary_EN.md │ ├── TOP_Policy_EN.md │ ├── URL-Test_EN.md │ ├── URL_Download_EN.md │ ├── URL_Schemes_EN.md │ ├── cron_EN.md │ ├── hostname_EN.md │ └── ssid_EN.md ├── README.md ├── README_EN.md └── REAMDE_IMPORTANT.md ├── QuantumultX ├── BoxJS.md ├── General.md ├── JD_DailyBonus.md ├── Price.md ├── README.md └── Static.md ├── README.md ├── caiyun ├── BoxJS.md ├── Loon.md ├── QuantumultX.md ├── README.md ├── Surge.md ├── caiyun_api.md ├── location.md └── tencent_api.md └── other └── boxjs.md /Loon/Frist/First.md: -------------------------------------------------------------------------------- 1 | ### 操作步骤 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 1、打开 Loon 并点击下方 `配置` 栏,点击 `订阅节点` 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_1.jpg) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 2、点击右上角所示区域(+) 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_2.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 3、在 `URL` 栏填入机场提供的订阅地址 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_3.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 4、在 `别名` 栏填入机场名称 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_4.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 5、点击 `保存` 即可 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_5.jpg) 22 | 23 | ### 下一节 24 | 25 | - [新建策略组](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Second.md) -------------------------------------------------------------------------------- /Loon/Frist/Fourth.md: -------------------------------------------------------------------------------- 1 | ### 操作步骤 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 1、打开 Loon 并点击 `策略组` 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_1.jpg) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 2、点击 `Proxy` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_2.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 3、选择一个有效的代理节点 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_3.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 4、点击 `返回` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_4.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 5、点击右上角 `Start` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_5.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 6、变成 `Stop` 即可实现代理功能 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Fourth_6.jpg) 26 | 27 | ### 最后 28 | 29 | 恭喜您已经成功完成设置基本代理的功能,如果您希望可以进阶学习,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/README.md) 跳转到 Plus 教程 -------------------------------------------------------------------------------- /Loon/Frist/README.md: -------------------------------------------------------------------------------- 1 | ## Loon 教程 2 | 3 | - 此文件夹内存放 Loon 的 Frist 教程。 4 | 5 | - 请仔细阅读免责声明,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 6 | 7 | ### 建议 8 | 9 | - 请用户首次使用 Loon 时不要马上导入懒人配置,先按如下设置,明白后再导入懒人配置。 10 | 11 | - 如果需要全方面的教程,推荐阅读 Plus 教程,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/README.md) 跳转 12 | 13 | ### 免责声明 14 | 15 | - 此教程仅供正版购买 Loon 的用户学习如何使用此款软件,本人从未提供机场服务或教唆大陆用户擅自建立、使用非法定信道进行国际联网。 16 | 17 | - 用户通过此教程利用 Loon 使用非法信道进行国际联网并实施违反中国大陆及其地区法律法规的行为,对此类用户造成的行为后果,本人概不负责。 18 | 19 | - 此教程内只教授配置脚本功能的方法,绝对不会提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本,例如破解脚本等。 20 | 21 | - 请勿将脚本用于任何商业用途或者非法目的,对此类行为造成的任何后果,本人概不负责。 22 | 23 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的阅读者都应仔细阅读此声明。 24 | 25 | - 本人有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 26 | 27 | ### 教程目的 28 | 29 | 用户通过此教程只需要学会如何实现代理功能,不讲述设置的原理! 30 | 31 | 32 | ### 设置步骤(请用户严格按步骤进行操作!) 33 | 34 | 1、[订阅节点](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/First.md) 35 | 36 | 2、[新建策略组](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Second.md) 37 | 38 | 3、[订阅规则](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Third.md) 39 | 40 | 4、[开启连接](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Fourth.md) 41 | -------------------------------------------------------------------------------- /Loon/Frist/Second.md: -------------------------------------------------------------------------------- 1 | ### 操作步骤 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 1、打开 Loon 并点击下方 `配置` 栏,点击 `策略组` 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_1.jpg) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 2、点击下图所示区域(+) 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_2.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 3、在 `别名` 栏填入策略组名称 `Proxy` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_3.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 4、点击 `添加` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_4.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 5、点击 `订阅节点` 下的机场名称 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_5.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 6、点击 `储存` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_6.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 7、点击 `保存` 即可 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Second_7.jpg) 30 | 31 | ### 下一节 32 | 33 | - [订阅规则](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Third.md) -------------------------------------------------------------------------------- /Loon/Frist/Third.md: -------------------------------------------------------------------------------- 1 | ### 操作步骤 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 1、点击 [这里](https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Proxy/Proxy.list) 跳转到浏览器 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_1.jpg) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 2、长按地址栏选择 `拷贝` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_2.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 3、打开 Loon 并点击下方 `配置`栏,点击 `订阅规则` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_3.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 4、点击如图所示区域(+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_4.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 5、在 `URL` 栏中粘贴上面拷贝的地址 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_5.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 6、点击 `策略` 栏右侧的 `DIRECT` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Frist_6.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 7、选择 `Proxy` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_7.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 8、在 `别名` 栏填入 `Global` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_8.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 9、点击 `保存` 即可 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Frist/Third_9.jpg) 38 | 39 | ### 下一节 40 | 41 | - [开启连接](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/Fourth.md) 42 | -------------------------------------------------------------------------------- /Loon/Plus/Branch&Copy.md: -------------------------------------------------------------------------------- 1 | # 创建单个本地分支并拷贝js 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将订阅脚本内需要的脚本移到本地脚本中,既可修改本地脚本内容,也可修改 cron 表达式,方便用户在本地脚本中,进入脚本文件修改脚本代码,或者修改 cron 脚本的执行时间 4 | 5 | ## 一、创建单个本地分支并拷贝js 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `订阅脚本` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击脚本所在的订阅脚本,**此处以上一个教程订阅的示例订阅为例** 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击用户需要创建单个本地分支的脚本,**此处以京东东和一签到脚本为例** 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `创建单个本地分支并拷贝js` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_3_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如果不需要修改 `别名` 或者 `cron 表达式` ,则此时不需要改动任何设置,直接点击 `保存` 即可完成操作,在订阅脚本内的此脚本就会被自动禁用 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_4_2.jpg) 26 | 27 | ## 二、查看已经创建单个本地分支并拷贝js的本地脚本(此步骤是用户按意愿操作,非必要操作) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `本地脚本` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 即可在` 本地脚本` 界面内见到第一步操作中创建单个本地分支并拷贝js的本地脚本 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_5.jpg) 36 | 37 | 38 | # 多说几句 39 | 40 | - 如果未了解 `cron 表达式` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/cron.md) 跳转到 `基础 cron 表达式的学习` 教程 41 | 42 | # 鸣谢 43 | 44 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 45 | -------------------------------------------------------------------------------- /Loon/Plus/Branch.md: -------------------------------------------------------------------------------- 1 | # 创建单个本地分支 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将订阅脚本内需要的脚本移到本地脚本中,但不可修改本地脚本内容,仅可修改 cron 表达式,方便用户在本地脚本中修改 cron 脚本的执行时间 4 | 5 | ## 一、创建单个本地分支的操作步骤 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `订阅脚本` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击脚本所在的订阅脚本,**此处以上一个教程订阅的示例订阅为例** 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击用户需要创建单个本地分支的脚本,**此处以京东东和一签到脚本为例** 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `创建单个本地分支` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_3.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如果不需要修改 `别名` 或者 `cron 表达式` ,则此时不需要改动任何设置,直接点击 `保存` 即可完成操作,在订阅脚本内的此脚本就会被自动禁用 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_4.jpg) 26 | 27 | ## 二、查看已经创建单个本地分支的本地脚本(此步骤是用户按意愿操作,非必要操作) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `本地脚本` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 即可在` 本地脚本` 界面内见到第一步操作中创建单个本地分支的本地脚本 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_5.jpg) 36 | 37 | # 多说几句 38 | 39 | - 如果未了解 `cron 表达式` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/cron.md) 跳转到 `基础 cron 表达式的学习` 教程 40 | 41 | # 鸣谢 42 | 43 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 44 | -------------------------------------------------------------------------------- /Loon/Plus/Built-in_Proxy.md: -------------------------------------------------------------------------------- 1 | # 内置代理策略组 2 | 3 | - [TestFlight 2.1.9(259)](https://t.me/LoonNews/411) 该策略可指向本地节点或者机场订阅中的任意节点:未进行手动选择的情况下,当有本地节点时指向第一个本地节点,当没有本地节点但有订阅节点时,指向第一个订阅的第一个节点;本地节点和订阅节点都不存在时指向DIRECT 4 | 5 | - 小白理解:导入配置,添加订阅直接可以科学上网,不需要再去手动选择一个可用的服务器节点 6 | 7 | ## 如何开启此功能 8 | 9 | 1. 打开 Loon 并点击下方 `更多` 栏 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Built-in_Proxy_1.jpg) 12 | 13 | 2. 点击 `策略组配置` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Built-in_Proxy_2.jpg) 16 | 17 | 3. 点击 `启用内置PROXY策略` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Built-in_Proxy_3.jpg) 20 | 21 | # 多说几句 22 | 23 | - [TestFlight 2.1.9(260)](https://t.me/LoonNews/419) 当配置中有自定义策略组时将强制关闭内置PROXY策略(订阅节点后续将单独页面展示) 24 | -------------------------------------------------------------------------------- /Loon/Plus/CA.md: -------------------------------------------------------------------------------- 1 | # 证书类问题 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如果运行 Loon 的过程中弹窗出现任何关于 **证书** 相关字眼的提醒,都请按下步骤检查 4 | 5 | ## 自检证书是否一致的方法 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `证书管理` 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 记录如下图所示区域中显示的数字,记为 `1号证书` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Certificate_1.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开手机 **设置** >>> **通用** >>> **关于本机** >>> **证书信任设置**(此步骤不截图是因为懒癌发作,ios 13 系统以上都可以按照此步骤找到入口) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 记录如下图所示区域中显示的数字,记为 `2号证书` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Certificate_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 对比 `1号证书` 和 `2号证书` 是否一致 20 | 21 | - 一致时但下方显示 `已安装,但未被系统信任` 时,请继续下列教程操作**信任证书** 22 | 23 | - 不一致时请继续按下列教程操作**重新安装证书** 24 | 25 | ## 信任证书 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开手机 **设置** >>> **通用** >>> **关于本机** >>> **证书信任设置**(此步骤不截图是因为懒癌发作,ios 13 系统以上都可以按照此步骤找到入口) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到与用户的 `1号证书` 数字相同的证书,点击右侧按钮使 `灰色按钮` 变成`绿色按钮` 即可完成**信任证书**操作 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_8.jpg) 32 | 33 | ## 重新安装证书 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开手机 **设置** >>> **通用** >>> **描述文件** >>> **LOON CA 2号证书的数字**(此步骤不截图是因为懒癌发作,ios 13 系统以上都可以按照此步骤找到入口) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `移除描述文件` 并输入密码 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Certificate_3.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `移除` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Certificate_4.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 然后打开 Loon 并点击下方 `配置` 栏,点击 `证书管理` 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Certificate_UI.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `生成新的CA证书` 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_1.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `安装CA证书` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_2.jpg) 56 | 57 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在跳转出来的页面中点击 `允许` 58 | 59 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_3.jpg) 60 | 61 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开手机设置并点击 `已下载描述文件` 62 | 63 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_4.jpg) 64 | 65 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `安装` 后,出现验证的步骤,请用户自行输入密码验证 66 | 67 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_5.jpg) 68 | 69 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 回到手机设置并点击 `通用` ,然后点击 `关于本机` 70 | 71 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_6.jpg) 72 | 73 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `证书信任设置` 74 | 75 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_7.jpg) 76 | 77 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击按钮使 `灰色按钮` 变成`绿色按钮` 即可完成操作 78 | 79 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/mitm_8.jpg) 80 | 81 | 多说几句 82 | 83 | - 证书后的数字很重要,用户需要看准确,以及是否出现 `已安装,但未被系统信任` 的字样。以确定用户需要进行**重新安装证书**抑或是**信任证书**的操作 84 | 85 | - 制作教程的时间为凌晨1点,因此教程内大多数截图内的证书数字并不是严格一致,需要用户根据实际情况确定选择进行**重新安装证书**或是**信任证书**的操作 86 | 87 | -------------------------------------------------------------------------------- /Loon/Plus/Configuration.md: -------------------------------------------------------------------------------- 1 | # 配置文件 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户在UI内对 Loon 配置修改的内容,几乎都会以代码的形式表现在 `配置文件` 内 4 | 5 | ## 打开文本编辑的两个方法 6 | 7 | - 第一种方法:打开 Loon 并点击下方 `配置` 栏,点击 `文本编辑` 即可 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_UI.jpg) 10 | 11 | - 第二种方法:打开 Loon 后找到 `配置文件` 快捷方式,点击 `配置文件` 卡片即可 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_Module.jpg) 14 | 15 | - 如果找不到 `配置文件` 快捷方式,请看下一步教程 16 | 17 | ## 添加 `配置文件` 快捷方式到 Loon `仪表` 栏 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 后找到 `快捷方式` ,点击 `快捷方式` 右侧所示区域 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_1.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按住 `配置文件` 右侧所示区域,然后往上拖动 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_2.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 往上拖动至 `可见` 列表下即可 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_3.jpg) 30 | -------------------------------------------------------------------------------- /Loon/Plus/Custom_Icon.md: -------------------------------------------------------------------------------- 1 | # 自定义策略组图标 2 | 3 | - [TestFilght 2.1.10(278)](https://t.me/LoonNews/454?single) 现在测试版用户可以自定义策略组的图标了 4 | 5 | ## 如何设置 6 | 7 | 有两种方法,选其一即可 8 | 9 | ### 一、通过修改配置 10 | 11 | 1. 打开 Loon 并点击下方的 `配置` 栏 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_1_1.jpg) 14 | 15 | 2. 点击 `文本编辑` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_1_2.jpg) 18 | 19 | 3. 找到 `[Proxy Group]` 下的策略组并在后方添加以下代码 20 | 21 | ``` 22 | ,img-url = https://example/example.png 23 | ``` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_1_3.jpg) 26 | 27 | ## 二、通过 UI 操作 28 | 29 | 1. 打开 Loon 并点击下方的 `配置` 栏 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_2_1.jpg) 32 | 33 | 2. 点击 `策略组` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_2_2.jpg) 36 | 37 | 3. 点击需要添加图标的策略组 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_2_3.jpg) 40 | 41 | 4. 添加图标链接后点击 `保存` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Custom_Icon_2_4.jpg) 44 | 45 | # 多说几句 46 | 47 | - 如果用户不喜欢显示图标,可以选择开启 [简洁模式](https://t.me/LoonNews/411?single) 48 | 49 | - 推荐几个大佬的图标仓库 50 | 51 | - [Orz-3](https://github.com/Orz-3/mini/tree/master/Color) [贴心教程](https://t.me/Orzmini/604) 52 | 53 | - [Koolson](https://github.com/Koolson/Qure/tree/master/IconSet/Color) 54 | 55 | -------------------------------------------------------------------------------- /Loon/Plus/DNS.md: -------------------------------------------------------------------------------- 1 | # DNS 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通过自定义 DNS 来快速、正确的获取 Domain 的IP。Loon 会根据用户自行设置的 DNS 并发请求,使用响应最快的结果,并且使用 LRU 缓存最近的100个结果。 4 | 5 | # 本地映射 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Loon支持配置本地 DNS 映射。接指定主机名所对应的 IP 地址,还支持对特定域名自定义特定的 DNS 服务器。 -------------------------------------------------------------------------------- /Loon/Plus/Default_Proxy.md: -------------------------------------------------------------------------------- 1 | # `代理策略组` 的定义 2 | 3 | 代理策略组,即在策略组内嵌套 `订阅节点` 或者 `筛选订阅节点` 的策略组称之为 `代理策略组` 4 | 5 | ## 正确识别 `代理策略组` 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 根据上面对 `代理策略组` 的定义,只要策略组下有节点,即可以称该策略组为 `代理策略组` 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 例如:下图中,因为 `手动选择` 策略组有节点,则名为 `手动选择` 的策略组就可以称之为 `代理策略组` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy.jpg) 12 | 13 | ## 添加一个 `代理策略组` 14 | 15 | 实际上就是 `节点与策略组之间的嵌套` 教程里面的操作方法,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy_in_Proxy_Group.md) 跳转到 `节点与策略组之间的嵌套` 教程 16 | 17 | # 多说几句 18 | 19 | - `策略组` 和 `订阅节点` 和 `筛选订阅节点` 这三者的名称不允许出现同名的情况,需要用户注意 20 | -------------------------------------------------------------------------------- /Loon/Plus/Download_From_URL.md: -------------------------------------------------------------------------------- 1 | # 从URL下载 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将一个脚本文件通过URL下载功能下载到本地中,以备用户在脚本内填入某些资料,此功能是为了配合 `本地脚本` >>> `添加脚本` 功能使用 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) **请注意,此教程仅仅适用于以下几类需求的用户** 6 | 7 | - 脚本中需要用户**填入资料**的 8 | 9 | - 用户独钟情于使用**本地脚本路径**的 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如若非以上需求的用户,请不要继续浏览,毕竟用户的时间也是宝贵的 12 | 13 | ## 使用此功能时的两个必要条件 14 | 15 | - 对 URL 的要求 16 | 17 | - 以 `http://raw.` 为开头,且以 `.js` 为后缀的的网址 18 | 19 | - 对 Loon 的设置要求 20 | 21 | - 必须在 Loon >>> `更多` >>> `iCloud Drive` 中打开自动同步功能 22 | 23 | ## 操作步骤 24 | 25 | **以京东京豆签到脚本为例** 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开脚本文件 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_1.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 Raw 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_2.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 长按地址栏,拷贝地址 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_1.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置`栏,点击 `本地JS文件` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_2.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `从URL下载` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_3.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将上面复制/拷贝的地址粘贴到如图所示的区域内 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_4.jpg) 54 | 55 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `确定` 56 | 57 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_5.jpg) 58 | 59 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 即可 60 | 61 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_6.jpg) 62 | 63 | ## 其他功能按钮 64 | 65 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `备份脚本` 功能是将本地脚本列表内的脚本上传到 **iCloud/Loon/Script** 文件夹内 66 | 67 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_Backup.jpg) 68 | 69 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `恢复脚本` 功能是将存在 **iCloud/Loon/Script** 文件夹内的脚本显示在本地脚本列表内 70 | 71 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_Restore.jpg) 72 | 73 | # 多说几句 74 | 75 | - 第一种情况目前较为少见,因为脚本开发者都在积极配合着 `BoxJs` 来使用需要用户**填入资料类**的脚本 76 | 77 | - 个人认为,第二种用户就是瞎折腾,噗嗤 78 | -------------------------------------------------------------------------------- /Loon/Plus/Fallback.md: -------------------------------------------------------------------------------- 1 | # Fallback 2 | 3 | `Fallback` 策略组可以通俗理解成 Loon 间隔一段时间自动测试 `Fallback` 策略组下节点是否可用,并依照节点排列自动选择第一个可用节点 4 | 5 | ## 一、进入 `策略组` 添加策略组 6 | 7 | 请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group.md) 跳转到 `手动添加一个策略组` 教程,完成操作后返回设置 `Fallback` 教程 8 | 9 | ## 二、设置 `策略类型` 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `select` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `Fallback` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按用户个人喜爱填入策略组别名, `测试间隔` 的单位为 `秒` , `最大超时` 的单位为 `毫秒` ,按用户个人使用习惯修改,推荐 `最大超时` 修改为 `1000` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Test-URL` 一般不需要修改 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_3.jpg) 26 | 27 | ## 三、添加代理节点 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 策略组是不能进行延迟测速的,因而只能添加代理节点 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 承接第一步的后面,点击 `添加` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_4.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 从 `筛选订阅节点` 列表下选择筛选后的节点,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_5.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `储存` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_6.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确保 `订阅筛选` 下 `筛选` 的 `()` 内有数字后点击 `保存` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_7.jpg) 46 | 47 | # 多说几句 48 | 49 | - 按本教程新增的 `Fallback` 策略组没有实质性作用,需要将 `Fallback` 策略组作为子策略组嵌套进代理母策略组中才会发挥实质性作用 50 | 51 | - 一定要注意的是 `Fallback` 策略组下不可以嵌套其他子策略组,因为策略组不是节点,策略组没有延迟测试一说 52 | 53 | - 添加代理节点时,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 54 | 55 | - `筛选订阅节点` 内也不允许有过多的节点,建议低于 `5` 个,否则也容易出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 56 | 57 | - 如果不会利用正则表达式筛选适合的节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Regex.md) 跳转学习正则表达式 58 | -------------------------------------------------------------------------------- /Loon/Plus/Final.md: -------------------------------------------------------------------------------- 1 | # 规则的兜底条款 —— `Final规则` 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 订阅规则只是社区大佬整理而来的,并不能涵盖全部需要代理节点才能访问的规则,肯定有 `漏网之鱼` 的出现,这时候就需要规则的兜底条款 —— `Final规则` 来让用户做出 `直连` 或 `代理` 访问的选择 4 | 5 | ## `Final规则` 在配置中的体现 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `示例` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到 `[Rule]` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到 `[Rule]` 下最后一行代码 `FINAL,Final` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example_2.jpg) 18 | 19 | ## 对 `FINAL,Final` 的理解 20 | 21 | `FIANL` 是 Loon 配置中必备的格式要求,而 `Fianl` 实际上是一个策略,`Final` 处可以替换成 22 | 23 | - `DIRECT` 24 | 25 | - ~~REJECT~~ (确实可以这样写,但是折腾用户,因此不推荐) 26 | 27 | - `代理策略组` 28 | 29 | - `母策略组` 30 | 31 | ## 对替换的三个情况的理解 32 | 33 | - `DIRECT` 34 | 35 | - 即如果本地规则和订阅规则都未匹配情况下,对用户发起的网络请求使用直连策略 36 | 37 | - 例如:`FINAL,DIRECT` <===> 直接选择直连访问 38 | 39 | - `代理策略组` 40 | 41 | - 即如果本地规则和订阅规则都未匹配情况下,对用户发起的网络请求使用 `代理节点` 42 | 43 | - 例如:`FINAL,手动选择` <===> 手动选择 >>> 代理节点 (此处 `手动选择` 只是示例名称,实际上代理策略组名称和节点按用户使用需求自行设定) 44 | 45 | - `母策略组` 46 | 47 | - 即如果本地规则和订阅规则都未匹配情况下,对用户发起的网络请求要求用户进行选择 48 | 49 | - 例如:`FINAL,Final` <===> Final >>> DIRECT / Proxy (此处 `Fianl` 只是策略组示例名称,实际上策略组名称按用户使用需求自行设定) 50 | 51 | ## 对第三种情况的深入理解 52 | 53 | 当配置中写着 `FINAL,Final` 时,通过 `子母策略组之间的嵌套` 可以做出以下类型的 `母策略组` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Final.jpg) 56 | 57 | 如上图所示,用户需要手动预设出现 `漏网之鱼` 时走的策略,如果用户选择 58 | 59 | - `DIRECT` 内置策略组,即直接选择直连访问 60 | 61 | - `Proxy` 母策略组,嵌套情况为:Proxy >>> 手动选择 >>> 代理节点,即使用代理节点访问 62 | 63 | # 参考 64 | 65 | - 来自热心网友的[思维导图](https://t.me/Loon0x00/350927),从逻辑上理解规则的具体走向 66 | -------------------------------------------------------------------------------- /Loon/Plus/Global_Group.md: -------------------------------------------------------------------------------- 1 | # 对 `全局代理` 的理解 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `全局代理` ,即用户发起的所有网络请求都通过代理节点 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ALL_PROXY.jpg) 6 | 7 | # 对 `全局策略` 的理解 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `全局策略` ,即用户使用 `全局代理` 时所走的 `代理策略组` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Group_1.jpg) 12 | 13 | ## 如何为 `全局策略` 选择的 `代理策略组` 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 理解什么是 `代理策略组` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Default_Proxy.md) 跳转到 `代理策略组` 教程 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `全局策略` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Group.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户根据自身需求选择正确的 `代理策略组` 并点击该策略组名即可,因为下图中名为 `Proxy` 的策略组中名为 `手动选择` 子策略组是 `代理策略组` ,因此此教程选择该名为 `Proxy` 的策略组 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy_2.jpg) 28 | 29 | # 多说几句 30 | 31 | - 策略组内嵌套 `订阅节点` 或者 `筛选订阅节点` 的策略组称之为 `代理策略组` 32 | -------------------------------------------------------------------------------- /Loon/Plus/Global_Policy.md: -------------------------------------------------------------------------------- 1 | # 全局策略 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 当分流模式选择全局代理时,用户发起的访问请求全部使用代理节点,由于 Loon 没有默认代理策略组(类似于 Quantumult X 中的 `Proxy` 策略组),因而用户必须正确选择代理策略 4 | 5 | ## 一、在 `全局策略` 中选择代理策略 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 `Loon` 点击 `全局策略` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_5.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `Select` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_6.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `𝑷𝒓𝒐𝒙𝒚` (此名称不一定,原因请继续浏览下面的说明) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_7.jpg) 18 | 19 | ## 二、如何正确选择代理策略 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 每个策略追溯至最上层必定有一个分流在起作用,通过下面四张图片理解 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 第一张图片:`国际媒体` 和 `国际网址` 需要代理节点才可以访问,这两条规则选择的母策略名为 `𝑷𝒓𝒐𝒙𝒚` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_1.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 第二张图片:在策略组中看到母策略组 `𝑷𝒓𝒐𝒙𝒚` 选择的子策略组名为 `手动选择` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_2.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 第三张图片:在子策略组 ` 手动选择` 下可以看到名为 `[隧道] 香港 01 #GZCM` 代理节点 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_3.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 第四张图片:当用户访问 `www.google.com` 时使用 `国际网站` 规则,该规则使用 `Proxy` 母策略组,该母策略组使用 `手动选择` 子策略组,该子策略组使用 `[隧道] 香港 01 #GZCM` 代理节点 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_4.jpg) 38 | 39 | # 多说几句 40 | 41 | - 关于 `母策略组` 和 `子策略组` 之间的关系,详细可以点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/TOP_Policy.md) 跳转 42 | -------------------------------------------------------------------------------- /Loon/Plus/JaveScript_1.md: -------------------------------------------------------------------------------- 1 | # 初级 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 个人认为,每个新手用户在设置完 Loon 的基础设置后,都更多的希望能在 Loon 中添加脚本,利用脚本达到用户想要的效果,但是却不知道如何配置,此教程就让新手用户如何看懂一个脚本配置说明,并在下一个教程中讲述如何添加脚本 4 | 5 | ## 脚本 6 | 7 | 目前整理出来的脚本开发者主要有以下几位,排名不分先后,这里将脚本开发者分成四类 8 | 9 | - 将脚本的配置方法写在 `脚本文件` 内的脚本开发者: 10 | 11 | - [lowking](https://github.com/lowking/Scripts/tree/master)(QQ会员签到) 12 | 13 | - [lowking](https://github.com/lowking/Scripts/tree/master)(开发者宣布仓库已不再维护) 14 | 15 | - [toulanboy](https://github.com/toulanboy/scripts/tree/master) 16 | 17 | - [lxk0301](https://github.com/lxk0301/scripts)(京东系列小游戏) 18 | 19 | - [vinewx](https://ooxx.be/js) 20 | 21 | - [Peng-YM](https://github.com/Peng-YM/QuanX/tree/master/Tasks)(彩云天气) 22 | 23 | - [NobyDa](https://github.com/NobyDa/Script/tree/master) (野比大神) 24 | 25 | - [evilbutcher](https://github.com/evilbutcher/Quantumult_X/tree/master) 26 | 27 | - 将脚本的配置方法写在 `REAMDE.md` 内的脚本开发者: 28 | 29 | - [chavyleung](https://github.com/chavyleung/scripts)(签到狂魔) 30 | 31 | - [zZpiglet](https://github.com/zZPiglet/Task)(滴滴打车) 32 | 33 | - [chouchoui](https://github.com/chouchoui/QuanX) 34 | 35 | - [yichahucha](https://github.com/yichahucha/surge)(历史价格) 36 | 37 | - 有时将脚本的配置方法写在 `脚本文件` 内,又有时将脚本的配置方法写在 `REAMDE.md` 内的脚本开发者: 38 | 39 | - [chouchoui](https://github.com/chouchoui/QuanX) 40 | 41 | - [saza34](https://github.com/sazs34/TaskConfig)(多合一签到脚本) 42 | 43 | - 将各位开发者的脚本整合在一起的作者: 44 | 45 | - [nzw9314](https://github.com/nzw9314/QuantumultX/tree/master)(作者宣布于2020.08.09正式停止更新,在此之前已经收录的脚本能够正常使用) 46 | 47 | - [songyangzz](https://github.com/songyangzz/QxScripts) 48 | 49 | ## 如何让 Loon 执行这些脚本 50 | 51 | - 对于需要获取 `cookie` 类的签到脚本,例如:京东京豆签到脚本,需要 52 | 53 | - 在 Loon 配置文件中 `[Script]` 下添加以 `http-request` 和 `cron` 开头的语句,在 `[MITM]` 下的 `hostname = ` 后面添加域名 54 | 55 | - 按照脚本配置方法获取 `cookie` 56 | 57 | - 偶尔需要配合 `BoxJs` 使用 58 | 59 | - 对于不需要获取 `cookie` 类的签到脚本,例如:京东小游戏系列脚本,需要 60 | 61 | - 在 Loon 配置文件中 `[Script]` 下添加以 `http-request` 和 `cron` 开头的语句,在 `[MITM]` 下的 `hostname = ` 后面添加域名 62 | 63 | - 偶尔需要配合 `BoxJs` 使用 64 | 65 | - 对于仅提醒类,例如:nCov-19全球疫情通报脚本,需要 66 | 67 | - 在 Loon 配置文件中 `[Script]` 下添加以 `cron` 开头的语句 68 | 69 | - 对于一些配置方法较为复杂的脚本,需要根据具体脚本内配置方法说明在 Loon 的配置文件中写入相关代码 70 | 71 | ## 初步了解脚本文件内使用说明和配置代码 72 | 73 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 以京东京豆签到脚本为例,该脚本为 NobyDa(野比) 开发,由于脚本配置说明写在脚本文件内,所以首先打开[脚本文件](https://github.com/NobyDa/Script/tree/master/JD-DailyBonus) 74 | 75 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_1.jpg) 76 | 77 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 Raw ,此步为重要的一步,脚本配置说明写在脚本文件内的,都需要点击 Raw 后查看 78 | 79 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_2.jpg) 80 | 81 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 阅读脚本文件开头说明,寻找与 `Loon配置` 等相关字眼,明晰 Loon 内配置文件该如何写入哪些语句 82 | 83 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_3.jpg) 84 | 85 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 寻找与 `使用说明` 等相关字眼,方便用户将脚本配置代码写入 Loon 配置后继续操作 86 | 87 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_4.jpg) 88 | 89 | # 多说几句 90 | 91 | - 如果用户不清楚什么是脚本语句,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_Format.md) 跳转到 `入门 —— 如何看懂三种脚本语句的必备格式` 教程 92 | 93 | - 阅读完此教程后,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_2.md) 跳转到 `中级 —— 如何将脚本配置代码写入 Loon 内发挥作用` 教程,正式进入 Loon 配置文件内相关位置写入脚本配置的相关代码 94 | 95 | - 对于签到类脚本,用户是**一定、肯定、必须、必然**需要把一段 `cron` 语句添加到 `[Script]` 下,或者通过 UI 添加到配置内,此脚本才会执行签到任务 96 | 97 | # 鸣谢 98 | 99 | - [NobyDa](https://github.com/NobyDa) 100 | -------------------------------------------------------------------------------- /Loon/Plus/JaveScript_3.md: -------------------------------------------------------------------------------- 1 | # 高级 2 | 3 | JaveScript API example 4 | 5 | 6 | ### 可以查看大神写的[教程](https://jidesheng6.github.io/loonapidoc.html),感谢这位大神! 7 | 8 | ### 一、 9 | 10 | ``` 11 | /* 12 | * Loon script example 13 | */ 14 | //log 15 | console.log('This is a log'); 16 | 17 | //http get params 18 | var params = { 19 | url:"https://api.example.com/post", 20 | header:{ 21 | Host:"api.example.com", 22 | Content-Type: "application/json", 23 | }, 24 | body:"string" 25 | } 26 | 27 | $httpClient.get('https://example.com/index',function(error, response, data){ 28 | console.log(response); 29 | }); 30 | 31 | //http get 32 | $httpClient.get(params,function(error, response, data){ 33 | console.log(response); 34 | }); 35 | 36 | //http post 37 | $httpClient.post(params,function(error, response, data){ 38 | console.log(response); 39 | }); 40 | 41 | //notification 42 | $notification.post('title', 'subtitle', 'body') 43 | 44 | //persistentStore 45 | $persistentStore.write('data', 'key') 46 | $persistentStore.read('key') 47 | ``` 48 | 49 | ### 二、cron.js 50 | ``` 51 | /* 52 | */ 53 | 54 | console.log('Start JS'); 55 | $notification.post("title","subtitle","body"); 56 | $done(); 57 | ``` 58 | 59 | ### 三、netChanged.js 60 | ``` 61 | 62 | /* 63 | network-changed script-path=https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Script/netChanged.js 64 | */ 65 | 66 | //获取Loon的相关配置,返回为json格式 67 | var confStr = $config.getConfig() 68 | console.log(confStr) 69 | 70 | var conf = JSON.parse(confStr) 71 | if (conf.ssid == "your ssid name") { 72 | /* 73 | 设置全局运行模式 74 | 0:Global Direct 75 | 1:By Rule 76 | 2:Global Proxy 77 | */ 78 | $config.setRunningModel(0) 79 | //设置select策略组所对应的策略,子策略不存在时将保持原先的策略不变 80 | $config.setSelectPolicy("⛔ 广告拦截","DIRECT") 81 | $notification.post("Network changed","Change Running Model to Global Direct","⛔ 广告拦截 to DIRECT") 82 | } else { 83 | $config.setRunningModel(1) 84 | $config.setSelectPolicy("⛔ 广告拦截","REJECT") 85 | $notification.post("Network changed","Change Running Model to Filter by rule","⛔ 广告拦截 to REJECT") 86 | } 87 | 88 | //一次性同时设置多个策略组的策略 89 | $config.setSelectPolicy(["国外网站","广告拦截","谷歌服务"],["HK Node 1","REJECT","节点选择"]) 90 | 91 | //获取相关策略的子策略,json格式 92 | var subPolicys = $config.getSubPolicys("节点选项") 93 | console.log(subPolicys); 94 | ``` 95 | 96 | # 参考 97 | 98 | - [Loon0x00](https://github.com/Loon0x00/LoonExampleConfig/tree/master/Script) 99 | -------------------------------------------------------------------------------- /Loon/Plus/JaveScript_Format.md: -------------------------------------------------------------------------------- 1 | # 对 Loon 脚本语句格式的基本认识 2 | 3 | Loon 目前的脚本语句只有三种,即 `http-request` 、 `http-response` 以及 `cron` 语句,小白理解了这三种语句,对于通过 UI 添加脚本或者直接在 Loon 内配置写入脚本语句都有极大的提高 4 | 5 | - TF 2.1.13(199) 更新:新增network-changed类型脚本,会在网络环境发生变化是触发脚本,增加获取配置以及设置策略、运行模式脚本API 6 | 7 | ## `http-request` 语句 8 | 9 | 示例: 10 | 11 | ``` 12 | http-request ^https?:\/\/(www.)?(example)\.com script-path=localscript.js,tag = requestScript,enable=true 13 | ``` 14 | 15 | 拆解: 16 | 17 | - `http-request` <===> 固定格式,不可修改,表明语句类型 18 | 19 | - `^https?:\/\/(www.)?(example)\.com` <===> 正则表达式匹配到地址时执行脚本,不可修改 20 | 21 | - `script-path=` <===> 固定格式,不可修改,后接脚本路径 22 | 23 | - `localscript.js` <===> 脚本路径,远程链接时推荐不要修改,本地位置时根据实际情况选择脚本 24 | 25 | - `tag =` <===> 固定格式,不可修改,意思为:标签,即用户将该语句自定义名称 26 | 27 | - `requestScript` <===> 脚本名称,可修改,按用户个人喜爱命名即可 28 | 29 | - `enable=` <===> 脚本状态,可修改,按照用户需求自行修改, `=` 后接 `true` 为启用,`false` 为禁用 30 | 31 | 理解: 32 | 33 | http-request 正则表达式 script-path=脚本路径,tag = 脚本名称,enable=脚本状态(写 `true` 为启用,`false` 为禁用) 34 | 35 | ## `http-response` 语句 36 | 37 | 示例: 38 | 39 | ``` 40 | http-response ^https?:\/\/(www.)?(example)\.com script-path=https://example.com/loon.js,timeout=10,requires-body = true,tag = responseScript,enable=true 41 | ``` 42 | 43 | 拆解: 44 | 45 | - `http-response` <===> 固定格式,不可修改,表明语句类型 46 | 47 | - `^https?:\/\/(www.)?(example)\.com` <===> 正则表达式匹配到地址时执行脚本,不可修改 48 | 49 | - `script-path=` <===> 固定格式,不可修改,后接脚本路径 50 | 51 | - `https://example.com/loon.js` <===> 脚本路径 52 | 53 | - `timeout=` <===> 最大超时 54 | 55 | - `requires-body =` <===> 固定格式,不可修改,是否包含Body,后接 `true` 为是,`false` 为否 56 | 57 | - `tag =` <===> 固定格式,不可修改,意思为:标签,即用户将该语句自定义名称 58 | 59 | - `requestScript` <===> 脚本名称,按用户个人喜爱命名即可 60 | 61 | - `enable=` <===> 脚本状态,按照用户需求自行修改, `=` 后接 `true` 为启用,`false` 为禁用 62 | 63 | 小白理解: 64 | 65 | http-response 正则表达式 script-path=脚本路径,timeout=时间(单位为秒),requires-body = 是否包含Body(写 `true` 为是,`false` 为否),tag = 脚本名称,enable=脚本状态(写 `true` 为启用,`false` 为禁用) 66 | 67 | ## `cron` 语句 68 | 69 | 实例: 70 | 71 | ``` 72 | cron "0 8 * * *" script-path=cron.js,tag = responseScript,enable=true 73 | ``` 74 | 75 | 拆解: 76 | 77 | - `cron` <===> 固定格式,不可修改,表明语句类型 78 | 79 | - `"0 8 * * *"` <===> cron 表达式,脚本执行时间,根据用户需求自行修改,如果未了解 `cron 表达式` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/cron.md) 跳转到 `基础 cron 表达式的学习` 教程 80 | 81 | - `script-path=` <===> 固定格式,不可修改,后接脚本路径 82 | 83 | - `tag =` <===> 固定格式,不可修改,意思为:标签,即用户将该语句自定义名称 84 | 85 | - `requestScript` <===> 脚本名称,按用户个人喜爱命名即可 86 | 87 | - `enable=` <===> 启用状态,按照用户需求自行修改, `=` 后接 `true` 为启用,`false` 为禁用 88 | 89 | 小白理解: 90 | 91 | cron "cron 表达式" script-path=脚本路径,tag = 脚本名称,enable=脚本状态(写 `true` 为启用,`false` 为禁用) 92 | 93 | 94 | ## `network-changed` 语句 95 | 96 | 实例: 97 | 98 | ``` 99 | network-changed script-path=https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Script/netChanged.js, tag=changeModel,enable=true 100 | ``` 101 | 102 | 拆解: 103 | 104 | - `network-changed` <===> 固定格式,不可修改,表明语句类型 105 | 106 | - `script-path=` <===> 固定格式,不可修改,后接脚本路径 107 | 108 | - `tag =` <===> 固定格式,不可修改,意思为:标签,即用户将该语句自定义名称 109 | 110 | - `enable=` <===> 启用状态,按照用户需求自行修改, `=` 后接 `true` 为启用,`false` 为禁用 111 | 112 | 小白理解: 113 | 114 | network-changed script-path=脚本路径, tag=脚本名称,enable=脚本状态(写 `true` 为启用,`false` 为禁用) -------------------------------------------------------------------------------- /Loon/Plus/JaveScript_Modify.md: -------------------------------------------------------------------------------- 1 | # 修改本地脚本设置 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通过此教程学习如何修改 `本地脚本` 界面内的脚本设置 4 | 5 | ## 主要情况分析 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 事实上,用户更多只是修改本地脚本的别名(名称)以及 cron 表达式,其余修改可根据用户具体需要自行修改 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 修改 `本地脚本` 界面内的脚本设置,通过组合的方式,可以得出有六种组合方式,由于操作类似,此教程只讲述一下两种组合 10 | 11 | - 修改脚本类型为 http-request/http-response 的别名、正则表达式以及脚本位置 12 | 13 | - 修改脚本类型为 cron 的别名、表达式以及脚本位置 14 | 15 | ## 修改脚本类型为 http-request/http-response 的正则表达式以及脚本位置 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `本地脚本` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要修改的脚本,**此处以 获取京东Cookie 脚本为例** 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要修改的设置栏右侧区域即可修改此栏信息 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_2.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 完成设置后点击 `保存` 即可 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_3.jpg) 32 | 33 | ## 修改脚本类型为 cron 的别名、表达式以及脚本位置 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `本地脚本` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要修改的脚本,**此处以 京东多合一签到 脚本为例** 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_1.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要修改的设置栏右侧区域即可修改此栏信息 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_2.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 完成设置后点击 `保存` 即可 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_3.jpg) 50 | 51 | # 多说几句 52 | 53 | - 因为此处可供修改的信息过多,此教程就不再赘述,用户自行研究脚本语句格式也可以明晰应该如何修改哪些信息,对脚本格式不清楚的用户,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_Format.md) 跳转到 `入门 —— 如何看懂三种脚本语句的必备格式` 教程 54 | -------------------------------------------------------------------------------- /Loon/Plus/Local_JaveScript.md: -------------------------------------------------------------------------------- 1 | # 添加本地路径脚本 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此教程让用户通过对 Loon 的 UI 操作,在 Loon 内添加一个引用路径为**本地路径**的脚本 4 | 5 | ## 从 URL 下载脚本文件到 icloud/Loon/Script 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Download_From_URL.md) 跳转到 `添加脚本文件 - 从URL下载` 教程 8 | 9 | ## 充分理解脚本文件内配置代码 10 | 11 | **以京东京豆签到脚本为例** 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 阅读脚本文件内的配置代码,如下图区域 `[Script]` 下的 `http-request` 代码所示 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JD-DailyBonus_http-request.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按照三种脚本语句格式拆解这段配置代码,**明晰哪些地方可以自行修改,哪些地方不可自行修改** 18 | 19 | **如果用户对三种脚本语句格式不了解,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_Format.md) 跳转到 `入门 —— 如何看懂三种脚本语句的必备格式` 教程** 20 | 21 | - 用户不可自行修改的项目与填写位置 22 | 23 | - `http-request` <===> 脚本类型 24 | 25 | - ` https:\/\/api\.m\.jd\.com\/client\.action.*functionId=signBean` <===> 表达式 26 | 27 | - 用户可自行修改的项目与填写位置 28 | 29 | - `获取京东cookie` <===> 别名 30 | 31 | ## 通过 UI 添加脚本 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `添加脚本` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_1.jpg) 40 | 41 | **以添加 http-request 语句为例** 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `脚本类型` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_2.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `http-request` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_3.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏写入脚本名称,按用户个人喜爱,自行命名,最好以脚本功能命名 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_4.jpg) 54 | 55 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `表达式` 栏写入匹配网址执行脚本的正则表达式,即 ` https:\/\/api\.m\.jd\.com\/client\.action.*functionId=signBean` 56 | 57 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_5.jpg) 58 | 59 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `脚本位置` 60 | 61 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_6.jpg) 62 | 63 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `Local` 64 | 65 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_7.jpg) 66 | 67 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `脚本名称` 68 | 69 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_8.jpg) 70 | 71 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择通过 `从 URL 下载` 功能下载而来的 `JD_DailyBonus.js` 文件 72 | 73 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_9.jpg) 74 | 75 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 正确的写法如下图所示,确定无误后点击 `保存` 即可完成操作 76 | 77 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_10.jpg) 78 | 79 | # 多说几句 80 | 81 | - Loon 是开放远程脚本链接的,如果用户不需要修改脚本文件内代码,极力推荐学习 `添加远程链接脚本` 教程以及使用 `添加远程链接脚本` 功能,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_JaveScript.md) 跳转到 `添加远程链接脚本` 教程 82 | 83 | - 再次强调,此教程的前提是需要用户提前通过 `从URL下载` 功能将脚本下载到 icloud/Loon/Script 文件夹内并在 Loon 开启 `自动同步` 功能,如果用户还没有进行操作此步,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Download_From_URL.md) 跳转到 `添加脚本文件 - 从URL下载` 教程 84 | 85 | 86 | -------------------------------------------------------------------------------- /Loon/Plus/MITM.md: -------------------------------------------------------------------------------- 1 | # MITM (Man in the Middle Attack) 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Loon 利用中间人攻击的方式解密 https 的请求。根据配置的 hostname(域名) 和信任的 CA 证书解密相应的 https 请求和响应,解密后可以配合 Rule 和 URL Rewrite 进行分流。 4 | 5 | ## MITM 的一般使用 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户在一般的使用中,如果不开启 MITM 功能,可能会使用户无法正确执行某些脚本,例如获取京东Cookie的脚本。 8 | 9 | # 多说几句 10 | 11 | - 了解更多关于 MITM 的知识 12 | 13 | - [维基百科 —— MTIM](https://zh.wikipedia.org/wiki/%E4%B8%AD%E9%97%B4%E4%BA%BA%E6%94%BB%E5%87%BB) 14 | 15 | - [百度百科 —— MITM](https://baike.baidu.com/item/%E4%B8%AD%E9%97%B4%E4%BA%BA%E6%94%BB%E5%87%BB/1739730?fr=aladdin) 16 | 17 | - 传送门 18 | 19 | - [CA证书](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/CA.md) 20 | 21 | - [hostname](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/hostname.md) -------------------------------------------------------------------------------- /Loon/Plus/Matryoshka.md: -------------------------------------------------------------------------------- 1 | # 策略组之间的嵌套 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 无论 `Surge` `Quantumult X` `Loon` 这三个代理软件,在策略组的问题上,它们都是 `俄罗斯套娃` 来实现层层包装的 4 | 5 | ## 正确嵌套示范 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 本教程仅让用户在策略组与策略组之间嵌套,如若想让 Loon 使用子策略组内节点,需要正确嵌套母策略组与子策略组,正确的两种示范如下: 8 | 9 | - 订阅规则 >>> 母策略组 >>> 子策略组 >>> 订阅节点/筛选订阅节点 10 | 11 | - 订阅规则 >>> 母策略组 >>> 子策略组 >>> 次子策略组 >>> 订阅节点/筛选订阅节点 12 | 13 | ## 步骤 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如若想让 `手动选择` 策略组嵌套在 `Proxy` 策略组下,即 `Proxy` >>> `手动选择` ,如果用户没有创建 `Proxy` 策略组,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group.md) 跳转到 `新建策略组` 教程 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `策略组` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `Proxy` 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 策略组之间的嵌套中 `策略类型` 只允许选择 `select` ,确认 `策略类型` 右侧为 `select` ,否则请修改此选项 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_2.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `添加` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_3.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 从 `策略组` 列表下点击 `手动选择` 策略组 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_4.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `存储` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_5.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在下方查看 `手动选择` 策略组是否有显示,然后点击 `保存` 即可完成嵌套操作 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_6.jpg) 44 | 45 | # 多说几句 46 | 47 | - 为了充分理解 `正确嵌套示范` 步骤,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/TOP_Policy.md) 学习 `正确分辨母策略组和子策略组` 48 | 49 | - 策略组之间的嵌套中 `策略类型` 只允许选择 `select` 50 | -------------------------------------------------------------------------------- /Loon/Plus/New_Proxy_Group.md: -------------------------------------------------------------------------------- 1 | # 手动添加一个策略组 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 请注意,此教程添加的是一个子策略组,绝不会是一个母策略组,该子策略组可以通过 4 | 5 | - 被 `订阅规则` 中的 `策略` 的选择变成 `母策略组` 6 | 7 | - 被 `策略组` 中的 `添加` 变成 `次子策略组` / 主动添加 `次子策略组` 变成 `子策略组` 8 | 9 | - 主动添加 `订阅节点` 或者 `筛选订阅节点` 成为代理策略组 10 | 11 | ## 进入 `策略组` 添加策略组 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `策略组` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击下图所示区域(+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group_2.jpg) 20 | 21 | ## 后续操作请跳转教程 22 | 23 | - 如果用户希望添加的策略组嵌套其他策略组成为 `子策略组` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Matryoshka.md) 跳转到 `子母策略组之间的嵌套` 教程 24 | 25 | - 如果用户希望在添加的策略组内添加 `订阅节点` 或者 `筛选订阅节点` 成为 `代理策略组` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy_in_Proxy_Group.md) 跳转到 `节点与策略组之间的嵌套` 教程 26 | -------------------------------------------------------------------------------- /Loon/Plus/PCC.md: -------------------------------------------------------------------------------- 1 | # PCC 2 | 3 | `PCC` 策略组可以通俗理解成 Loon 间隔一段时间自动测试`PCC` 策略组下节点延迟,并剔除用户设置最大延迟的节点,对用户发起的同一主机名的网络访问请求锁定同一节点 4 | 5 | ## 一、进入 `策略组` 添加策略组 6 | 7 | 请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group.md) 跳转到 `手动添加一个策略组` 教程,完成操作后返回设置 `PCC` 教程 8 | 9 | ## 二、设置 `策略类型` 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `select` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `load-balance` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `random` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `pcc` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Test-URL` 一般不需要修改,`测试间隔` 的单位为 `秒` , `最大超时` 的单位为 `毫秒` ,按用户个人使用习惯修改,推荐 `最大超时` 修改为 `1000` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_4.jpg) 30 | 31 | ## 三、添加代理节点 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 策略组是不能进行延迟测速的,因而只能添加代理节点 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 承接第一步的后面,点击 `添加` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_5.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 从 `筛选订阅节点` 列表下选择筛选后的节点,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_6.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `储存` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_7.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确保 `订阅筛选` 下 `筛选` 的 `()` 内有数字后点击 `保存` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/PCC_8.jpg) 50 | 51 | # 多说几句 52 | 53 | - 按本教程新增的 `PCC` 策略组没有实质性作用,需要将 `PCC` 策略组作为子策略组嵌套进代理母策略组中才会发挥实质性作用 54 | 55 | - 一定要注意的是 `PCC` 策略组下不可以嵌套其他子策略组,因为策略组不是节点,策略组没有延迟测试一说 56 | 57 | - 添加代理节点时,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 58 | 59 | - `筛选订阅节点` 内也不允许有过多的节点,建议低于 `10` 个,否则也容易出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 60 | 61 | - 如果不会利用正则表达式筛选适合的节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Regex.md) 跳转学习正则表达式 62 | 63 | # 经典案例 64 | 65 | - 关于策略组内策略类型为 `PCC` 策略组下可用节点为 `0` 的情况,可能是因为母策略组没有选择该 `PCC` 策略组作为代理策略组 66 | 67 | - [憨憨操作](https://t.me/Loon0x00/350123) 68 | -------------------------------------------------------------------------------- /Loon/Plus/Plugin.md: -------------------------------------------------------------------------------- 1 | # 添加插件 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 添加插件功能通过读取 URL 内容,自动识别相应模块下的代码片段,批量在 Loon 配置文件内插入大量的代码片段,且执行优先级最高 4 | 5 | ## 关于添加插件中对 URL 的要求及内容格式要求 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 关于添加插件中对 URL 的要求、内容格式要求、其他一系列问题,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format.md) 跳转到 `添加插件中对 URL 的要求及内容格式要求` 教程 8 | 9 | ## 添加插件 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `插件` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `URL` 栏粘贴用户获取的正确的 URL 链接,如若用户不清楚如何获取,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format.md) 跳转到 `添加插件中对 URL 的要求及内容格式要求` 教程并查看第四步操作 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入插件的命名,按用户个人喜爱命名 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 请用户注意,如果插件内有 `[Rule]` 模块相关代码片段,点击 `PROXY` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 根据 `[Rule]` 代码选择用户需要的策略 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_5.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_6.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域,更新 `插件` 即可完成操作 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_7.jpg) 42 | 43 | # 鸣谢 44 | 45 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 46 | 47 | - [lxk0301](https://github.com/lxk0301/scripts/blob/master/jd_fruit.js) 48 | 49 | - [chavyleung](https://github.com/chavyleung/scripts/tree/master/wmmeituan) 50 | -------------------------------------------------------------------------------- /Loon/Plus/Plugin_Format.md: -------------------------------------------------------------------------------- 1 | # 添加插件 URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此教程让用户统一学习关于 `添加插件` 中填写的 URL 的格式要求及其内容要求 4 | 5 | ## 一、对 URL 格式及其内容的要求 6 | 7 | - 对 URL 格式的要求 8 | 9 | - 文件上传至github库的,订阅地址 URL 必须以 `http://raw` 开头 10 | 11 | - 对 URL 内容的要求 12 | 13 | - 必须拥有 Loon 配置文件的格式,目前暂时支持 `[Rule]` 、 `[URL Rewrite]` 、 `[Script]` 、 `[MITM]` 模块,后续会扩展更多模块 14 | 15 | ## 二、URL 内容示范 16 | 17 | ``` 18 | [Rule] 19 | DOMAIN,google.com,PROXY 20 | 21 | [URL Rewrite] 22 | ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 23 | 24 | [Script] 25 | http-request ^https?:\/\/(www.)?(example)\.com script-path=localscript.js,tag = requestScript,enable=true 26 | http-response ^https?:\/\/(www.)?(example)\.com script-path=https://example.com/loon.js,timeout=10,requires-body = true,tag = responseScript,enable=true 27 | cron "0 8 * * *" script-path=cron.js,tag = responseScript,enable=true 28 | 29 | [MITM] 30 | hostname = *.example.com,*.sample.com 31 | ``` 32 | 33 | ## 三、URL 实例文件示范 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 直接点击下方的地址,查看 URL 的内容的正确格式写法 36 | 37 | https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Plugin_Example.conf 38 | 39 | ## 四、获取正确的 URL 链接的方法 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要订阅脚本的文件 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 Raw 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 长按地址栏,点击 `拷贝` 即可 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_3.jpg) 52 | 53 | # 多说几句 54 | 55 | - 虽然支持 `[Script]` 模块,但是不建议将**签到类脚本**的脚本配置代码写入插件文件内,原因是通过此方式添加脚本不允许用户修改脚本执行时间 56 | 57 | - 建议将类似于 `京东、淘宝历史价格脚本` 的脚本配置代码写入插件文件内,因为此类脚本不会有弹窗提醒,也不需要修改执行时间 58 | -------------------------------------------------------------------------------- /Loon/Plus/Plugin_Recommend.md: -------------------------------------------------------------------------------- 1 | # 插件番外篇 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 由于插件功能的强大,社区有不少热心作者将各类实用类插件整理出来,此教程主要为用户提供一些实用类的插件 URL 地址,排名不分先后 4 | 5 | ## URL(直接长按蓝色部分,选择拷贝即可) 6 | 7 | - 解锁国际版Tiktok(由于可能涉及非法入侵计算机系统,触犯刑事犯罪,此教程不在此教授) 8 | 9 | - 解锁网易云音乐无版权音乐(由于可能涉及非法入侵计算机系统,触犯刑事犯罪,此教程不在此教授) 10 | 11 | - [去广告](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/Advertising.plugin) 12 | 13 | - [去 YouTube 广告](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/YouTubeAds.plugin) 14 | 15 | - [去知乎广告](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/ZhiHu.plugin) 16 | 17 | - [去人人视频广告](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/rrsp.plugin) 18 | 19 | - [BoxJs For TestFlight](https://gitee.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.loon.tf.plugin) 20 | 21 | - [淘宝、京东历史价格脚本 —— 内值版](https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Loon_Price.plugin) 22 | 23 | - [淘宝、京东历史价格脚本 —— 弹窗版](https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Loon_Price_Lite.plugin) 24 | 25 | - [更多请加入 Loon 官方群并发送"找插件"即可](https://t.me/Loon0x00) 26 | 27 | # 鸣谢 28 | 29 | - [Tartarus2014](https://github.com/Tartarus2014/For-own-use/tree/master/Loon/Plugin) 30 | 31 | - [chavyleung](https://chavyleung.gitbook.io/boxjs/) 32 | -------------------------------------------------------------------------------- /Loon/Plus/Plugin_Summary.md: -------------------------------------------------------------------------------- 1 | # 什么是插件 2 | 3 | - 官方解析: 4 | 5 | - [TestFlight(192)](https://t.me/LoonNews/187):添加Plugin插件,一个插件就是按功能区分的子配置,格式个(跟)profile配置文件相同,plugin中的配置优先级最高,目前暂时支持 `[URL Rewrite]` 、 `[Script]` , `[MITM]` 模块,后续会扩展更多模块,相关配置格式见example样例配置,相关plugin格式详见:[格式](https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Plugin/Plugin_Example.plugin) 6 | 7 | - [TestFlight(193)](https://t.me/LoonNews/194):支持 `[Rule]` 模块,策略可设置为DIRECT,REJECT,PROXY,其中PROXY为用户在app中手动映射的策略,rule后不跟随策略默认使用PROXY,相关样例配置详见:[格式](https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Plugin/Plugin_Example2.plugin) 8 | 9 | 10 | - 小白理解:可以将插件理解成一个残疾版的配置文件,通过读取 URL 内容,自动识别相应模块下的代码片段,批量在 Loon 配置文件内插入大量的代码片段,且执行优先级最高 11 | 12 | ## 关于添加插件中对 URL 的要求及内容格式要求 13 | 14 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 关于添加插件中对 URL 的要求、内容格式要求、其他一系列问题,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format.md) 跳转到 `添加插件中对 URL 的要求及内容格式要求` 教程 15 | 16 | # 多说几句 17 | 18 | - 虽然支持 `[Script]` 模块,但是不建议将**签到类脚本**的脚本配置代码写入插件文件内,原因是通过此方式添加脚本不允许用户修改脚本执行时间 19 | 20 | - 建议将类似于 `京东、淘宝历史价格脚本` 的脚本配置代码写入插件文件内,因为此类脚本不会有弹窗提醒,也不需要修改执行时间 21 | 22 | # 参考 23 | 24 | - [TestFlight(192)](https://t.me/LoonNews/187) 25 | 26 | - [TestFlight(193)](https://t.me/LoonNews/194) 27 | -------------------------------------------------------------------------------- /Loon/Plus/Proxy.md: -------------------------------------------------------------------------------- 1 | # 单个节点 2 | 3 | 用户可以通过 `单个节点` 按钮添加自行搭建的服务器,一个节点代表一个代理服务器,代理服务器可以实现流量的中转。 4 | 5 | - 目前支持的协议有 6 | 7 | - HTTP 8 | 9 | - HTTPS 10 | 11 | - SS 12 | 13 | - SSR 14 | 15 | - V2ray 16 | 17 | - Trojan 18 | 19 | # 添加方法 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Loon 目前支持三种 UI 方式添加单个节点:手动输入配置、粘贴 URL、扫描二维码。 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户也可以进入主页,点击下方 `配置`-> `单个节点` -> `+` 可进行相关节点配置。 24 | 25 | # 第一种方法:通过UI写入 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `单个节点` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_UI_1.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角所示区域(+) 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_UI_2.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击协议右侧 `Direct` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_UI_3.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择需要的协议并点击进入配置 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_UI_4.jpg) 42 | 43 | # 第二种方法:通过在 `配置文件` 或 `文本编辑` 中写入 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `文本编辑` 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Conf_1.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到 `[Proxy]` 并在其下一行写入 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Conf_2.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 格式如下所示 54 | 55 | ``` 56 | [Proxy] 57 | # 内置 DIRECT、REJECT 策略 58 | 59 | # http(s) 60 | # 节点名称 = 协议,服务器地址,服务器端口,用户名,密码 61 | 1 = http, 1.2.3.4, 443, username, "password" 62 | 2 = https, 1.2.3.4, 443, username, "password" 63 | 64 | # ss(r) 65 | # 节点名称 = 协议,服务器地址,服务器端口,加密协议,密码 66 | 1 = Shadowsocks, 1.2.3.4, 443, aes-128-gcm, "password" 67 | 2 = Shadowsocks, 1.2.3.4, 443, aes-128-gcm, "password" 68 | 3 = ShadowsocksR, 1.2.3.4, 443, aes-256-cfb,"password",auth_aes128_md5,{},tls1.2_ticket_auth,{} 69 | 4 = ShadowsocksR, 1.2.3.4, 10076, aes-128-cfb,"password",auth_aes128_md5,{},tls1.2_ticket_auth,{} 70 | 71 | # vmess 72 | # 节点名称 = 协议,服务器地址,端口,加密方式,UUID,传输方式:(tcp/ws),path:websocket握手header中的path,host:websocket握手header中的path,over-tls:是否tls,tls-name:tls名字,skip-cert-verify:是否跳过证书校验(默认否) 73 | 6 = vmess, 1.2.3.4, 10086, aes-128-gcm,"uuid",transport:ws,path:/,host:icloud.com,over-tls:true,tls-name:youtTlsServerName.com,skip-cert-verify:false 74 | 75 | # trojan 76 | #节点名称 = 协议,服务器地址,端口,密码,tls-name:tls名字,skip-cert-verify:是否跳过证书校验(默认否) 77 | 7 = trojan, 1.2.3.4, 443,password,tls-name:youtTlsServerName.com,skip-cert-verify:false 78 | ``` 79 | 80 | # 多说几句 81 | 82 | - 由于协议的不同,需要用户自行写入配置,此教程不详细讲述 83 | 84 | # 参考 85 | 86 | - [Loon 不完全教程 - 节点导入](https://www.notion.so/1-9809ce5acf524d868affee8dd5fc0a6e#d8572e22c34e483589a445b174eec2bb) 87 | 88 | - [LoonManual](https://github.com/Loon0x00/LoonManual/blob/master/README.md) 89 | -------------------------------------------------------------------------------- /Loon/Plus/Regex.md: -------------------------------------------------------------------------------- 1 | # 正则表达式 2 | 3 | 利用正则表达式筛选订阅节点 4 | 5 | ## 常用表达式 6 | 7 | - `任何值` .* 8 | 9 | - 全部节点,只要有名字都会匹配,这个不需要多解释 10 | 11 | - `含` .*(A) 12 | 13 | - 节点名含有 `A` ,例如 `.*(IPLC)` ,筛选名字带有 `IPLC` 的节点 14 | 15 | - `或` (A)|(B) or ^.*(A|B) 16 | 17 | - 节点名含有`A` 或者 `B` ,例如 `(IPLC)|(IEPL)` ,筛选名字带有 `IPLC` 或者 `IEPL` 的节点 18 | 19 | - `不含` ^((?!A).)*$ or ^(?!.\*?A) 20 | 21 | - 节点名不含有 `A` ,例如 `^(?!.*?x1.5)` ,筛选名字不带 `x1.5` 的节点 22 | 23 | ## 组合的一般方法 24 | 25 | - `含` 与 `含` 26 | 27 | - (香港).\*(IPLC) ,筛选节点名字同时含 `香港` 和 `IPLC` 的节点 28 | 29 | - `含有` 与 `含有` 与 `含有` 30 | 31 | - (香港).\*(隧道).\*(x1) ,筛选节点名字同时包含 `香港` 和 `隧道` 和 `x1` 的节点 32 | 33 | - `含` 与 `不含` 34 | 35 | - ^(?!.*?x1.5).\*(香港) ,筛选节点名字不含 `x1.5` 但含有 `香港` 的节点 36 | 37 | 38 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Filter.md: -------------------------------------------------------------------------------- 1 | # 正则筛选订阅节点 2 | 3 | 此教程需要学会正则表达式的基本写法,可以利用正则表达式筛选用户需要的订阅节点,如果没有学习过正则表达式的教程,请点击 [这里]() 跳转,学习后再进行下列操作 4 | 5 | ## 一、订阅节点 6 | 7 | 如果没有订阅节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy.md) 跳转到 `订阅节点` 教程 8 | 9 | ## 二、筛选订阅节点 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `筛选订阅节点` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `包含的订阅` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击在 `订阅节点` 步骤中订阅的节点 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角 `存储` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `筛选类型` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `NameRegex` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_8.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `正则表达式` 右侧 `必填` 区域并输入正则表达式 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_9.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 查看下方是否出现节点名称,如果没有出现,请再三检查是否输入正确的正则表达式,或 `订阅节点` 中是否有该类型的代理节点 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_10.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确定有筛选成功的节点后,点击 `保存` 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_11.jpg) 54 | 55 | # 多说几句 56 | 57 | - 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 58 | 59 | - 该教程仅让用户筛选订阅节点,要让筛选订阅节点发挥代理功能,需要进行 `俄罗斯套娃` 的操作 60 | 61 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Filter_NameKeyword.md: -------------------------------------------------------------------------------- 1 | # 关键词筛选订阅节点 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通过关键词,根据节点名称,筛选订阅节点,适用于不会写正则表达式的用户,缺点是不能排除不需要的代理节点 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此处虽为 `关键词筛选订阅节点` 教程,但仍极力推荐使用筛选类型为 `NameRgex` 的正则表达式筛选,避免以上情况出现 6 | 7 | ## 一、订阅节点 8 | 9 | 如果没有订阅节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy.md) 跳转到 `订阅节点` 教程 10 | 11 | ## 二、筛选订阅节点 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `筛选订阅节点` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `包含的订阅` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击在 `订阅节点` 步骤中订阅的节点 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角 `存储` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `筛选类型` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `NameKeyword` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `关键词` 右侧 `必填` 区域并输入关键词内容 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 查看下方是否出现节点名称,如果没有出现,请检查 `订阅节点` 中是否有该类型的代理节点 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_3.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确定有筛选成功的节点后,点击 `保存` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_4.jpg) 56 | 57 | # 多说几句 58 | 59 | - 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 60 | 61 | - 该教程仅让用户筛选订阅节点,要让筛选订阅节点发挥代理功能,需要进行 `俄罗斯套娃` 的操作 62 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Filter_NodeSelect.md: -------------------------------------------------------------------------------- 1 | # 手动筛选订阅节点 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户通过手动选择的方式筛选出用户需要的代理节点,但如若手动选择的节点名称出现更换的情况,会导致该节点无法显示在 `代理策略组` 内 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此处虽为 `手动筛选节点` 教程,但仍极力推荐使用筛选类型为 `NameRgex` 的正则表达式筛选,避免以上情况出现 6 | 7 | ## 一、订阅节点 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如果没有订阅节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy.md) 跳转到 `订阅节点` 教程 10 | 11 | ## 二、筛选订阅节点 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `筛选订阅节点` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `包含的订阅` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击在 `订阅节点` 步骤中订阅的节点 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角 `存储` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `筛选类型` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `NameSelect` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在下方手动选择需要的代理节点,选中代理节点时该代理节点右侧会出现蓝色 `√` ,即为选中该代理节点 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 手动选择代理节点完成后,点击 `保存` 即可完成 `手动筛选订阅节点` 的操作 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_3.jpg) 52 | 53 | # 多说几句 54 | 55 | - 在 `别名` 栏填入 `筛选订阅节点` 名称,按用户个人喜爱自行命名即可,但绝不允许与 `订阅节点` 名称相同,否则会发生循环错误 56 | 57 | - 该教程仅让用户筛选订阅节点,要让筛选订阅节点发挥代理功能,需要进行 `俄罗斯套娃` 的操作 58 | 59 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_JaveScript.md: -------------------------------------------------------------------------------- 1 | # 添加远程链接脚本 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此教程让用户通过对 Loon 的 UI 操作,在 Loon 内添加一个引用路径为**远程路径**的脚本 4 | 5 | ## 充分理解脚本文件内配置代码 6 | 7 | **以京东京豆签到脚本为例** 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 阅读脚本文件内的配置代码,如下图区域 `[Script]` 下的 `http-request` 代码所示 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JD-DailyBonus_http-request.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按照三种脚本语句格式拆解这段配置代码,**明晰哪些地方可以自行修改,哪些地方不可自行修改** 14 | 15 | **如果用户对三种脚本语句格式不了解,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_Format.md) 跳转到 `入门 —— 如何看懂三种脚本语句的必备格式` 教程** 16 | 17 | - 用户不可自行修改的项目与填写位置 18 | 19 | - `http-request` <===> 脚本类型 20 | 21 | - ` https:\/\/api\.m\.jd\.com\/client\.action.*functionId=signBean` <===> 表达式 22 | 23 | - `https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js` <===> 脚本远程链接 24 | 25 | - 用户可自行修改的项目与填写位置 26 | 27 | - `获取京东cookie` <===> 别名 28 | 29 | ## 通过 UI 添加脚本 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `添加脚本` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_1.jpg) 38 | 39 | **以添加 http-request 语句为例** 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `脚本类型` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_2.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `http-request` 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_3.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏写入脚本名称,按用户个人喜爱,自行命名,最好以脚本功能命名 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_4.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `表达式` 栏写入匹配网址执行脚本的正则表达式,即 ` https:\/\/api\.m\.jd\.com\/client\.action.*functionId=signBean` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_5.jpg) 56 | 57 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `脚本位置` 58 | 59 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_6.jpg) 60 | 61 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `Remote` 62 | 63 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_7_2.jpg) 64 | 65 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `脚本链接` 栏写入脚本远程链接,即 `https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js` 66 | 67 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_8_2.jpg) 68 | 69 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 正确的写法如下图所示,确定无误后点击 `保存` 即可完成操作 70 | 71 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script_10_2.jpg) 72 | 73 | # 多说几句 74 | 75 | - 更推荐使用此方法添加单个脚本,因为远程链接中的脚本文件内容发生修改,用户可以第一时间体验到脚本带来的新功能 76 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Proxy.md: -------------------------------------------------------------------------------- 1 | # 订阅节点 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 订阅节点是许多节点的集合,是一个配置在远端的节点集合,Loon 通过 URL 下载下来后解析成一个节点列表 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通俗解释为,用户将服务器提供商提供的订阅地址,订阅到 Loon 之中 6 | 7 | ## 操作步骤 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `订阅节点` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_1.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角所示区域(+) 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_2.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `URL` 栏填入服务器提供商提供的订阅地址 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_3.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入服务器提供商名称,按用户爱好自行命名即可,但不可与 `筛选订阅节点` 或者 `策略组` 名称相同 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_4.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 即可 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_5.jpg) 28 | 29 | # 多说几句 30 | 31 | - 重要提醒:在 `别名` 栏填入服务器提供商的名称不可与 `筛选订阅节点` 或者 `策略组` 名称相同!!! 32 | 33 | - 该订阅节点的方法添加的节点一般比较多,建议搭配下面 `筛选订阅节点` 的功能,筛选需要的节点 34 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Proxy_in_Proxy_Group.md: -------------------------------------------------------------------------------- 1 | # 节点与策略组之间的嵌套 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将代理节点添加到策略组下,实现代理功能,实际上就是让该策略组成为一个 `代理策略组` 4 | 5 | ## 一、初步设置 6 | 7 | - 用户未曾添加一个策略组作为 `代理策略组` 嵌套节点,,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group.md) 跳转 `新建子策略组` 教程学习如何添加一个策略组 8 | 9 | - 用户已经成功添加一个策略组作为 `代理策略组` 嵌套节点,请继续浏览以下教程 10 | 11 | --- 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `策略组` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要添加代理节点的策略组,以下图所示中的 `手动选择` 策略组为例,点击 `手动选择` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_in_Proxy_Group_1.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击并设置 `策略类型` ,分成 4 种情况 22 | 23 | - 用户希望手动选择节点时,策略类型选择 `select` ,请直接本教程下面的 `二` 24 | 25 | - 如果用户希望策略组发挥以下作用时,请点击对应的教程并浏览跳转教程中的第二步以及第三步的操作 26 | 27 | - 自动选择最低延迟节点时,即策略类型选择 `url-test` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/URL-Test.md) 跳转到 `URL-Test 策略组的设置` 教程,浏览跳转教程第二步以及第三步的操作 28 | 29 | - 自动选择可用节点时,即策略类型选择 `fallback` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Fallback.md) 跳转到 `Fallback 策略组的设置` 教程,浏览跳转教程第二步以及第三步的操作 30 | 31 | - 符合预设条件的节点自动对同一主机名的请求锁定同意节点时,即策略类型选择 `load-balance` ,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/PCC.md) 跳转到 `PCC 策略组的设置` 教程,浏览跳转教程第二步以及第三步的操作 32 | 33 | ## 二、仅供策略类型选择 `select` 时浏览 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 以策略类型选择 `select` 为例,点击 `添加` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Select_1.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 从 `订阅节点` 或者 `筛选订阅节点` 的列表下选择需要的`订阅节点` 或者 `筛选订阅节点` ,点击名称 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Select_2.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `储存` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Select_3.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确保 `订阅筛选` 下 `筛选` 的 `()` 内有数字后点击 `保存` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Select_4.jpg) 50 | 51 | # 多说几句 52 | 53 | - 仅当策略类型选择 `select` 时才可以从 `订阅节点` 列表下选择,其余策略类型都严厉禁止从 `订阅节点` 列表中选择 54 | 55 | - 用户对 `代理策略组` 感兴趣的话,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Default_Proxy.md) 跳转到 `代理策略组` 教程 56 | 57 | 58 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Rule.md: -------------------------------------------------------------------------------- 1 | # `订阅规则` 功能存在的必要性和优点 2 | 3 | `订阅规则` 可以让用户免需在本地规则中手动添加一个又一个的规则,社区有大佬整理了各种规则供用户订阅,省去用户自行本地添加规则的麻烦 4 | 5 | ## 一、复制订阅规则的 Raw 链接 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 首先找到用户需要订阅的规则,推荐使用 [Conners Hua](https://github.com/ConnersHua?tab=repositories) 的规则,点击 [这里](https://github.com/ConnersHua/Profiles/tree/master/Surge/Ruleset) 前往 github 库 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 以订阅 `China.list` (国内规则) 规则为例,点击 `China.list` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_Raw_China_1.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `Raw` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_Raw_China_2.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `拷贝` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_Raw_China_3.jpg) 20 | 21 | ## 二、确定 `订阅规则` 所选策略 22 | 23 | 订阅规则的策略选择分为三种,分别是 24 | 25 | - `DIRECT` 26 | 27 | - `REJECT` 28 | 29 | - `代理策略组` 30 | 31 | - `母策略组` 32 | 33 | 因为 `China.list` 是中国规则,所以这里策略选择为 `DIRECT`(直连),策略选择为 `REJECT` 、 `代理策略组` 、 `母策略组` 时是类似操作,这里不再阐述 34 | 35 | 36 | ## 三、进入 Loon 内订阅规则 37 | 38 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 点击下方 `配置` 栏,点击 `订阅规则` 39 | 40 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_1.jpg) 41 | 42 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击下图所示区域(+) 43 | 44 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_2.jpg) 45 | 46 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将上面复制/拷贝下来的地址粘贴到 `URL` 处,填写分流别名 47 | 48 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_China_3.jpg) 49 | 50 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `DIRECT` 51 | 52 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_China_4.jpg) 53 | 54 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `DIRECT` 55 | 56 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_China_5.jpg) 57 | 58 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 即可 59 | 60 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_remote_China_6.jpg) 61 | 62 | ## 四、订阅规则的位次规定 63 | 64 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 订阅规则的位次是有规定的,顺序由上到下的顺序应该为 65 | 66 | - 去广告类(策略选择 `REJECT`) 67 | 68 | - 国内直连类(策略选择 `DIRECT`) 69 | 70 | - 国外特定 APP 代理(策略选择 `代理策略组` 或者 `母策略组` {此策略名称每个用户不一定相同,需要看用户具体设置的名称而定}) 71 | 72 | - 国外代理类(策略选择 `代理策略组` 或者 `母策略组` {此策略名称每个用户不一定相同,需要看用户具体设置的名称而定}) 73 | 74 | # 多说几句 75 | 76 | - 去广告规则推荐订阅 NobyDa 野比的去广告规则,github 库请点击 [这里](https://github.com/NobyDa/Script/tree/master/Surge) 跳转 77 | 78 | - 流媒体规则推荐订阅 Conners Hua 的规则,github 库请点击 [这里](https://github.com/ConnersHua/Profiles/tree/master/Surge/Ruleset) 跳转 79 | 80 | - 为什么说 `代理策略组` 或者 `母策略组` 名称每个用户不一定相同,需要看用户具体设置的名称而定,想了解原因请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Global_Policy.md) 跳转并阅读 `三、代理策略` 81 | 82 | # 鸣谢 83 | 84 | - [Conners Hua](https://github.com/ConnersHua?tab=repositories) 85 | 86 | - [NobyDa](https://github.com/NobyDa) 87 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Script.md: -------------------------------------------------------------------------------- 1 | # 订阅脚本 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 订阅脚本功能通过读取 URL 内容,自动识别脚本语句和域名,批量在 Loon 内添加脚本 4 | 5 | ## 关于订阅脚本中对 URL 的要求及内容格式要求 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 关于订阅脚本中对 URL 的要求、内容格式要求、其他一系列问题,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Script_Format.md) 跳转到 `订阅脚本中对 URL 的要求及内容格式要求` 教程 8 | 9 | ## 订阅脚本 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `订阅脚本` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `URL` 栏粘贴用户获取的正确的 URL 链接,如若用户不清楚如何获取,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Script_Format.md) 跳转到 `订阅脚本中对 URL 的要求及内容格式要求` 教程并查看第四步操作 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `别名` 栏填入订阅脚本的命名,按用户个人喜爱命名 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域,更新 `订阅脚本` 即可完成操作 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_5.jpg) 34 | 35 | # 多说几句 36 | 37 | - 如若 URL 内容中脚本语句出现错误,Loon 不会读取此条语句,而是直接略过读取 38 | 39 | - 个人认为订阅脚本内只订阅一个脚本会显得有点折腾自己 40 | 41 | - 例如:[错误的订阅脚本方式](https://t.me/Loon0x00/350684) 42 | 43 | # 鸣谢 44 | 45 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 46 | 47 | - [lxk0301](https://github.com/lxk0301/scripts/blob/master/jd_fruit.js) 48 | 49 | - [chavyleung](https://github.com/chavyleung/scripts/tree/master/wmmeituan) 50 | -------------------------------------------------------------------------------- /Loon/Plus/Remote_Script_Format.md: -------------------------------------------------------------------------------- 1 | # 订阅脚本 URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此教程让用户统一学习关于 `订阅脚本` 中填写的 URL 的格式要求及其内容要求 4 | 5 | ## 一、对 URL 格式及其内容的要求 6 | 7 | - 对 URL 格式的要求 8 | 9 | - 文件上传至github库的,订阅地址 URL 必须以 `http://raw` 开头 10 | 11 | - 对 URL 内容的要求 12 | 13 | - 必须包含一条或以上脚本语句 14 | 15 | - 可以写有 `hostname =` 的语句 16 | 17 | ## 二、URL 内容示范 18 | 19 | ``` 20 | http-request ^https?:\/\/(www.)?(example)\.com script-path=localscript.js,tag = requestScript,enable=true 21 | http-response ^https?:\/\/(www.)?(example)\.com script-path=https://example.com/loon.js,timeout=10,requires-body = true,tag = responseScript,enable=true 22 | cron "0 8 * * *" script-path=cron.js,tag = responseScript,enable=true 23 | 24 | hostname = example1.com,example2.com 25 | ``` 26 | 27 | ## 三、URL 实例文件示范 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 直接点击下方的地址,查看 URL 的内容的正确格式写法 30 | 31 | https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Remote_Script_Example.conf 32 | 33 | ## 四、获取正确的 URL 链接的方法 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击需要订阅脚本的文件 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_1.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 Raw 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_2.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 长按地址栏,点击 `拷贝` 即可 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_3.jpg) 46 | -------------------------------------------------------------------------------- /Loon/Plus/Rewrite.md: -------------------------------------------------------------------------------- 1 | # 复写 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在收到 http 请求时,Loon 会使用请求的 url 去寻找匹配的 url rewrite,一个 URL Rewrite 会根据匹配的规则替换或者修改 HTTP 请求中的 url,或者替换请求响应体。 4 | 5 | ## 格式要求 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 一个 URL Rewrite 分为三部分:正则表达式,替换内容,rewrite类型 8 | 9 | ### 例如 10 | 11 | ``` 12 | https?://(www.)?g.cn https://www.google.com 302 13 | ``` 14 | 15 | ## 支持类型 16 | 17 | - header 18 | 19 | - 请求头中匹配的host字段将会被替换内容所替换 20 | 21 | - reject 22 | 23 | - 直接拒绝请求 24 | 25 | - 302 26 | 27 | - 返回302响应 28 | 29 | - 307 30 | 31 | - 返回307响应 32 | 33 | # 参考 34 | 35 | - [LoonManual](https://github.com/Loon0x00/LoonManual/blob/master/README.md) -------------------------------------------------------------------------------- /Loon/Plus/Rule.md: -------------------------------------------------------------------------------- 1 | # 添加规则 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通过 UI 手动添加一个本地规则,注意此处是一个规则,如若用户需要批量添加规则,请使用 `订阅规则` 功能,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Rule.md) 跳转到 `订阅规则` 教程 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如果用户还不清楚什么是规则,规则的格式是什么,看不懂规则格式,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Rule_Summary.md) 跳转到 `何为规则` 教程 6 | 7 | ## 操作步骤 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 以添加一个匹配类型为 `DOMAIN-KEYWORD` ,策略为 `DIRECT` ,匹配内容为 `baidu` 的本地规则 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `单个规则` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击如图所示区域(+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `类型` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `DOMAIN-KEYWORD` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `策略` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择 `DIRECT` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_5.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `IP/Url/Regex` 并填入 `baidu` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_6.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确保 `类型` 栏出现 `DOMAIN-KEYWORD` 字样后,点击 `存储` 即可 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_7.jpg) 42 | 43 | # 多说几句 44 | 45 | - 目前已知小问题,当用户添加的规则匹配类型是 `DOMAIN` 时不需要点击 `类型` 并选择 `DOMAIN` ,否则会出现选择 `DOMAIN` 后出现 `匹配类型` 未选择类型的情况 46 | 47 | -------------------------------------------------------------------------------- /Loon/Plus/Rule_Recommend.md: -------------------------------------------------------------------------------- 1 | # 规则番外篇 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此教程主要为用户提供两位社区大佬们的规则库 4 | 5 | ## URL 6 | 7 | - lhie1:https://github.com/lhie1/Rules/tree/master/Surge/Surge%203 8 | 9 | - DivineEngine:https://github.com/DivineEngine/Profiles/tree/master/Surge/Ruleset 10 | 11 | - blackmatrix7: https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Loon 12 | 13 | - [更多请加入 Loon 官方群并发送"找规则"即可](https://t.me/Loon0x00) 14 | 15 | ## 订阅步骤 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 请参考 [订阅规则](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Rule.md) 教程 18 | 19 | # 鸣谢 20 | 21 | - [lhie1](https://github.com/lhie1) 22 | 23 | - [DivineEngines](https://github.com/DivineEngine) 24 | 25 | - [blackmatrix7](https://github.com/blackmatrix7) 26 | -------------------------------------------------------------------------------- /Loon/Plus/Rule_Summary.md: -------------------------------------------------------------------------------- 1 | # 什么是规则 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+)规则,决定了当一个请求进来时,如何通过匹配类型进行匹配,以及如何选用对应的策略 4 | 5 | ## 为什么代理软件要设置规则 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 因为使用代理软件时,用户访问防火墙内网站是不需要经过代理节点的,而当用户试图访问防火墙外的网站时是需要经过代理节点才能访问 8 | 9 | - 如:中国大陆用户直连访问 `www.baidu.com` 会成功,直连 `www.google.com` 则会失败,但是设置规则后,利用代理节点访问 `www.google.com` 就成功 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 `自动分流` 模式下,为了让 Loon 能按需使用代理节点,必须为 Loon 设置规则 12 | 13 | ## 规则组成 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 规则分为三个部分,分别是:匹配类型 ,匹配内容,策略名称 16 | 17 | - 如: `DOMAIN-SUFFIX,twimg.com,PROXY` 18 | 19 | ## 匹配类型 20 | 21 | 匹配名称|匹配类型|说明 22 | -|-|- 23 | 基于域名后缀|DOMAIN-SUFFIX|域名后面相同就行,例如`b.com`可匹配到`a.b.com` 24 | 基于域名完整匹配|DOMAIN|严格匹配域名 25 | 基于域名关键字|DOMAIN-KEYWORD|检测到关键词就会被匹配 26 | 基于用户代理串|USER-AGENT|根据 Http 的 user-agent 值来进行匹配,支持带有 \* , ? 的通配符匹配 27 | 基于URL正则|URL-REGEX|使用正则表达式匹配所走规则 28 | 基于请求IP范围|IP-CIDR|通常用作局域网匹配 29 | 基于IP定为国家编码|GEOIP|CN中国 30 | 兜底匹配|FINAL|如果没有匹配的规则,默认使用的匹配 31 | 32 | ## GeoiP 33 | 34 | 基于 IP 的位置信息来源于 GeoLite2 Country 。GeoLiteZ 数据库是由 MaxMind 创建的基于 IP 的地理位置信息数据库。可从 www.maxmind.com 获得。 35 | 36 | ## 实例示范理解规则的作用 37 | 38 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如下图中的用户发起对 `www.google.com` 的一个访问请求中 39 | 40 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Ruld_Example.jpg) 41 | 42 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `策略` 栏中, `Proxy` 代表策略, `[隧道]香港01#GZCM` 代表代理节点 43 | 44 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `规则` 栏中,`DOMAIN-KEYWORD` 代表匹配类型, `google` 代表匹配内容, `Proxy` 代表策略名称 45 | 46 | 即代表,用户发起对 `www.google.com` 的一个访问请求,被匹配类型为 `DOMAIN-KEYWORD` 域名关键字匹配,匹配内容为 `google` ,使用名为 `Proxy` 策略,该策略内最下层代理节点是 `[隧道]香港01#GZCM` 47 | 48 | # 多说几句 49 | 50 | - 兜底匹配,FINAL规则,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Final.md) 跳转到 `Final规则` 教程 51 | 52 | - [一个动图明白规则分流的作用](https://t.me/Loon0x00/705007) 53 | 54 | # 参考 55 | 56 | - [Loon 不完全教程 —— 规则-Rule](https://www.notion.so/2-967c1a07462c43ab88906162bec475a4) 57 | -------------------------------------------------------------------------------- /Loon/Plus/TOP_Policy.md: -------------------------------------------------------------------------------- 1 | # 正确分辨母策略组和子策略组 2 | 3 | 正确识别 `母策略组` ,对于理解 `俄罗斯套娃` 的逻辑会有很大的帮助 4 | 5 | ## 方法 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 其实 `母策略组` 非常容易辨认,打开 Loon 点击下方 `配置` 栏,点击 `订阅规则` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_1.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 查看每个订阅的规则左下角蓝色字体的名称,除 `DIRECT` 和 `REJECT` 的名称外,剩下名称的策略组就为 `母策略组` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_2.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 点击下方 `配置` 栏,点击 `策略组` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 查看名称为 `𝐏𝐫𝐨𝐱𝐲` 的母策略组,可以看到 `𝐏𝐫𝐨𝐱𝐲` 的母策略组下有 `手动选择`、`优选低延迟`、`健康检测` 三个子策略组 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_3.jpg) 22 | 23 | # 多说几句 24 | 25 | - 除 `DIRECT` 和 `REJECT` 的外的原因是: Loon 已经内置了 `DIRECT` 和 `REJECT` 策略组,因而在 `策略组` 面板中不可能出现名称为 `DIRECT` 或 `REJECT` 策略组 26 | 27 | - 可以出现名称为特殊字体的 `DIRECT` 或 `REJECT` 策略组,例如名称为 `𝐃𝐈𝐑𝐄𝐂𝐓` 的策略组 28 | 29 | - `订阅规则` 选择的策略组只能是 `母策略组` ,不可能是 `子策略组` ,但除该 `母策略组` 嵌套在其他 `母策略组` 内成为 `子策略组` 的情况外 30 | -------------------------------------------------------------------------------- /Loon/Plus/URL-Test.md: -------------------------------------------------------------------------------- 1 | # URL-Test 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `URL-Test` 策略组,默认每隔 600s 向配置的 url 发出 http 请求,选择最快返回数据的节点(注:url-test不支持策略组为其子策略) 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 通俗理解为, Loon 间隔一段时间自动测试 `URL-Test` 策略组下节点延迟,并自动为用户选择最低延迟的节点 6 | 7 | - [TestFilght 2.14(215)](https://t.me/LoonNews/287) 更新:添加 tolerance 参数,用于对比切换节点内时的容差,计算方式如下:前一次测速最优节点耗时-减去当前测速最优节点耗时大于 tolerance 时才会进行节点切换,默认100 8 | 9 | - 在 Loon 的更新说明中,对于此部分的描述为“小于”是错误的,正确应该为“大于” 10 | 11 | ## 一、进入 `策略组` 添加策略组 12 | 13 | 请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group.md) 跳转到 `手动添加一个策略组` 教程,完成操作后返回设置 `URL-Test` 教程 14 | 15 | ## 二、设置 `策略类型` 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `select` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_1.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `url-test` 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_2.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按用户个人喜爱填入策略组别名,测试间隔单位为 `秒` ,按用户个人使用习惯修改,一般也不需要修改 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_3.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `容差` 栏根据用户个人喜爱和代理服务器提供商一般延迟自行设置,计算方法上边已有介绍,自行理解自行设置 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_9.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Test-URL` 一般不需要修改 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_4.jpg) 36 | 37 | ## 三、添加代理节点 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 策略组是不能进行延迟测速的,因而只能添加代理节点 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 承接第一步的后面,点击 `添加` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_5.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 从 `筛选订阅节点` 列表下选择筛选后的节点,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_6.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `储存` 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_7.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 确保 `订阅筛选` 下 `筛选` 的 `()` 内有数字后点击 `保存` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_8.jpg) 56 | 57 | # 多说几句 58 | 59 | - 按本教程新增的 `URL-Test` 策略组没有实质性作用,需要将 `URL-Test` 策略组作为子策略组嵌套进代理母策略组中才会发挥实质性作用 60 | 61 | - 一定要注意的是 `URL-Test` 策略组下不可以嵌套其他子策略组,因为策略组不是节点,策略组没有延迟测试一说 62 | 63 | - 添加代理节点时,严厉禁止从 `订阅节点` 列表下选择,否则会出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 64 | 65 | - `筛选订阅节点` 内也不允许有过多的节点,建议低于 `10` 个,否则也容易出现 Loon 警告,甚至是代理服务器提供商封号等严重后果 66 | 67 | - 如果不会利用正则表达式筛选适合的节点,请点击 [这里](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Regex.md) 跳转学习正则表达式 68 | -------------------------------------------------------------------------------- /Loon/Plus/URL_Download.md: -------------------------------------------------------------------------------- 1 | # 从 URL 下载 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 用户可以利用 `从URL下载` UI按钮下载一套完整的配置文件 4 | 5 | ## 获取配置文件的 Raw 链接 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 Raw 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_1.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 长按地址栏拷贝链接 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_2.jpg) 14 | 15 | ## 从 URL 下载配置文件 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方配置栏 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_3.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `从URL下载` 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_4.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `添加` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_5.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴链接 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_6.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `确定` 即可 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_7.jpg) -------------------------------------------------------------------------------- /Loon/Plus/URL_Schemes.md: -------------------------------------------------------------------------------- 1 | # URLSchemes 2 | 3 | Loon 支持 URL Schemes,可结合其他工作流使用 4 | 5 | ## URL 6 | 7 | ``` 8 | 开启 Loon 9 | 10 | loon://on 11 | 12 | 关闭 Loon 13 | 14 | loon://off 15 | 16 | 导入配置 17 | 18 | loon://import 19 | 20 | 打开 Loon 配置文件 21 | 22 | loon://editconfig 23 | 24 | 打开最近请求 25 | 26 | loon://requestLists 27 | 28 | 打开日志 29 | 30 | loon://LogLists 31 | ``` 32 | 33 | ## 举例 34 | 35 | 若用户想导入配置,可以使用 `loon://import?sub=url` (URL为 Urlencode 之后的字符串) 36 | 37 | ``` 38 | loon://import?sub=https%3A%2F%2Floon.now.sh%2Flazy-config%2Fdefault 39 | ``` 40 | 41 | # 懒人快捷指令 42 | 43 | - [直接点击这里添加到快捷指令](https://www.icloud.com/shortcuts/382385cad0b6451dbb92ad79efc3681e) 44 | 45 | - [感谢 @ZhiYi_N 提供的快捷指令](https://t.me/Loon0x00/521568) 46 | -------------------------------------------------------------------------------- /Loon/Plus/cron.md: -------------------------------------------------------------------------------- 1 | # cron 表达式 2 | 3 | 通过对 cron 表达式的修改,定时执行脚本 4 | 5 | ## 学习 cron 表达式的基本写法 6 | 7 | 1、cron 6位表达式 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/cron_6.png) 10 | 11 | - 从左到右依次 12 | 13 | - 第一位代表 `秒` ,只允许写 `0-59` 之间的数字 14 | 15 | - 第二位代表 `分` ,只允许写 `0-59` 之间的数字,不允许出现 `60` 16 | 17 | - 第三位代表 `时` ,只允许写 `0-23` 之间的数字,凌晨12时不允许写 `24` 18 | 19 | - 第四位代表 `日` ,只允许写 `1-31` 之间的数字 20 | 21 | - 第五位代表 `月` ,只允许写 `1-12` 之间的数字 22 | 23 | - 第六位代表 `星期` ,只允许写 `0-7` 之间的数字, `0` 和 `7` 都代表周日 24 | 25 | 2、cron 5位表达式 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/cron_5.png) 28 | 29 | - 从左到右依次 30 | 31 | - 第一位代表 `分` ,只允许写 `0-59` 之间的数字,不允许出现 `60` 32 | 33 | - 第二位代表 `时` ,只允许写 `0-23` 之间的数字,凌晨12点时不允许写 `24` 34 | 35 | - 第三位代表 `日` ,只允许写 `1-31` 之间的数字 36 | 37 | - 第四位代表 `月` ,只允许写 `1-12` 之间的数字 38 | 39 | - 第五位代表 `星期` ,只允许写 `0-7` 之间的数字, `0` 和 `7` 都代表周日 40 | 41 | 3、特殊字符 42 | 43 | - `,` 代表 `和` ,如 `0 0,12,18 * * *` 代表 `每日0时、12时、18时执行一次` 44 | 45 | - `*` 代表 `任何值` ,如 `* * * * *` 代表 `每分钟执行一次` 46 | 47 | - `/` 代表 `每` ,如 `10-20/5 * * * *` 代表 `每小时里的第10-20分,每5分钟执行一次,即第10分钟、第15分钟、第20分钟` 48 | 49 | - 特殊情况:想表达每1分钟执行一次时,可以将 `/1` 省略不写 50 | 51 | 4、错误示范 52 | 53 | - `60 * * * * *` 理想:每分钟第60秒执行一次。实际:无法执行。原因:`秒` 位不允许写 `60` 。正确表达: `0 * * * * *` 54 | 55 | - `* 12-18 * * *` 理想:每日12时-18时第0分执行一次。实际:每日12时-18时每1分钟执行一次。原因:第一位是 `*` 。正确表达: `0 12-18 * * *` 56 | 57 | - `* 12-18 * * *` 上榜原因:群友经典示范,集体眼瞎系列 58 | 59 | - `0 18-12 * * *` 理想:每日18时-次日12时第0分钟执行一次。实际:无法执行。原因:不可跨时间刻度。正确表达: `0 18-23,0-12 * * *` 60 | 61 | - `*/90 * * * * *` 理想:每90秒执行一次。实际:每60秒执行一次。原因:`秒` 只有 `60` ,大于 `60` 时按 `60` 计算。正确表达:目前无法做到,推荐曲线救国 62 | 63 | # 参考 64 | 65 | - [crontab执行时间计算 - 在线工具](https://tool.lu/crontab/) 66 | -------------------------------------------------------------------------------- /Loon/Plus/hostname.md: -------------------------------------------------------------------------------- 1 | # 域名 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在 Loon 的 `配置文件` 内添加签到类脚本的代码中,总少不了添加一个网址在 `hostnamt = ` 后面,实际上这个网址就是域名 4 | 5 | ## 图示 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如下图所示区域内的网址就是域名 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JD-DailyBonus_hostname.jpg) 10 | 11 | ## 在 Loon `配置文件` 中的 `hostname = ` 后直接写入网址 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `文本编辑` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_UI.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到 `[MITM]` 下的 `hostname = ` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_1.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将域名/网址写入/粘贴到 `hostname = ` 后面,**两个域名之间用英文逗号 `,` 分隔** 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_2.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `保存` 即可完成操作 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_3.jpg) 28 | 29 | ## 在 Loon `域名` UI 中添加域名 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 并点击下方 `配置` 栏,点击 `域名` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_1.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角所示区域(+) 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_2.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将域名/网址写入/粘贴到如下图所示区域 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_3.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 `确定` 即可完成操作 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_4.jpg) 46 | -------------------------------------------------------------------------------- /Loon/Plus/ssid-trigger.md: -------------------------------------------------------------------------------- 1 | # ssid-trigger 2 | 3 | - 官方解析: 4 | 5 | - [TestFlight(262)](https://t.me/LoonNews/426):[general]添加ssid-trigger参数,用于指定SSID下流量模式切换,参考样例如下: ssid-trigger="default":rule,"cellular":rule,"SYSLINY-Pro":direct,"TPLINK":proxy (default表示默认,cellular表示蜂窝,目前支持三种值:rule,direct,proxy) 6 | 7 | - 小白理解:一种比[设置 ssid 内置策略组方案](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/ssid.md)和[设置自动脚本方案](https://t.me/cool_scripts/141)都更为快捷的ssid策略 8 | 9 | ## 注意 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 使用此方法设置 ssid 策略,务必需要用户知道已扶墙路由器的 SSID 是什么,如果不知道如何查看路由器 SSID 的用户,请自行百度或者参考[百度文库](https://wenku.baidu.com/view/9cfde0060166f5335a8102d276a20029bd64631f.html) 12 | 13 | ## 其他方法 14 | 15 | - [内置 ssid 策略组的设置](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/ssid.md) 16 | 17 | - [进阶操作 —— SSID 策略组嵌套教程](https://github.com/ArriettyQAQ/loon_tutorial) 18 | 19 | - [脚本的方法](https://t.me/cool_scripts/141) 20 | 21 | ## 操作步骤 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 复制以下代码 24 | 25 | > 代码意思为:默认情况下使用规则分流模式,蜂窝数据情况下使用规则分流模式,连接 SSID_1 无线网络情况下使用全局直连模式 26 | 27 | ``` 28 | ssid-trigger="default":rule,"cellular":rule,"SSID_1":direct 29 | ``` 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon,点击下方 `配置` 栏 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_1.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击文本配置 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_2.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 找到 `[general]` 配置栏 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_3.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 在其下面寻找合适的行粘贴第一步时复制的代码 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_4.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 修改 `SSID_1` 成用户已扶墙路由器 SSID 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_5.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角的 `完成` 按钮即可 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ssid-trigger_6.jpg) 54 | 55 | ## 多说几句 56 | 57 | - 使用此方法的设置在连接指定 Loon 使用全局直连模式的无线网络时,用户在 Loon 中预设的特定 APP 策略组会走路由器节点,请注意以下 APP 58 | 59 | - Netflix 60 | 61 | - Disney 62 | 63 | - ... 64 | 65 | - 如果家中有多台路由器扶墙,请参考以下规律自行修改 66 | 67 | ``` 68 | ssid-trigger="default":rule,"cellular":rule,"SSID_1":direct,"SSID_2":rule,"SSID_3":proxy 69 | ``` 70 | -------------------------------------------------------------------------------- /Loon/Plus_EN/Branch&Copy_EN.md: -------------------------------------------------------------------------------- 1 | # Create a single local branch and copy js 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将订阅脚本内需要的脚本移到本地脚本中,既可修改本地脚本内容,也可修改 cron 表达式,方便用户在本地脚本中,进入脚本文件修改脚本代码,或者修改 cron 脚本的执行时间 4 | 5 | ## 1. Create a single local branch and copy js 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Subscribe script` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the subscription script where the script is located, **here is the sample subscription of the previous tutorial subscription as an example** 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the script that the user needs to create a single local branch, **Here is the script of Jingdong East and Yisign as an example** 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Select `Create a single local branch and copy js` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_3_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If you don’t need to modify the `alias` or `cron expression`, you don’t need to change any settings at this time, just click ` Save` to complete the operation, the script in the subscription script will be automatically disabled 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_4_2.jpg) 26 | 27 | ## 2. View the local script that has created a single local branch and copy js (this step is the user's operation according to his wishes, not necessary) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Local script` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) You can see the first step in the `local script` interface to create a single local branch and copy the local script of js 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_5.jpg) 36 | 37 | # Say a few more words 38 | 39 | - If you don’t know `cron expression`, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/cron_EN.md) to jump to `Basic cron expression learning `Tutorial 40 | 41 | # Thanks 42 | 43 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) -------------------------------------------------------------------------------- /Loon/Plus_EN/Branch_EN.md: -------------------------------------------------------------------------------- 1 | # Create a single local branch 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Move the scripts needed in the subscription script to the local script, but the content of the local script cannot be modified, only the cron expression can be modified, which is convenient for users to modify the execution time of the cron script in the local script 4 | 5 | ## One, steps to create a single local branch 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click on the `Configuration` column below, click on the `Subscribe script` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the subscription script where the script is located, **here is the sample subscription of the previous tutorial subscription as an example** 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the script that the user needs to create a single local branch. **Here is the script of Jingdong and a sign in as an example** 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Select `Create a single local branch` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_3.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If you don’t need to modify the `alias` or `cron expression`, you don’t need to change any settings at this time, just click ` Save` to complete the operation, the script in the subscription script will be automatically disabled 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_4.jpg) 26 | 27 | ## 2. View the local script of a single local branch that has been created (this step is the user's operation according to his wishes, not necessary) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Local script` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) You can see the local script for creating a single local branch in the first operation in the `local script` interface 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Branch_5.jpg) 36 | 37 | # Say a few more words 38 | 39 | - If you don’t know `cron expression`, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/cron_EN.md) to jump to `Basic cron expression learning `Tutorial 40 | 41 | # Thanks 42 | 43 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 44 | -------------------------------------------------------------------------------- /Loon/Plus_EN/Configuration_EN.md: -------------------------------------------------------------------------------- 1 | # Configuration file 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The content that users modify the Loon configuration in the UI is almost always in the form of code in the `configuration file` 4 | 5 | ## Two ways to open text editing 6 | 7 | - The first method: Open Loon and click the `Configuration` column below, and click `Text Edit` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_UI.jpg) 10 | 11 | - The second method: Open Loon and find the shortcut of `Profile`, click the card of `Profile` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_Module.jpg) 14 | 15 | - If you can't find the shortcut of `Configuration File`, please see the next tutorial 16 | 17 | ## Add shortcut of `profile` to Loon `instrument` bar 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and find the `shortcut`, click on the area shown on the right side of the `shortcut` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_1.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Press and hold the area shown on the right side of `Profile`, and then drag upward 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_2.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Drag up to the `Visible` list 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_3.jpg) -------------------------------------------------------------------------------- /Loon/Plus_EN/DNS_EN.md: -------------------------------------------------------------------------------- 1 | # DNS 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Obtain the domain IP quickly and correctly through custom DNS. Loon will use the fastest response result according to the DNS concurrent requests set by the user, and use LRU to cache the most recent 100 results. 4 | 5 | # Local mapping 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Loon supports configuring local DNS mapping. Connect the IP address corresponding to the specified host name, and also support customizing specific DNS servers for specific domain names. -------------------------------------------------------------------------------- /Loon/Plus_EN/Default_Proxy_EN.md: -------------------------------------------------------------------------------- 1 | # Definition of `Agent Policy Group` 2 | 3 | Proxy policy group, that is, the policy group nested in the policy group `subscription node` or `filter subscription node` is called `agent policy group` 4 | 5 | ## Correctly identify the `agent strategy group` 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) According to the definition of `agent policy group` above, as long as there are nodes under the policy group, the policy group can be called `Agent Strategy Group` 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) For example: in the figure below, because the `manual selection` strategy group has nodes, the strategy group named `manual selection` It can be called an agent strategy group. 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy.jpg) 12 | 13 | ## Add a `Proxy Policy Group` 14 | 15 | In fact, it is the operation method in the `Nesting between Nodes and Policy Groups` tutorial, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy_in_Proxy_Group_EN.md) Jump to the `Nesting between nodes and policy groups` tutorial 16 | 17 | # Say a few more words 18 | 19 | - `Policy group`, `Subscription node` and `Filter subscription node` The names of the three are not allowed to have the same name, users need to pay attention -------------------------------------------------------------------------------- /Loon/Plus_EN/Download_From_URL_EN.md: -------------------------------------------------------------------------------- 1 | # Download from URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Download a script file to the local through the URL download function, so that the user can fill in some information in the script. The function is to cooperate with the `local script` >>> `add script` function 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) **Please note that this tutorial is only suitable for users with the following types of needs** 6 | 7 | - The script requires the user to **fill in information** 8 | 9 | - Users are fond of using **local script path** 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If you are not the user with the above requirements, please do not continue browsing, after all, the user’s time is also precious 12 | 13 | ## Two necessary conditions for using this function 14 | 15 | - URL requirements 16 | 17 | - URLs starting with `http://raw.` and suffixed with `.js` 18 | 19 | - Requirements for Loon 20 | 21 | - Automatic synchronization must be turned on in Loon >>> `More` >>> ʻiCloud Drive` 22 | 23 | ## Steps 24 | 25 | **Take Jingtokyo bean sign-in script as an example** 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open the script file 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_1.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click Raw 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_1_2.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Long press the address bar to copy the address 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_1.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` bar below, and click `Local JS file` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_2.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `download from URL` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_3.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Paste the copied/copied address above into the area as shown 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_4.jpg) 54 | 55 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Select `OK` 56 | 57 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_5.jpg) 58 | 59 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 60 | 61 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_6.jpg) 62 | 63 | ## Other function buttons 64 | 65 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Backup script` function is to upload the script in the local script list to the **iCloud/Loon/Script** folder Inside 66 | 67 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_Backup.jpg) 68 | 69 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The function of `recover script` is to display the scripts in the **iCloud/Loon/Script** folder in the local script In the list 70 | 71 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Download_From_URL_Restore.jpg) 72 | 73 | # Say a few more words 74 | 75 | - The first case is relatively rare at present, because script developers are actively cooperating with `BoxJs` to use scripts that require users to **fill in data types** 76 | 77 | - I personally think that the second type of users is just a joke. -------------------------------------------------------------------------------- /Loon/Plus_EN/Fallback_EN.md: -------------------------------------------------------------------------------- 1 | # Fallback 2 | 3 | The `Fallback` strategy group can be easily understood as Loon automatically test whether the nodes under the `Fallback` strategy group are available at intervals, and automatically select the first available node according to the node arrangement 4 | 5 | ## 1. Enter `Strategy Group` to add a strategy group 6 | 7 | Please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group_EN.md) to jump to the `Manually add a policy group` tutorial, and return to setting `Fallback` after completing the operation Tutorials 8 | 9 | ## Two, set `strategy type` 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `select` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL-Test_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `Fallback` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the alias of the strategy group according to the user’s personal preference, the unit of the `test interval` is `second`, the maximum timeout is The unit is `milliseconds`, modified according to the user's personal habits, it is recommended that `max timeout` be changed to `1000` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Test-URL` generally does not need to be modified 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_3.jpg) 26 | 27 | ## Three, add agent node 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The strategy group cannot perform delayed speed measurement, so only proxy nodes can be added 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) After following the first step, click `Add` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_4.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Select the filtered node from the list of `Filter subscription nodes`, it is strictly forbidden to select from the list of `Subscribe nodes`, otherwise There will be a Loon warning, or even a proxy server provider’s account, and other serious consequences 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_5.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_6.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Make sure there is a number in the `()` of `Filter` under `Subscription Filter` and click `Save` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Fallback_7.jpg) 46 | 47 | # Say a few more words 48 | 49 | - The newly added `Fallback` strategy group according to this tutorial has no substantive effect, and the `Fallback` strategy group needs to be nested as a sub-strategy group into the surrogate parent strategy group to play a substantive effect 50 | 51 | - It must be noted that other sub-strategy groups cannot be nested under the `Fallback` strategy group, because the strategy group is not a node, and the strategy group does not delay testing. 52 | 53 | - When adding a proxy node, it is strictly forbidden to select from the list of `subscribe nodes`, otherwise there will be a Loon warning, or even a proxy server provider’s ban. 54 | 55 | - It is not allowed to have too many nodes in `Filtering Subscription Nodes`, it is recommended to be less than `5`, otherwise it is prone to Loon warnings and even proxy server provider bans and other serious consequences 56 | 57 | - If you do not use regular expressions to filter suitable nodes, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Regex_EN.md) to learn regular expressions -------------------------------------------------------------------------------- /Loon/Plus_EN/Final_EN.md: -------------------------------------------------------------------------------- 1 | # The bottom line clause of the rule-`Final rule` 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The subscription rules are only compiled by the community leaders, and cannot cover all the rules that require proxy nodes to access, there must be ` With the emergence of “Fish from the Net”, at this time, we need the bottom line clause of the rules—“Final Rule” to let users make the choice of “direct connection” or “proxy” access 4 | 5 | ## The reflection of `Final rule` in configuration 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, click `Example` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Found `[Rule]` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Find the last line of code under `[Rule]` `FINAL,Final` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Example_2.jpg) 18 | 19 | ## Understanding of `FINAL, Final` 20 | 21 | `FIANL` is a necessary format requirement in Loon configuration, while `Fianl` is actually a strategy, and `Final` can be replaced with 22 | 23 | - `DIRECT` 24 | 25 | - ~~REJECT~~ (It is indeed possible to write this, but it is tossing users, so it is not recommended) 26 | 27 | - `Agent Strategy Group` 28 | 29 | - `Mother Strategy Group` 30 | 31 | ## Understanding of the three situations of replacement 32 | 33 | - `DIRECT` 34 | 35 | - That is, if the local rules and subscription rules are not matched, the direct connection strategy is used for the network request initiated by the user 36 | 37 | - For example: `FINAL,DIRECT` <===> directly select direct access 38 | 39 | - `Agent Strategy Group` 40 | 41 | - That is, if the local rules and subscription rules are not matched, use the `proxy node` for the network request initiated by the user 42 | 43 | - For example: `FINAL, manual selection` <===> Manual selection >>> Proxy node (here, `manual selection` is just an example name, in fact, the proxy policy group name and node are set according to the user's needs) 44 | 45 | - `Mother Strategy Group` 46 | 47 | - That is, if the local rules and subscription rules do not match, the network request initiated by the user requires the user to choose 48 | 49 | - For example: `FINAL,Final` <===> Final >>> DIRECT / Proxy (here `Fianl` is just an example name of the strategy group, in fact the name of the strategy group is set according to the user's needs) 50 | 51 | ## Deep understanding of the third situation 52 | 53 | When the configuration says `FINAL,Final`, the following types of `parent policy groups` can be made through the nesting between the `child-parent policy groups` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Final.jpg) 56 | 57 | As shown in the figure above, the user needs to manually preset the strategy to go when a fish slipping through the net appears. If the user chooses 58 | 59 | - `DIRECT` built-in strategy group, namely directly select direct access 60 | 61 | - `Proxy` parent policy group, the nesting situation is: Proxy >>> manually select >>> proxy node, that is, use proxy node to access 62 | 63 | # Reference 64 | 65 | - [Mind Map](https://t.me/Loon0x00/350927) from enthusiastic netizens, to understand the specific direction of the rules logically -------------------------------------------------------------------------------- /Loon/Plus_EN/Global_Group_EN.md: -------------------------------------------------------------------------------- 1 | # Understanding of `Global Agent` 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Global proxy`, that is, all network requests initiated by users go through the proxy node 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/ALL_PROXY.jpg) 6 | 7 | # Understanding of `Global Strategy` 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) `Global policy`, that is, the `agent strategy group` that the user uses when using the `global proxy` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Group_1.jpg) 12 | 13 | ## How to select the `agent policy group` for `global policy` 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) To understand what is `agent strategy group`, please click [here](https://github.com/chiupam/tutorial /blob/master/Loon/Plus/Default_Proxy.md) Jump to the `Proxy Policy Group` tutorial 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click on the `Configuration` column below, and click on `Global Strategy` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Group.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The user selects the correct `agent strategy group` according to his own needs and clicks on the strategy group name, because the name in the figure below For the policy group of `Proxy`, the sub-policy group named `manual selection` is `proxy policy group`, so this tutorial selects the policy group named `Proxy` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Default_Proxy_2.jpg) 28 | 29 | # Say a few more words 30 | 31 | - The strategy group with `subscription node` or `filter subscription node` nested in the strategy group is called `agent strategy group` -------------------------------------------------------------------------------- /Loon/Plus_EN/Global_Policy_EN.md: -------------------------------------------------------------------------------- 1 | # Global Strategy 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) When the global proxy is selected for the offloading mode, all access requests initiated by users use proxy nodes, because Loon does not have a default proxy policy group ( Similar to the `Proxy` strategy group in Quantumult X), the user must choose the proxy strategy correctly 4 | 5 | ## One, select the proxy strategy in the `global strategy` 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open `Loon` and click `Global Strategy` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_5.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Select` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_6.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `𝑷𝒓𝒐𝒙𝒚` (this name is not necessarily, please continue to browse the explanation below) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_7.jpg) 18 | 19 | ## Two, how to choose the proxy strategy correctly 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Every strategy traced back to the top level must have a diversion in action, understand through the following four pictures 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The first picture: `International Media` and `International Websites` need proxy nodes to be able to access, these two rules are selected The parent strategy is called `𝑷𝒓𝒐𝒙𝒚` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_1.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The second picture: See the parent strategy group `𝑷𝒓𝒐𝒙𝒚` in the strategy group. The selected child strategy group is named `Manual Choose` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_2.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The third picture: Under the sub-strategy group `Manual selection`, you can see the name `[tunnel]香港01 # GZCM` proxy node 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_3.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fourth picture: When a user visits `www.google.com`, use the `International Website` rule, which is used `Proxy` parent policy group, the parent policy group uses the `manual selection` child policy group, and the child policy group uses `[tunnel] Hong Kong 01 #GZCM` Proxy node 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Global_Policy_4.jpg) 38 | 39 | # Say a few more words 40 | 41 | - For the relationship between `parent strategy group` and `child strategy group`, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/TOP_Policy_EN.md) to jump to details -------------------------------------------------------------------------------- /Loon/Plus_EN/JaveScript_3_EN.md: -------------------------------------------------------------------------------- 1 | # Advanced 2 | 3 | JaveScript API example 4 | 5 | 6 | ### First、 7 | 8 | ``` 9 | /* 10 | * Loon script example 11 | */ 12 | //log 13 | console.log('This is a log'); 14 | 15 | //http get params 16 | var params = { 17 | url:"https://api.example.com/post", 18 | header:{ 19 | Host:"api.example.com", 20 | Content-Type: "application/json", 21 | }, 22 | body:"string" 23 | } 24 | 25 | $httpClient.get('https://example.com/index',function(error, response, data){ 26 | console.log(response); 27 | }); 28 | 29 | //http get 30 | $httpClient.get(params,function(error, response, data){ 31 | console.log(response); 32 | }); 33 | 34 | //http post 35 | $httpClient.post(params,function(error, response, data){ 36 | console.log(response); 37 | }); 38 | 39 | //notification 40 | $notification.post('title', 'subtitle', 'body') 41 | 42 | //persistentStore 43 | $persistentStore.write('data', 'key') 44 | $persistentStore.read('key') 45 | ``` 46 | 47 | ### Sconed、cron.js 48 | ``` 49 | /* 50 | */ 51 | 52 | console.log('Start JS'); 53 | $notification.post("title","subtitle","body"); 54 | $done(); 55 | ``` 56 | 57 | ### Third、netChanged.js 58 | ``` 59 | 60 | /* 61 | network-changed script-path=https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Script/netChanged.js 62 | */ 63 | 64 | //获取Loon的相关配置,返回为json格式 65 | var confStr = $config.getConfig() 66 | console.log(confStr) 67 | 68 | var conf = JSON.parse(confStr) 69 | if (conf.ssid == "your ssid name") { 70 | /* 71 | 设置全局运行模式 72 | 0:Global Direct 73 | 1:By Rule 74 | 2:Global Proxy 75 | */ 76 | $config.setRunningModel(0) 77 | //设置select策略组所对应的策略,子策略不存在时将保持原先的策略不变 78 | $config.setSelectPolicy("⛔ 广告拦截","DIRECT") 79 | $notification.post("Network changed","Change Running Model to Global Direct","⛔ 广告拦截 to DIRECT") 80 | } else { 81 | $config.setRunningModel(1) 82 | $config.setSelectPolicy("⛔ 广告拦截","REJECT") 83 | $notification.post("Network changed","Change Running Model to Filter by rule","⛔ 广告拦截 to REJECT") 84 | } 85 | 86 | //一次性同时设置多个策略组的策略 87 | $config.setSelectPolicy(["国外网站","广告拦截","谷歌服务"],["HK Node 1","REJECT","节点选择"]) 88 | 89 | //获取相关策略的子策略,json格式 90 | var subPolicys = $config.getSubPolicys("节点选项") 91 | console.log(subPolicys); 92 | ``` 93 | 94 | # Thanks 95 | 96 | - [Loon0x00](https://github.com/Loon0x00/LoonExampleConfig/tree/master/Script) -------------------------------------------------------------------------------- /Loon/Plus_EN/JaveScript_Modify_EN.md: -------------------------------------------------------------------------------- 1 | # Modify local script settings 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Learn how to modify the script settings in the `local script` interface through this tutorial 4 | 5 | ## Main situation analysis 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In fact, users only modify the alias (name) of the local script and the cron expression, and the rest can be modified according to the user Need to modify 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Modify the script settings in the `local script` interface. Through the combination, it can be concluded that there are six combinations. The operation is similar, this tutorial only describes two combinations 10 | 11 | - Modify the alias, regular expression and script location of the script type to http-request/http-response 12 | 13 | - Modify the alias, expression and script location of the script type to cron 14 | 15 | ## Modify the regular expression of the script type as http-request/http-response and the script location 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Local script` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the script that needs to be modified, **here to get the Jingdong Cookie script as an example** 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the right area of ​​the setting bar to be modified to modify the information in this column 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_2.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` after completing the settings 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_1_3.jpg) 32 | 33 | ## Modify the alias, expression and script location of the script type as cron 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Local script` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Local_Script.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the script that needs to be modified, **here is the Jingdong all-in-one sign-in script as an example** 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_1.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the right area of ​​the setting bar to be modified to modify the information in this column 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_2.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) After completing the settings, click `Save` 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JaveScript_Modify_2_3.jpg) 50 | 51 | # Say a few more words 52 | 53 | - Because there is too much information for modification here, this tutorial will not repeat it. Users can study the script sentence format by themselves to clarify what information should be modified. For users who are not clear about the script format, please click [here](https: //github.com/chiupam/tutorial/blob/master/Loon/Plus/JaveScript_Format.md) Jump to the `Getting Started-How to Understand the Essential Formats of Three Script Statements` tutorial -------------------------------------------------------------------------------- /Loon/Plus_EN/MITM_EN.md: -------------------------------------------------------------------------------- 1 | # MITM (Man in the Middle Attack) 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Loon uses a man-in-the-middle attack to decrypt the https request. Decrypt the corresponding https request and response according to the configured hostname (domain name) and trusted CA certificate. After decryption, it can be split with Rule and URL Rewrite. 4 | 5 | ## General use of MITM 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In general use, if the MITM function is not enabled, the user may not be able to execute some scripts correctly, such as obtaining The script of Jingdong Cookie. 8 | 9 | # Say a few more words 10 | 11 | - Portal 12 | 13 | - [CA Certificate](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/CA_EN.md) 14 | 15 | - [hostname](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/hostname_EN.md) -------------------------------------------------------------------------------- /Loon/Plus_EN/Matryoshka_EN.md: -------------------------------------------------------------------------------- 1 | # Nesting between strategy groups 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Regardless of the three agent software `Surge` `Quantumult X` `Loon`, they are all on the issue of the strategy group It’s the `Russian doll` to achieve layered packaging 4 | 5 | ## Correct nesting demonstration 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) This tutorial only allows users to nest between policy groups and policy groups, if you want Loon to use nodes in the sub-policy group , The parent policy group and the child policy group need to be nested correctly. The two correct examples are as follows: 8 | 9 | - Subscription Rules >>> Parent Policy Group >>> Child Policy Group >>> Subscription Node/Filter Subscription Node 10 | 11 | - Subscription rules >>> parent policy group >>> child policy group >>> secondary child policy group >>> subscription node/filter subscription node 12 | 13 | ## Step 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If you want the `manual selection` policy group to be nested under the `Proxy` policy group, that is, `Proxy` >>> `Manual selection`, if the user has not created a `Proxy` policy group, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/New_Proxy_Group_EN.md) to jump to `New Strategy Group` Tutorial 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Strategy Group` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `Proxy` 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_1.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In the nesting between policy groups, `policy type` only allows to select `select`, confirm the right of `policy type` Is `select`, otherwise please modify this option 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_2.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Add` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_3.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) From the list of `strategy groups`, click on the `manual selection` strategy group 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_4.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_5.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Check below whether the `manual selection` strategy group is displayed, and then click `save` to complete the nesting operation 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Matryoshka_6.jpg) 44 | 45 | # Say a few more words 46 | 47 | - In order to fully understand the steps of `Correct Nesting Demonstration`, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/TOP_Policy_EN.md) Learn` to distinguish between parent policy group and child policy group correctly Strategy Group` 48 | 49 | - The `policy type` in the nesting between policy groups only allows the selection of `select` -------------------------------------------------------------------------------- /Loon/Plus_EN/New_Proxy_Group_EN.md: -------------------------------------------------------------------------------- 1 | # Manually add a policy group 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Please note that this tutorial adds a child policy group, and will never be a parent policy group. The child policy group able to pass 4 | 5 | - The selection of `policy` in `subscription rules` becomes `parent policy group` 6 | 7 | - Become a `secondary policy group` by `add` in `strategy group` / actively add a `second child policy group` to become a `substrategy group` 8 | 9 | - Actively add `subscribe node` or `filter subscription node` to become an agent strategy group 10 | 11 | ## Enter `Strategy Group` to add a strategy group 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `Strategy Group` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area shown in the figure below (+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group_2.jpg) 20 | 21 | ## Please jump to the tutorial for follow-up operations 22 | 23 | - If the user wants to add a strategy group nested with other strategies into a `substrategy group`, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Matryoshka_EN.md) Jump to `Nesting between Child and Mother Strategy Groups` tutorial 24 | 25 | - If the user wants to add a `subscribe node` or `filter subscription node` to the added policy group to become a `agent policy group`, please click [here](https://github.com/chiupam/tutorial/blob/master/ Loon/Plus/Remote_Proxy_in_Proxy_Group.md) Jump to the `Nesting between nodes and policy groups` tutorial -------------------------------------------------------------------------------- /Loon/Plus_EN/Plugin_EN.md: -------------------------------------------------------------------------------- 1 | # Add plugin 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Add plug-in function. By reading the URL content, it can automatically identify the code snippets under the corresponding module, and insert a large number of them in the Loon configuration file in batch Code snippets with the highest execution priority 4 | 5 | ## Regarding URL requirements and content format requirements in adding plugins 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Regarding URL requirements, content format requirements, and a series of other questions in adding a plug-in, please click [here](https: //github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format.md) Jump to the `Add plug-in URL requirements and content format requirements` tutorial 8 | 9 | ## Add plugin 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` bar below, and click `Plugins` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Paste the correct URL link obtained by the user in the ʻURL` field. If the user is not sure how to obtain it, please click [here] (https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format_EN.md) Jump to the `Add plug-in URL requirements and content format requirements` tutorial and see the fourth step 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the plug-in in the `alias` field, and name it according to the user's personal preference 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Please note that if there are code snippets related to the `[Rule]` module in the plug-in, click on `PROXY` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) According to the `[Rule]` code, select the strategy the user needs 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_5.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_6.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown in the figure and update the `plugin` to complete the operation 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_7.jpg) 42 | 43 | # Thanks 44 | 45 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 46 | 47 | - [lxk0301](https://github.com/lxk0301/scripts/blob/master/jd_fruit.js) 48 | 49 | - [chavyleung](https://github.com/chavyleung/scripts/tree/master/wmmeituan) -------------------------------------------------------------------------------- /Loon/Plus_EN/Plugin_Format_EN.md: -------------------------------------------------------------------------------- 1 | # Add plugin URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) This tutorial allows users to learn about the format requirements and content requirements of the URL filled in in the `add plugin` 4 | 5 | ## 1. Requirements for URL format and content 6 | 7 | - Requirements for URL format 8 | 9 | - For files uploaded to the github library, the subscription address URL must start with `http://raw` 10 | 11 | - Requirements for URL content 12 | 13 | - Must have a Loon configuration file format, currently supports `[Rule]`, `[URL Rewrite]`, `[Script]`, `[MITM]` modules for the time being, and more modules will be expanded later 14 | 15 | ## 2. URL content demonstration 16 | 17 | ``` 18 | [Rule] 19 | DOMAIN,google.com,PROXY 20 | 21 | [URL Rewrite] 22 | ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 23 | 24 | [Script] 25 | http-request ^https?:\/\/(www.)?(example)\.com script-path=localscript.js,tag = requestScript,enable=true 26 | http-response ^https?:\/\/(www.)?(example)\.com script-path=https://example.com/loon.js,timeout=10,requires-body = true,tag = responseScript,enable=true 27 | cron "0 8 * * *" script-path=cron.js,tag = responseScript,enable=true 28 | 29 | [MITM] 30 | hostname = *.example.com,*.sample.com 31 | ``` 32 | 33 | ## Three. URL example file demonstration 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click directly on the address below to view the correct format of the URL content 36 | 37 | https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Plugin_Example.conf 38 | 39 | ## Fourth, the method to obtain the correct URL link 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the file that needs to subscribe to the script 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click Raw 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Long press the address bar and click `copy` 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Plugin_Raw_3.jpg) 52 | 53 | # Say a few more words 54 | 55 | - Although the `[Script]` module is supported, it is not recommended to write the script configuration code of the **check-in script** into the plug-in file, because adding scripts in this way does not allow users to modify the script execution time 56 | 57 | - It is recommended to write script configuration code similar to `Jingdong, Taobao historical price script` into the plug-in file, because such scripts will not have pop-up reminders, and there is no need to modify the execution time -------------------------------------------------------------------------------- /Loon/Plus_EN/Plugin_Recommend_EN.md: -------------------------------------------------------------------------------- 1 | # Plug-in extra chapter 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Due to the powerful plug-in function, there are many enthusiastic authors in the community to sort out various practical plug-ins. This tutorial is mainly for users Provide some useful plug-in URL addresses, in no particular order 4 | 5 | ## URL (directly long press the blue part and select copy) 6 | 7 | - Unlock the international version of Tiktok (because it may involve illegal intrusion of computer systems and criminal offenses, this tutorial is not taught here) 8 | 9 | - Unlock NetEase Cloud Music's copyright-free music (because it may involve illegal intrusion of computer systems and criminal offenses, this tutorial is not taught here) 10 | 11 | - [Advertising](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/Advertising.plugin) 12 | 13 | - [YouTube Ads](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/YouTubeAds.plugin) 14 | 15 | - [Zhihu Advertising](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/ZhiHu.plugin) 16 | 17 | - [Renren Video Ads](https://raw.githubusercontent.com/Tartarus2014/For-own-use/master/Loon/Plugin/rrsp.plugin) 18 | 19 | - [BoxJs For TestFlight](https://gitee.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.loon.tf.plugin) 20 | 21 | - [Taobao, Jingdong Historical Price Script-Intrinsic Version](https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Loon_Price.plugin) 22 | 23 | - [Taobao, Jingdong historical price script-pop-up version](https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Loon_Price_Lite.plugin) 24 | 25 | - [For more, please join the official Loon group and send "Find Plugins"](https://t.me/Loon0x00) 26 | 27 | # Thanks 28 | 29 | - [Tartarus2014](https://github.com/Tartarus2014/For-own-use/tree/master/Loon/Plugin) 30 | 31 | - [chavyleung](https://chavyleung.gitbook.io/boxjs/) -------------------------------------------------------------------------------- /Loon/Plus_EN/Plugin_Summary_EN.md: -------------------------------------------------------------------------------- 1 | # What is a plugin 2 | 3 | -Official analysis: 4 | 5 | - [TestFlight(192)](https://t.me/LoonNews/187): add Plugin, a plugin is a sub-configuration distinguished by function, the format is the same as the profile configuration file, and the configuration in the plugin takes precedence The highest level, currently supports `[URL Rewrite]`, `[Script]`, `[MITM]` modules for the time being. More modules will be expanded in the future. For related configuration formats, please refer to example configuration. For related plugin formats, please refer to: [format ](https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Plugin/Plugin_Example.plugin) 6 | 7 | - [TestFlight(193)](https://t.me/LoonNews/194): Support the `[Rule]` module, the strategy can be set to DIRECT, REJECT, PROXY, where PROXY is the strategy manually mapped by the user in the app , Without following the policy after the rule, PROXY is used by default. For the related sample configuration, please refer to: [format](https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Plugin/Plugin_Example2.plugin) 8 | 9 | 10 | - Popular understanding: The plug-in can be understood as a disabled version of the configuration file, by reading the URL content, the code snippets under the corresponding module are automatically recognized, and a large number of code snippets are inserted into the Loon configuration file in batches, and the execution priority is the highest 11 | 12 | ## Regarding URL requirements and content format requirements in adding plugins 13 | 14 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Regarding URL requirements, content format requirements, and a series of other questions in adding a plug-in, please click [here](https: //github.com/chiupam/tutorial/blob/master/Loon/Plus/Plugin_Format.md) Jump to the `Add plug-in URL requirements and content format requirements` tutorial 15 | 16 | # Say a few more words 17 | 18 | - Although the `[Script]` module is supported, it is not recommended to write the script configuration code of the **check-in script** into the plug-in file, because adding scripts in this way does not allow users to modify the script execution time 19 | 20 | - It is recommended to write script configuration code similar to `Jingdong, Taobao historical price script` into the plug-in file, because such scripts will not have pop-up reminders, and there is no need to modify the execution time 21 | 22 | # Reference 23 | 24 | - [TestFlight(192)](https://t.me/LoonNews/187) 25 | 26 | - [TestFlight(193)](https://t.me/LoonNews/194) -------------------------------------------------------------------------------- /Loon/Plus_EN/Regex_EN.md: -------------------------------------------------------------------------------- 1 | # Regular expression 2 | 3 | Filter subscription nodes using regular expressions 4 | 5 | ## Common expressions 6 | 7 | - `any value` .* 8 | 9 | - All nodes will match as long as they have names, this does not need to be explained 10 | 11 | - `Contain` .*(A) 12 | 13 | - If the node name contains ʻA`, such as `.*(IPLC)`, filter nodes with ʻIPLC` in the name 14 | 15 | - `or` (A)|(B) or ^.*(A|B) 16 | 17 | - Node names containing ʻA` or `B`, such as `(IPLC)|(IEPL)`, filter nodes with ʻIPLC` or ʻIEPL` in the name 18 | 19 | - `Without` ^((?!A).)*$ or ^(?!.\*?A) 20 | 21 | - The node name does not contain ʻA`, such as `^(?!.*?x1.5)`, and the node name does not contain `x1.5` 22 | 23 | ## General method of combination 24 | 25 | - `containing` and `containing` 26 | 27 | - (Hong Kong).\*(IPLC), to filter nodes whose name contains both `Hong Kong` and ʻIPLC` 28 | 29 | - `Contains` and `Contains` and `Contains` 30 | 31 | - (Hong Kong).\*(tunnel).\*(x1), to filter nodes whose names contain both `Hong Kong` and `tunnel` and `x1` 32 | 33 | - `With` and `Without` 34 | 35 | - ^(?!.*?x1.5).\*(Hong Kong), to filter nodes whose name does not contain `x1.5` but contains `Hong Kong` -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Filter_EN.md: -------------------------------------------------------------------------------- 1 | # Regular filter subscription node 2 | 3 | This tutorial needs to learn the basic writing of regular expressions. You can use regular expressions to filter the subscription nodes that users need. If you have not learned the regular expressions tutorial, please click [here]() to jump, and then do the following operations after learning 4 | 5 | ## One, subscribe node 6 | 7 | If there is no subscription node, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy_EN.md) to jump to the `subscription node` tutorial 8 | 9 | ## Two, filter subscription nodes 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Filter subscription nodes` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the `filter subscription node` in the `alias` field, and name it according to the user's personal preference, but never The same name as the `subscription node` is allowed, otherwise a loop error will occur 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `included subscription` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the node subscribed in the step of `Subscribe to Node` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the upper right corner `Storage` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Filter Type` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `NameRegex` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_8.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the `Required` field on the right side of `Regular expression` and enter the regular expression 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_9.jpg) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Check whether the node name appears below, if it does not appear, please double check whether the correct regular expression is entered, or `subscribe to the node `Is there a proxy node of this type in 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_10.jpg) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) After confirming that there are successfully filtered nodes, click `Save` 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_11.jpg) 54 | 55 | # Say a few more words 56 | 57 | - Fill in the name of the `filter subscription node` in the `alias` column, and name it according to the user's personal preference, but it is never allowed to be the same as the name of the `subscription node`, otherwise a loop error will occur 58 | 59 | - This tutorial only allows users to filter subscription nodes. To allow the filter subscription nodes to function as an agent, the operation of `Russian doll` is required -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Filter_NameKeyword_EN.md: -------------------------------------------------------------------------------- 1 | # Keywords filter subscription node 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Filter subscription nodes according to the node name through keywords. It is suitable for users who can’t write regular expressions. The disadvantage is that it cannot Exclude unnecessary agent nodes 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Although this is the `keyword filtering subscription node` tutorial, it is still highly recommended to use the regular filter type `NameRgex` Expression filtering to avoid the above situation 6 | 7 | ## One, subscribe node 8 | 9 | If there is no subscription node, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Proxy_EN.md) to jump to the `subscription node` tutorial 10 | 11 | ## Two, filter subscription nodes 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Filter subscription nodes` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the `filter subscription node` in the `alias` field, and name it according to the user's personal preference, but never The same name as the `subscription node` is allowed, otherwise a loop error will occur 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `included subscription` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the node subscribed in the step of `Subscribe to Node` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the upper right corner `Storage` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Filter Type` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `NameKeyword` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the `Required` field on the right side of `Keywords` and enter the keyword content 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Check whether the node name appears below, if it does not appear, please check whether there is a proxy node of this type in the `subscription node` 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_3.jpg) 52 | 53 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) After confirming that there are successfully filtered nodes, click `Save` 54 | 55 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NameKeyword_4.jpg) 56 | 57 | # Say a few more words 58 | 59 | - Fill in the name of the `filter subscription node` in the `alias` column, and name it according to the user's personal preference, but it is never allowed to be the same as the name of the `subscription node`, otherwise a loop error will occur 60 | 61 | - This tutorial only allows users to filter subscription nodes. To allow the filter subscription nodes to function as an agent, the operation of `Russian doll` is required -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Filter_NodeSelect_EN.md: -------------------------------------------------------------------------------- 1 | # Manually filter subscription nodes 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The user manually selects the proxy node that the user needs, but if the manually selected node name is changed, Will cause the node to not be displayed in the `agent policy group` 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Although this is the `manually filter nodes` tutorial, it is still highly recommended to use regular expressions with the filter type `NameRgex` Filter to avoid the above situation 6 | 7 | ## One, subscribe node 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If there is no subscribed node, please click [here](https://github.com/chiupam/tutorial/blob/master /Loon/Plus/Remote_Proxy.md) Jump to the `Subscription Node` tutorial 10 | 11 | ## Two, filter subscription nodes 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Filter subscription nodes` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_1.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_2.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the `filter subscription node` in the `alias` field, and name it according to the user's personal preference, but never The same name as the `subscription node` is allowed, otherwise a loop error will occur 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_3.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `included subscription` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_4.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the node subscribed in the step of `Subscribe to Node` 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_5.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the upper right corner `Storage` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_6.jpg) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Filter Type` 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_7.jpg) 40 | 41 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `NameSelect` 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_1.jpg) 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Manually select the required proxy node below. When the proxy node is selected, a blue `√` will appear on the right side of the proxy node, That is to select the agent node 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_2.jpg) 48 | 49 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) After manually selecting the proxy node, click `Save` to complete the operation of `Manually filter subscription nodes` 50 | 51 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Filter_NodeSelect_3.jpg) 52 | 53 | # Say a few more words 54 | 55 | - Fill in the name of the `filter subscription node` in the `alias` column, and name it according to the user's personal preference, but it is never allowed to be the same as the name of the `subscription node`, otherwise a loop error will occur 56 | 57 | - This tutorial only allows users to filter subscription nodes. To allow the filter subscription nodes to function as an agent, the operation of `Russian doll` is required -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Proxy_EN.md: -------------------------------------------------------------------------------- 1 | # Subscription node 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The subscription node is a collection of many nodes. It is a collection of nodes configured at the remote end. Loon downloads it through the URL and parses it into A list of nodes 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The popular interpretation is that the user subscribes to Loon with the subscription address provided by the server provider 6 | 7 | ## Steps 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Subscribe Node` 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_1.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area shown in the upper right corner (+) 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_2.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the subscription address provided by the server provider in the URL field 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_3.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the server provider in the `alias` field and name it according to the user's preference, but you cannot filter subscriptions with ` Node` or `policy group` has the same name 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_4.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Proxy_5.jpg) 28 | 29 | # Say a few more words 30 | 31 | - Important reminder: Fill in the name of the server provider in the `Alias` column and cannot be the same as the name of `Filter subscription node` or `Policy group`! ! ! 32 | 33 | - This method of subscribing to nodes generally adds more nodes. It is recommended to use the following function of `filter subscription nodes` to filter the required nodes -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Script_EN.md: -------------------------------------------------------------------------------- 1 | # Subscription script 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The subscription script function automatically recognizes script statements and domain names by reading the URL content, and adds scripts in Loon in batches 4 | 5 | ## About the URL requirements and content format requirements in the subscription script 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Regarding the URL requirements, content format requirements, and a series of other questions in the subscription script, please click [here](https: //github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Script_Format.md) Jump to the `URL requirements and content format requirements in the subscription script` tutorial 8 | 9 | ## Subscription script 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Subscribe script` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Paste the correct URL link obtained by the user in the ʻURL` field. If the user is not sure how to obtain it, please click [here] (https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Script_Format_EN.md) Jump to the `URL requirements and content format requirements in the subscription script` tutorial and see the fourth step 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Fill in the name of the subscription script in the `alias` column, and name it according to the user's personal preference 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click the area as shown in the figure, update the `subscribe script` to complete the operation 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_5.jpg) 34 | 35 | # Say a few more words 36 | 37 | - If there is an error in the script statement in the URL content, Loon will not read this statement, but skip it directly 38 | 39 | - Personally think that subscribing to only one script in the subscription script will seem a bit tossing oneself 40 | 41 | - For example: [Wrong way to subscribe script](https://t.me/Loon0x00/350684) 42 | 43 | # Thanks 44 | 45 | - [NobyDa](https://github.com/NobyDa/Script/blob/master/JD-DailyBonus/JD_DailyBonus.js) 46 | 47 | - [lxk0301](https://github.com/lxk0301/scripts/blob/master/jd_fruit.js) 48 | 49 | - [chavyleung](https://github.com/chavyleung/scripts/tree/master/wmmeituan) -------------------------------------------------------------------------------- /Loon/Plus_EN/Remote_Script_Format_EN.md: -------------------------------------------------------------------------------- 1 | # Subscription script URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) This tutorial allows users to learn about the format requirements and content requirements of the URL filled in in the `subscription script` 4 | 5 | ## 1. Requirements for URL format and content 6 | 7 | - Requirements for URL format 8 | 9 | - For files uploaded to the github library, the subscription address URL must start with `http://raw` 10 | 11 | - Requirements for URL content 12 | 13 | - Must contain one or more script statements 14 | 15 | - You can write statements with `hostname =` 16 | 17 | ## 2. URL content demonstration 18 | 19 | ``` 20 | http-request ^https?:\/\/(www.)?(example)\.com script-path=localscript.js,tag = requestScript,enable=true 21 | http-response ^https?:\/\/(www.)?(example)\.com script-path=https://example.com/loon.js,timeout=10,requires-body = true,tag = responseScript,enable=true 22 | cron "0 8 * * *" script-path=cron.js,tag = responseScript,enable=true 23 | 24 | hostname = example1.com,example2.com 25 | ``` 26 | 27 | ## Three. URL example file demonstration 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click directly on the address below to view the correct format of the URL content 30 | 31 | https://raw.githubusercontent.com/chiupam/Proxy/master/Loon/Remote_Script_Example.conf 32 | 33 | ## Fourth, the method to obtain the correct URL link 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the file that needs to subscribe to the script 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_1.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click Raw 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_2.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Long press the address bar and click `copy` 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Remote_Script_Raw_3.jpg) -------------------------------------------------------------------------------- /Loon/Plus_EN/Rewrite_EN.md: -------------------------------------------------------------------------------- 1 | # Copy 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) When receiving an http request, Loon will use the requested url to find a matching url rewrite, and a URL Rewrite will match Replace or modify the url in the HTTP request, or replace the request response body. 4 | 5 | ## format requirement 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) A URL Rewrite is divided into three parts: regular expression, replacement content, rewrite type 8 | 9 | ### E.g 10 | 11 | ``` 12 | https?://(www.)?g.cn https://www.google.com 302 13 | ``` 14 | 15 | ## Support type 16 | 17 | - header 18 | 19 | - The matching host field in the request header will be replaced by the replacement content 20 | 21 | - reject 22 | 23 | - Directly reject the request 24 | 25 | - 302 26 | 27 | - Return 302 response 28 | 29 | - 307 30 | 31 | - Return 307 response 32 | 33 | # Reference 34 | 35 | - [LoonManual](https://github.com/Loon0x00/LoonManual/blob/master/README.md) -------------------------------------------------------------------------------- /Loon/Plus_EN/Rule_EN.md: -------------------------------------------------------------------------------- 1 | # Add rule 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Manually add a local rule through the UI. Note that this is a rule. If users need to add rules in batches, please use `Subscribe Rules` function, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Remote_Rule_EN.md) to jump to the `Subscription Rules` tutorial 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If users still don’t know what a rule is, what is the format of the rule, and can’t understand the format of the rule, please click [here] (https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Rule_Summary_EN.md) Jump to the `What is a rule` tutorial 6 | 7 | ## Steps 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) to add a local match type of `DOMAIN-KEYWORD`, strategy of `DIRECT`, and matching content of `baidu` rule 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` bar below, and click `Single Rule` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area as shown (+) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_1.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Type` 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_2.jpg) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `DOMAIN-KEYWORD` 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_3.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on `Strategy` 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_4.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) select `DIRECT` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_5.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on ʻIP/Url/Regex` and fill in `baidu` 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_6.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Make sure that the word `DOMAIN-KEYWORD` appears in the `Type` column, and then click `Save` 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Rule_7.jpg) 42 | 43 | # Say a few more words 44 | 45 | - There are known minor issues. When the matching type of the rule added by the user is `DOMAIN`, there is no need to click `Type` and select `DOMAIN`, otherwise there will be a situation where `Match Type` is not selected after selecting `DOMAIN` -------------------------------------------------------------------------------- /Loon/Plus_EN/Rule_Recommend_EN.md: -------------------------------------------------------------------------------- 1 | # Rules Extra 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) This tutorial mainly provides users with the rule base of two community leaders 4 | 5 | ## URL 6 | 7 | - lhie1: https://github.com/lhie1/Rules/tree/master/Surge/Surge%203 8 | 9 | - DivineEngine: https://github.com/DivineEngine/Profiles/tree/master/Surge/Ruleset 10 | 11 | - blackmatrix7: https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Loon 12 | 13 | - [For more, please join the Loon official group and send "Find Rules"](https://t.me/Loon0x00) 14 | 15 | ## Subscription steps 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Please refer to [Subscription Rules](https://github.com/chiupam/tutorial/blob/master/Loon/Plus /Remote_Rule.md) Tutorial 18 | 19 | # Thanks 20 | 21 | - [lhie1](https://github.com/lhie1) 22 | 23 | - [DivineEngines](https://github.com/DivineEngine) 24 | 25 | - [blackmatrix7](https://github.com/blackmatrix7) -------------------------------------------------------------------------------- /Loon/Plus_EN/Rule_Summary_EN.md: -------------------------------------------------------------------------------- 1 | # What is the rule 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) rule determines how to match by matching type when a request comes in, and how to choose the corresponding strategy 4 | 5 | ## Why proxy software needs to set rules 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Because when using proxy software, the user does not need to go through the proxy node to access the website inside the firewall, and when the user tries to access outside the firewall When you need to go through a proxy node to access 8 | 9 | - For example, users in Mainland China who directly connect to `www.baidu.com` will succeed, but will fail if they directly connect to `www.google.com`, but after setting the rules, using proxy nodes to access `www.google.com` will succeed 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In the `auto-distribution` mode, in order for Loon to use proxy nodes on demand, rules must be set for Loon 12 | 13 | ## Rule composition 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The rule is divided into three parts, namely: match type, match content, and strategy name 16 | 17 | - Such as: `DOMAIN-SUFFIX,twimg.com,PROXY` 18 | 19 | ## Match type 20 | 21 | Match name|match type|description 22 | -|-|- 23 | Based on domain name suffix|DOMAIN-SUFFIX|None 24 | Complete match based on domain name|DOMAIN|None 25 | Based on domain name keywords|DOMAIN-KEYWORD|None 26 | Matching based on the user agent string |USER-AGENT| according to the user-agent value of Http, supports wildcard matching with \*,? 27 | Based on URL Regular|URL-REGEX|None 28 | Based on the request IP range|IP-CIDR| is usually used for LAN matching 29 | Based on IP as the country code|GEOIP|CN中国 30 | Bottom matching|FINAL|If there is no matching rule, the default matching is used 31 | 32 | ## GeoiP 33 | 34 | The IP-based location information comes from GeoLite2 Country. The GeoLiteZ database is an IP-based geographic location information database created by MaxMind. Available from www.maxmind.com. 35 | 36 | ## Examples demonstrate the role of understanding rules 37 | 38 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) The user in the following figure initiates an access request to `www.google.com` 39 | 40 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Ruld_Example.jpg) 41 | 42 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In the `Strategy` column, `Proxy` represents the strategy and `[tunnel]香港01#GZCM` represents the proxy node 43 | 44 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In the `rule` column, `DOMAIN-KEYWORD` represents the match type, `google` represents the match content, and `Proxy` represents Strategy name 45 | 46 | It means that the user initiates an access request to `www.google.com`, and the matching type is `DOMAIN-KEYWORD` domain name keyword matching, the matching content is `google`, and the policy named `Proxy` is used. The lowest proxy node is `[tunnel]香港01#GZCM` 47 | 48 | # Say a few more words 49 | 50 | - Bottom matching, FINAL rule, please click [here](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/Final_EN.md) to jump to the `Final rule` tutorial 51 | 52 | # Reference 53 | 54 | - [Loon Incomplete Tutorial-Rules-Rule](https://www.notion.so/2-967c1a07462c43ab88906162bec475a4) -------------------------------------------------------------------------------- /Loon/Plus_EN/TOP_Policy_EN.md: -------------------------------------------------------------------------------- 1 | # Correctly distinguish between parent policy group and child policy group 2 | 3 | Correctly identifying the `mother strategy group` will help a lot to understand the logic of the `Russian doll` 4 | 5 | ## Method 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In fact, the `parent policy group` is very easy to identify, open Loon, click the `configuration` column below, and click `subscription rules` 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_1.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) View the name of each subscription rule in blue font at the bottom left corner, except for the names of `DIRECT` and `REJECT`, The strategy group with the remaining name is `parent strategy group` 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_2.jpg) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon, click on the `Configuration` column below, and click on the `Strategy Group` 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Proxy_Group.jpg) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) View the parent strategy group named `𝐏𝐫𝐨𝐱𝐲`, you can see `𝐏𝐫𝐨𝐱𝐲` under the parent strategy group `Manual selection `, `preferred low latency`, `health detection` three sub-strategy groups 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/TOP_Policy_3.jpg) 22 | 23 | # Say a few more words 24 | 25 | - Except for `DIRECT` and `REJECT`, the reason is: Loon has built-in `DIRECT` and `REJECT` strategy groups, so it is impossible to have a strategy named `DIRECT` or `REJECT` in the `Strategy Group` panel group 26 | 27 | - A strategy group named `DIRECT` or `REJECT` with a special font can appear, for example a strategy group named `𝐃𝐈𝐑𝐄𝐂𝐓` 28 | 29 | - `Subscription rules` can only select a strategy group as a `parent strategy group`, not a `child strategy group`, but the `parent strategy group` is nested in other `parent strategy groups` to become a `child strategy group' `Outside the case -------------------------------------------------------------------------------- /Loon/Plus_EN/URL_Download_EN.md: -------------------------------------------------------------------------------- 1 | # Download from URL 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Users can use the `Download from URL` UI button to download a complete set of configuration files 4 | 5 | ## Get the raw link of the configuration file 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click Raw 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_1.jpg) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Long press the address bar to copy the link 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_2.jpg) 14 | 15 | ## Download configuration file from URL 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the configuration bar below 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_3.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Download from URL` 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_4.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Add` 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_5.jpg) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Paste the link 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_6.jpg) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `OK` 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/URL_Download_7.jpg) -------------------------------------------------------------------------------- /Loon/Plus_EN/URL_Schemes_EN.md: -------------------------------------------------------------------------------- 1 | # URLSchemes 2 | 3 | Loon supports URL Schemes, which can be combined with other workflows 4 | 5 | ## URL 6 | 7 | ``` 8 | Turn Loon on or off 9 | 10 | loon://switch 11 | 12 | Import configuration 13 | 14 | loon://import 15 | 16 | Open Loon configuration file 17 | 18 | loon://editconfig 19 | 20 | Open recent request 21 | 22 | loon://requestLists 23 | 24 | Open log 25 | 26 | loon://LogLists 27 | ``` 28 | 29 | ## Examples 30 | 31 | If users want to import the configuration, they can use loon://import?sub=url (URL is the string after Urlencode) 32 | 33 | loon://import?sub=https%3A%2F%2Floon.now.sh%2Flazy-config%2Fdefault -------------------------------------------------------------------------------- /Loon/Plus_EN/cron_EN.md: -------------------------------------------------------------------------------- 1 | # cron expression 2 | 3 | By modifying the cron expression, execute the script regularly 4 | 5 | ## Learn the basic writing of cron expressions 6 | 7 | 1, cron 6-digit expression 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/cron_6.png) 10 | 11 | - From left to right 12 | 13 | - The first digit represents `seconds`, only numbers between `0-59` are allowed 14 | 15 | - The second digit represents `minutes`, only numbers between `0-59` are allowed, and `60` is not allowed 16 | 17 | - The third digit represents `hour`, only numbers between `0-23` are allowed, and `24` is not allowed at 12 o'clock in the morning 18 | 19 | - The fourth digit represents `Day`, only numbers between `1-31` are allowed 20 | 21 | - The fifth digit represents `month`, only numbers between `1-12` are allowed 22 | 23 | - The sixth digit represents `week`, only numbers between `0-7` are allowed, `0` and `7` both represent Sunday 24 | 25 | 2. Cron 5-digit expression 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/cron_5.png) 28 | 29 | - From left to right 30 | 31 | - The first digit represents `minutes`, only numbers between `0-59` are allowed, and `60` is not allowed 32 | 33 | - The second digit stands for `hour`, only numbers between `0-23` are allowed, and `24` is not allowed at 12 o'clock in the morning 34 | 35 | - The third digit represents `Day`, only numbers between `1-31` are allowed 36 | 37 | - The fourth digit represents `month`, only numbers between `1-12` are allowed 38 | 39 | - The fifth digit represents `week`, only numbers between `0-7` are allowed, `0` and `7` both represent Sunday 40 | 41 | 3. Special characters 42 | 43 | - `,` stands for `and `, such as `0 0,12,18 * * *` means `execute once every day at 0 o'clock, 12 o'clock, and 18 o'clock) 44 | 45 | - `*` stands for `any value`, such as `* * * * *` stands for `execute every minute` 46 | 47 | - `/` stands for `every`, such as `10-20/5 * * * *` stands for the 10th-20th minute of every hour, which is executed every 5 minutes, namely the 10th minute, 15th minute, and 20th minute Minutes` 48 | 49 | - Special case: you can omit `/1` when you want to express that it will be executed every 1 minute 50 | 51 | 4. Error demonstration 52 | 53 | - `60 * * * * *` Ideal: Execute once every 60th second of every minute. Actual: Unable to execute. Reason: `60` is not allowed in the `second` bit. Correct expression: `0 * * * * *` 54 | 55 | - `* 12-18 * * *` Ideal: It will be executed once every day from 12:18 to 0:00. Actual: It will be executed every 1 minute from 12 am to 18 am every day. Reason: The first place is `*`. Correct expression: `0 12-18 * * *` 56 | 57 | - `* 12-18 * * *` Reasons for listing: classic demonstration by group friends, collective blindness series 58 | 59 | - `0 18-12 * * *` Ideal: It will be executed once every day from 18:00 to 12:00 the next day at the 0 minute. Actual: Unable to execute. Reason: The time scale cannot be crossed. Correct expression: `0 18-23,0-12 * * *` 60 | 61 | - `*/90 * * * * *` Ideal: it will be executed every 90 seconds. Actual: It is executed every 60 seconds. Reason: `Second` is only `60`, when it is greater than `60`, it will be calculated as `60`. Correct expression: currently unable to do it, recommend the curve to save the country 62 | 63 | # Reference 64 | 65 | - [crontab execution time calculation-online tool](https://tool.lu/crontab/) -------------------------------------------------------------------------------- /Loon/Plus_EN/hostname_EN.md: -------------------------------------------------------------------------------- 1 | # Domain name 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) In the code of adding the sign-in script in the `configuration file` of Loon, it is always necessary to add a URL in `hostnamt = ` Later, this URL is actually the domain name 4 | 5 | ## Icon 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) As shown in the figure below, the URL in the area is the domain name 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/JD-DailyBonus_hostname.jpg) 10 | 11 | ## Write the URL directly after the `hostname = `in the Loon `configuration file` 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` bar below, and click `Text Edit` 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/Configuration_UI.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Find the `hostname = `under `[MITM]` 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_1.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Write/paste the domain name/URL to the back of `hostname = `, **use a comma between the two domain names` , `Separated** 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_2.jpg) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `Save` to complete the operation 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_1_3.jpg) 28 | 29 | ## Add domain name in Loon `domain name` UI 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Open Loon and click the `Configuration` column below, and click `Domain name` 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_1.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click on the area shown in the upper right corner (+) 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_2.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Write/paste the domain name/URL into the area shown in the figure below 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_3.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Click `OK` to complete the operation 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/Plus/hostname_2_4.jpg) -------------------------------------------------------------------------------- /Loon/README.md: -------------------------------------------------------------------------------- 1 | ## Loon 教程 2 | 3 | - 此文件夹内存放 Loon 使用教程,请用户自行选择需要阅读的教程 4 | 5 | - 请仔细阅读免责声明,任何一经点击教程内文档的阅读者便视为您已接受此免责声明 6 | 7 | ### 免责声明 8 | 9 | - 此教程仅供正版购买 Loon 的用户学习如何使用此款软件,本人从未提供机场服务或教唆大陆用户擅自建立、使用非法定信道进行国际联网。 10 | 11 | - 用户通过此教程利用 Loon 使用非法信道进行国际联网并实施违反中国大陆及其地区法律法规的行为,对此类用户造成的行为后果,本人概不负责。 12 | 13 | - 此教程内只教授配置脚本功能的方法,绝对不会提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本,例如破解脚本等。 14 | 15 | - 请勿将脚本用于任何商业用途或者非法目的,对此类行为造成的任何后果,本人概不负责。 16 | 17 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的阅读者都应仔细阅读此声明。 18 | 19 | - 本人有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 20 | 21 | ## 文件夹说明 22 | 23 | - Frist文件夹,主要为第一次使用 Loon 的用户准备,适用于同时具备以下两个条件的用户: 24 | 25 | - 没有导入懒人配置 26 | 27 | - 体验首次使用代理功能 28 | 29 | - Plus文件夹,主要为进阶使用 Loon 的用户准备,适用于同时具有以下两个需要的用户: 30 | 31 | - 理解 Loon 的代理逻辑 32 | 33 | - 自定义配置 34 | 35 | ## 跳转至对应教程的使用说明 36 | 37 | - [Frist](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/README.md) 38 | 39 | - [Plus](https://github.com/chiupam/tutorial/blob/master/Loon/Plus/README.md) 40 | 41 | - [Plus_EN](https://github.com/chiupam/tutorial/blob/master/Loon/Plus_EN/README.md) 42 | -------------------------------------------------------------------------------- /Loon/README_EN.md: -------------------------------------------------------------------------------- 1 | ## Loon Tutorial 2 | 3 | - Loon tutorials are stored in this folder, please choose the tutorials you want to read 4 | 5 | - Please read the disclaimer carefully, any reader who clicks on the document in the tutorial will be deemed to have accepted this disclaimer 6 | 7 | ### Disclaimer 8 | 9 | - This tutorial is only for users who purchased the genuine Loon to learn how to use this software. I have never provided airport services or instigated mainland users to establish and use non-statutory channels for international networking without authorization. 10 | 11 | - Through this tutorial, users use Loon to use illegal channels for international networking and conduct behaviors that violate the laws and regulations of mainland China and its regions. I am not responsible for the consequences of such users. 12 | 13 | - This tutorial only teaches how to configure script functions, and will never provide any specific scripts that harm the legitimate interests of natural persons, legal persons, and unincorporated organizations, such as cracking scripts. 14 | 15 | - Please do not use the script for any commercial or illegal purposes. I am not responsible for any consequences caused by such actions. 16 | 17 | - Anyone who reads this tutorial in any way, directly or indirectly operates the steps in this tutorial, should read this statement carefully. 18 | 19 | - I have the right to modify and supplement this disclaimer. Any reader who clicks on the document in the tutorial will be deemed to have accepted this disclaimer. 20 | 21 | ## Folder description 22 | 23 | - The Frist folder is mainly prepared for users who use Loon for the first time, and is suitable for users who have the following two conditions at the same time: 24 | 25 | - No import lazy configuration 26 | 27 | - Experience the proxy function for the first time 28 | 29 | - The Plus folder is mainly prepared for users who use Loon advanced, and is suitable for users who have the following two needs at the same time: 30 | 31 | - Understand Loon's proxy logic 32 | 33 | - Custom configuration 34 | 35 | ## Jump to the instructions for the corresponding tutorial 36 | 37 | - [Frist](https://github.com/chiupam/tutorial/blob/master/Loon/Frist/README.md) 38 | 39 | - [Plus](https://github.com/chiupam/tutorial/blob/master/Loon/Plus_EN/README.md) 40 | 41 | - [Plus_EN](https://github.com/chiupam/tutorial/blob/master/Loon/Plus_EN/README_EN.md) -------------------------------------------------------------------------------- /Loon/REAMDE_IMPORTANT.md: -------------------------------------------------------------------------------- 1 | ### 免责声明 2 | 3 | - 此教程仅供正版购买 Loon 的用户学习如何使用 Loon 这款软件,chiupam 从未提供机场服务或教唆大陆用户擅自建立、使用非法定信道进行国际联网 4 | 5 | - 用户通过此教程利用 Loon 使用非法信道进行国际联网并实施违反国家或地区法律法规的行为,对此类用户造成的行为后果,chiupam 概不负责 6 | 7 | - 教程内只教授配置脚本功能的方法,不提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本 8 | 9 | - 请勿将脚本用于任何商业用途或者非法目的,对此造成的任何后果,chiupam 概不负责 10 | 11 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的阅读者都应仔细阅读此声明。chiupam 有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明 -------------------------------------------------------------------------------- /QuantumultX/BoxJS.md: -------------------------------------------------------------------------------- 1 | # BoxJS 的使用方法 2 | 3 | ## 一、QX 内的必要配置 4 | 5 | 先复制右侧这串地址 https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.quanx.conf 6 | 7 | ### 进入 QX 内 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/dianji.png) 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/rewrite_remote.png) 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/rewrite_remote_v.png) 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/changan.png) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/up.png) 18 | 19 | ### 开关一次 QX VPN 连接 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/START-STOP.png) 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/STOP-START.png) 24 | 25 | ## 二、 safari 内进入 BoxJS(进入失败请重新开关一次 VPN !!!) 26 | 27 | 先复制右侧这串地址 https://raw.githubusercontent.com/NobyDa/Script/master/NobyDa_BoxJs.json 28 | 29 | BoxJS 网址为: http://boxjs.com (注意前面是 http 不是 https) 30 | 31 | 首次进入如下图显示: 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_yingyong_1.png) 34 | 35 | BoxJS 页面介绍: 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_yingyong_2.png) 38 | 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_dingyue.png) 40 | 41 | ## 三、为了以后方便进入 BoxJS 可以这样操作 42 | 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_5.png) 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_6.png) 46 | 47 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/BoxJS_7.png) 48 | 49 | # 多说几句 50 | 51 | - 更多大佬的 BoxJS 订阅请点击 [这里](https://t.me/chavyscripts/66) 跳转至 Telegram 频道 Chavy Scripts 52 | 53 | - 更多 BoxJS 的新奇用法请点击 [这里](https://t.me/chavyscripts) 跳转至 Telegram 频道 Chavy Scripts 并关注 54 | 55 | - 以上只是粗略介绍 BoxJs 的使用,BoxJs 作者 chavyleung 已经写出了 BoxJs 官方介绍,请点击 [这里](https://chavyleung.gitbook.io/boxjs/) 跳转 56 | 57 | # 鸣谢 58 | 59 | - [chavyleung](https://github.com/chavyleung) 60 | 61 | -------------------------------------------------------------------------------- /QuantumultX/General.md: -------------------------------------------------------------------------------- 1 | # 对 [general] 配置资源解析器等 2 | 3 | ## 一、复制下面一行代码 4 | 5 | resource_parser_url=https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js 6 | 7 | server_check_url=http://www.gstatic.com/generate_204 8 | 9 | geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IP_API.js 10 | 11 | ### 个人理解 12 | 13 | - resource_parser_url 资源解析器 14 | 15 | - server_check_ur 俗称的 ping 延迟 (如果没有此段代码在节点列表下拉不会显示节点延迟) 16 | 17 | - 等号后的地址还可以变更为:http://www.instagram.com/204 或者 http://www.google.com/generate_204 (不推荐这个地址) 18 | 19 | - geo_location_checker 查看节点信息 (如果没有此段代码无法长按节点查看下级菜单) 20 | 21 | ## 二、进去 QX 进行配置 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/dianji.png) 24 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/bianji.png) 25 | 26 | 将上面的代码复制粘贴到下图所示位置 27 | 28 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/general.png) 29 | 30 | #### 注意:如果在上图中已经看到有 resource_parser_url=****** 这行代码,请直接覆盖而不是粘贴 (其他两个也同理) 31 | 32 | ### 正确配置如下图所示 33 | 34 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/general_right.png) 35 | 36 | ## 三、查看一下 37 | 38 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/resource_parser.png) 39 | 40 | #### 如果没有看到如上图所示的界面请开关一次 VPN 连接 41 | 42 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/START-STOP.png) 43 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/STOP-START.png) 44 | 45 | # 鸣谢解析器作者 46 | 47 | - Shawn [github库](https://github.com/KOP-XIAO) 48 | -------------------------------------------------------------------------------- /QuantumultX/JD_DailyBonus.md: -------------------------------------------------------------------------------- 1 | # 京东京豆签到脚本配置方法 2 | 3 | ### 请点击 [这里](https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js) 跳转到 safari 中 4 | 5 | 第1至3步复制粘贴 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_1.png) 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_2.png) 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_3.png) 12 | 13 | 第4至6步复制粘贴 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_4.png) 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_5.png) 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_6.png) 20 | 21 | 第7至9步复制粘贴(完成第9步后请不要关闭刚刚 safari 打开的页面) 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_7.png) 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_8.png) 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_9.png) 28 | 29 | ### 正确配置如下图: 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_10.png) 32 | 33 | ### 完成上述配置后 请回到 safari 中 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_11.png) 36 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_12.png) 37 | 38 | ### 出现下图时会有弹窗提醒 如果没有 可能是已经获取并存储在 QX 缓存中 cookie失效重新获取需要前往BoxJS中 点击 [这里]() 跳转到教程 39 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/jd_13.png) 40 | 41 | -------------------------------------------------------------------------------- /QuantumultX/Price.md: -------------------------------------------------------------------------------- 1 | # 淘宝&京东历史比价的使用方法 2 | 3 | ### 非常简单 按照图片下的操作步骤完成即可 记得第六步很重要!!! 4 | 5 | 第一步: 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 复制/拷贝右侧地址:https://raw.githubusercontent.com/chiupam/Proxy/master/QuantumultX/QX_Price.conf 8 | 9 | 第二步: 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_1.png) 12 | 13 | 第三步: 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_2.png) 16 | 17 | 第四步: 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_3.png) 20 | 21 | 第五步: 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_4.png) 24 | 25 | 第六步: 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_5.png) 28 | -------------------------------------------------------------------------------- /QuantumultX/README.md: -------------------------------------------------------------------------------- 1 | # 暂停更新 2 | 3 | 因本人不再使用 Quantumult X 这款软件, 停止更新此仓库 4 | 5 | ## Quantumult X 教程 6 | 7 | 最近暂时停止更新教程,望各位看官理解。 8 | 9 | ### 免责声明 10 | 11 | - 此教程仅供正版购买 Quantumult X 的用户学习如何使用此款软件,本人从未提供机场服务或教唆大陆用户擅自建立、使用非法定信道进行国际联网。 12 | 13 | - 用户通过此教程利用 Quantumult X 使用非法信道进行国际联网并实施违反中国大陆及其地区法律法规的行为,对此类用户造成的行为后果,本人概不负责。 14 | 15 | - 此教程内只教授配置脚本功能的方法,绝对不会提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本,例如破解脚本等。 16 | 17 | - 请勿将脚本用于任何商业用途或者非法目的,对此类行为造成的任何后果,本人概不负责。 18 | 19 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的阅读者都应仔细阅读此声明。 20 | 21 | - 本人有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 22 | 23 | ### 该文件夹内存放 Quantumult X 保姆教程,需要的点击对应文件查看即可 24 | 25 | - [首次使用 BoxJs 配置](https://github.com/chiupam/tutorial/blob/master/QuantumultX/BoxJS.md) 26 | 27 | - [配置资源解析器等](https://github.com/chiupam/tutorial/blob/master/QuantumultX/General.md) 28 | 29 | - [京东京豆签到脚本配置](https://github.com/chiupam/tutorial/blob/master/QuantumultX/JD_DailyBonus.md) 30 | 31 | - [京东&淘宝历史价格配置](https://github.com/chiupam/tutorial/blob/master/QuantumultX/Price.md) 32 | 33 | - [新键策略组的方法](https://github.com/chiupam/tutorial/blob/master/QuantumultX/Static.md) 34 | 35 | - [彩云天气脚本配置](https://github.com/chiupam/tutorial/tree/master/caiyun) 36 | 37 | - 教程编写中………… 38 | -------------------------------------------------------------------------------- /QuantumultX/Static.md: -------------------------------------------------------------------------------- 1 | # 如何在Quantumult X中添加一个策略组 2 | 3 | ### 第一种方法:在UI界面添加(需要懂一点正则表达式) 4 | 5 | 第一步: 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Static_1.1.png) 8 | 9 | 第二步: 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Static_1.2.png) 12 | 13 | 完成~~~ 14 | 15 | ### 第二种方法:在编辑内添加(需要懂[policy]格式) 16 | 17 | 格式如下: 18 | 19 | 1、static=策略组名称, 节点1, 节点2, direct, proxy, reject, img-url=图标链接 (direct、proxy、reject 可有可无) 20 | 21 | 2、static=策略组名称, resource-tag-regex=正则筛选订阅, server-tag-regex=正则筛选节点, img-url=图标链接 (必须有 resource-tag-regex= ,不可出现 direct、proxy、reject) 22 | 23 | 第一步: 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Rewrite_Remote_1.png) 26 | 27 | 第二步: 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Static_2.2.png) 30 | 31 | 第三步: 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/Static_2.3.png) 34 | 35 | 完成~~~ 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 教程文件夹 2 | 3 | - 此文件夹内存放一些教程。 4 | 5 | - 请仔细阅读以下**免责声明**,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 6 | 7 | ### 免责声明 8 | 9 | - 此教程仅供学习与交流,本人从未提供机场服务或教唆大陆用户擅自建立、使用非法定信道进行国际联网。 10 | 11 | - 浏览者通过学习此文件夹内教程,利用任何软件,使用非法信道进行国际联网并实施违反中国大陆及其地区法律法规的行为,对此类浏览者造成的行为后果,本人概不负责。 12 | 13 | - 此文件夹内一些目录中,只教授配置脚本功能的方法,绝对不会提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本,例如破解脚本等。 14 | 15 | - 如果任何单位或个人认为该文件夹内提供的脚本可能涉嫌侵犯其权利,则应及时通知并提供身份证明,所有权证明,本人将在收到认证文件后删除相关脚本及相关教程。 16 | 17 | - 浏览者必须在下载后的24小时内从计算机或手机中完全删除以上内容。 18 | 19 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的浏览者都应仔细阅读此声明。 20 | 21 | - 本人有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 22 | 23 | ### 脚本系列作者 (排名不分先后) 24 | 25 | - [nzw9314](https://github.com/nzw9314/QuantumultX/tree/master) (脚本合集,作者宣布于2020.08.09正式停止更新) 26 | 27 | - [Tartarus2014](https://github.com/Tartarus2014) (队长) 28 | 29 | - [NobyDa](https://github.com/NobyDa/Script/tree/master) (野比大神) 30 | 31 | - [chavyleung](https://github.com/chavyleung/scripts) (C神) 32 | 33 | - [Peng-YM](https://github.com/Peng-YM/QuanX) (Telegram 彭于晏) 34 | 35 | - [Sunert](https://github.com/Sunert/Scripts/) 36 | 37 | - [zZpiglet](https://github.com/zZPiglet/Task) (滴滴打车) 38 | 39 | ### 规则/分流系列作者 (排名不分先后) 40 | 41 | - [blackmatrix7](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule) (利用 python 将各路大神的规则合并、去重,实用度较高) 42 | 43 | - [eHpo1](https://github.com/eHpo1/Rules) 44 | 45 | - [Conners Hua](https://github.com/ConnersHua/Profiles/tree/master) 46 | 47 | 48 | -------------------------------------------------------------------------------- /caiyun/BoxJS.md: -------------------------------------------------------------------------------- 1 | # 进入 BoxJS 内设置 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 先复制右侧这串地址:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/box.js.json 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:打开 safari 并进入 [BoxJS](http://boxjs.com) 订阅界面,点击(+)添加订阅 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_boxjs_2.png) 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:将复制的地址粘贴到如图所示位置(此时添加按钮将变为绿色),点击添加 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_boxjs_3.png) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:返回应用界面,点击 Peng-YM 应用订阅打开下级菜单,点击彩云天气进入设置 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_boxjs_4.png) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:按图说明操作即可,填写完成后必须点击保存设置,否则不生效 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_boxjs_5.png) 20 | -------------------------------------------------------------------------------- /caiyun/Loon.md: -------------------------------------------------------------------------------- 1 | # 一、进入 Loon 进行 [Script] 与 [MITM] 相关配置 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 先在 safari 中打开右侧这串地址:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 再进行下面的操作 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 点击下方配置栏,下拉,点击文本编辑 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/bianji.jpg) 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 返回 safari 找到并复制/拷贝如图所示的代码片段 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/caiyun_Script.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴到如图所示的指定位置 [Script] 下面 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/Script.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 返回 safari 找到并复制/拷贝如图所示的代码片段 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/caiyun_hostname.jpg) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴到如图所示的执行位置 [mitm] 下的 hostname = 后面并点击右上角保存,注意:添加 hostname 的时候,每个地址之间用英文逗号加空格间隔 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/hostname.jpg) 24 | 25 | # 二、进入 Loon 本地脚本内进行相关配置 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Loon 点击下方配置栏,下拉,点击本地脚本 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/Local_Script.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将脚本类型由 http-request 更改为 cron 后,按下图配置,cron 表达式与脚本链接放在下面,自行复制粘贴 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Loon/unknow/caiyun_local_1.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) cron表达式:0 7-22/3 * * * (意思为 每天7-22点每3小时的第0分执行一次脚本,即7点、10点、13点,以此类推) 36 | 37 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 脚本链接:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 38 | -------------------------------------------------------------------------------- /caiyun/QuantumultX.md: -------------------------------------------------------------------------------- 1 | # 一、进入 QX 进行 [rewrite_local] 与 [mitm] 相关配置(此处并未包含 [task] 的配置): 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 先打开右侧这串地址:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 再进行下面的操作 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击小风车 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/dianji.png) 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下拉,点击编辑 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/bianji.png) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 返回 safari 找到并复制/拷贝如图所示的代码片段 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_rewrite.png) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴到如图所示的指定位置 [rewrite_local] 下面 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/rewrite_local.png) 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 返回 safari 找到并复制/拷贝如图所示的代码片段 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_hostname.png) 24 | 25 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴到如图所示的执行位置 [mitm] 下的 hostname = 后面并点击右上角保存,注意:添加 hostname 的时候,每个地址之间用英文逗号加空格间隔 26 | 27 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/hostname.png) 28 | 29 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 回到此界面,长按小风车 30 | 31 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/changan.png) 32 | 33 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击左侧灰色按钮,一键更新外部资源(购买未满30天用户无法使用此方法缓存脚本) 34 | 35 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/up.png) 36 | 37 | # 二、进入 QX 配置 [task] 即添加任务请求 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击小风车 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/dianji.png) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下拉找到构造请求并点击 44 | 45 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/task_ui.png) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击右上角 + 48 | 49 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_task_1.png) 50 | 51 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击高级 52 | 53 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_task_2.png) 54 | 55 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 如图所示按要求填写,远链放在下面,自行复制粘贴,完成后点击右上角确定 56 | 57 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_task_3.png) 58 | 59 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击全部更新 60 | 61 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_task_4.png) 62 | 63 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) cron表达式:0 7-22/3 * * * (意思为 每天7-22点每3小时的第0分执行一次脚本,即7点、10点、13点,以此类推) 64 | 65 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 脚本路径:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 66 | 67 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 图标:https://raw.githubusercontent.com/Orz-3/task/master/caiyun.png 来自 [Orz-3 契阔大佬](https://github.com/Orz-3/task) 68 | -------------------------------------------------------------------------------- /caiyun/README.md: -------------------------------------------------------------------------------- 1 | ## 彩云天气脚本的使用教程 2 | 3 | 教程包含彩云天气令牌的申请、腾讯地图令牌的申请、进入 BoxJs 内设置、三个软件(Quantumult X、Surge、Loon)的配置、获取定位等,点击下面的链接即可前往对应的教程。 4 | 5 | ### 免责声明 6 | 7 | - 此教程仅供学习如何使用此脚本。 8 | 9 | - 此文件夹内教程只教授配置脚本功能的方法,绝对不会提供任何具体的损害自然人、法人、非法人组织的合法利益的脚本。 10 | 11 | - 如果任何单位或个人认为该文件夹内提供的脚本可能涉嫌侵犯其权利,则应及时通知并提供身份证明,所有权证明,本人将在收到认证文件后删除相关脚本及相关教程。 12 | 13 | - 浏览者必须在下载后的24小时内从计算机或手机中完全删除以上内容。 14 | 15 | - 任何以任何方式阅读此教程的、直接或间接操作此教程内步骤的浏览者都应仔细阅读此声明。 16 | 17 | - 本人有权更改、补充此免责声明的权利,任何一经点击教程内文档的阅读者便视为您已接受此免责声明。 18 | 19 | ### 教程 20 | 21 | - 一、[申请彩云天气令牌](https://github.com/chiupam/tutorial/blob/master/caiyun/caiyun_api.md) 22 | 23 | - 二、[申请腾讯地图令牌](https://github.com/chiupam/tutorial/blob/master/caiyun/tencent_api.md) 24 | 25 | - 三、[进入 BoxJs 内设置](https://github.com/chiupam/tutorial/blob/master/caiyun/BoxJS.md) 26 | 27 | - 四、APP 内配置,请点击使用的 APP 28 | 29 | - [Quantumult X](https://github.com/chiupam/tutorial/blob/master/caiyun/QuantumultX.md) 30 | 31 | - [Surge](https://github.com/chiupam/tutorial/blob/master/caiyun/Surge.md) 32 | 33 | - [Loon](https://github.com/chiupam/tutorial/blob/master/caiyun/Loon.md) 34 | 35 | - 五、[获取定位](https://github.com/chiupam/tutorial/blob/master/caiyun/location.md) 36 | 37 | ### 鸣谢 38 | 39 | - Peng-YM 提供的脚本、BoxJs订阅 40 | 41 | - Orz-3 提供的图标 42 | 43 | - chavyleung 开发的 BoxJs 盒子 44 | -------------------------------------------------------------------------------- /caiyun/Surge.md: -------------------------------------------------------------------------------- 1 | # 一、进入 Surge 进行 [MITM] 相关配置(此处并未包含执行脚本的配置): 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 先在 safari 中打开右侧这串地址:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 再进行下面的操作 4 | 5 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Suege 并点击左上角所示区域 6 | 7 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/peizhi.jpg) 8 | 9 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击 在文本模式中编辑(如果没有则点击 创建当前配置副本 点击 好的 再进行操作) 10 | 11 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/bianji.jpg) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 返回 safari 找到并复制/拷贝如图所示的代码片段 14 | 15 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/caiyun_hostname.jpg) 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 粘贴到如图所示的指定位置 [MITM] 下的 hostname = 后面并点击右上角完成,注意:添加 hostname 的时候,每个地址之间用英文逗号加空格间隔 18 | 19 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/hostname.jpg) 20 | 21 | # 二、进入 Surge 脚本卡片添加 http-request 和 cron: 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 Surge 并点击脚本卡片中的脚本按钮 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/Script_local.jpg) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击新增 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/Script_new.jpg) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按图填写内容,URL 正则表达式和脚本URL 都在教程下面,请自行复制粘贴,填写完成后点击右上角完成按钮 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/caiyun_request.jpg) 34 | 35 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 点击新增 36 | 37 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/Script_new.jpg) 38 | 39 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 将脚本类型由 HTTP Request 更改为 Cron 后,再将脚本位置由 本地 更改为 远程,最后按图填写内容,cron 表达式和脚本 URL 都在教程下面,请自行复制粘贴,填写完成后点击右上角完成按钮 40 | 41 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/Surge/caiyun_cron.jpg) 42 | 43 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) URL 正则表达式:https:\/\/((weather-data\.apple)|(api.weather))\.com 44 | 45 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) cron表达式:0 7-22/3 * * * (意思为 每天7-22点每3小时的第0分执行一次脚本,即7点、10点、13点,以此类推) 46 | 47 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 脚本 URL:https://raw.githubusercontent.com/Peng-YM/QuanX/master/Tasks/caiyun.js 48 | -------------------------------------------------------------------------------- /caiyun/caiyun_api.md: -------------------------------------------------------------------------------- 1 | # 申请彩云天气令牌:(审核通过需要2-3天,留意注册邮箱) 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:先打开右侧这串地址:https://dashboard.caiyunapp.com/user/sign_up/ 并注册账号 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_1.png) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:前往注册邮箱内验证邮箱 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_2.png) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:返回登陆页面 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_3.png) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:如实填写账户信息,加快通过审核速度 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_4.png) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:建议填写方式,应用名填写各自使用的软件,这里使用 Quantumult X 为例 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_5.png) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:等待邮箱收到彩云天气的邮件通知 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_6.png) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:前往彩云科技开放平台,地址:https://dashboard.caiyunapp.com/user/sign_in/ 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_7.png) 30 | 31 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 下图:查看令牌详细内容 32 | 33 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_api_8.png) 34 | -------------------------------------------------------------------------------- /caiyun/location.md: -------------------------------------------------------------------------------- 1 | # 进入 iOS 自带的天气 app 自动获取当前定位(会有弹窗提醒) 2 | 3 | 前提是完成了对应软件内配置,如果没有完成,请点击对应软件跳转至教程 4 | 5 | - [Quantumult X](https://github.com/chiupam/tutorial/blob/master/caiyun/QuantumultX.md) 6 | 7 | - [Surge](https://github.com/chiupam/tutorial/blob/master/caiyun/Surge.md) 8 | 9 | - [Loon](https://github.com/chiupam/tutorial/blob/master/caiyun/Loon.md) 10 | 11 | # 正式开始(文字教程) 12 | 13 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开手机设置 > 隐私 > 定位服务 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开定位服务 16 | 17 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 选择天气,选择使用 APP 期间 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此时,打开系统天气应用,会提示获取位置成功,如果没有提示,请确认是否按前述的教程正确配置 20 | 21 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 请确保自己手机内的天气 APP 中只有一个城市的天气预报 22 | 23 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/caiyun_weatherapp.png) 24 | -------------------------------------------------------------------------------- /caiyun/tencent_api.md: -------------------------------------------------------------------------------- 1 | # 申请腾讯地图令牌:(正确填入申请信息可立马通过审核) 2 | 3 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 先打开右侧这串地址:https://lbs.qq.com/dev/console/user/info 注册并登陆账号 4 | 5 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_1.png) 6 | 7 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开控制台 8 | 9 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_2.png) 10 | 11 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 打开 key管理,点击创建新密钥 12 | 13 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_3.png) 14 | 15 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 应用名填写各自使用的软件,输入验证码并提交,这里使用 Quantumult X 为例 16 | 17 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_4.png) 18 | 19 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 往右滑页面(手指向左滑动屏幕)找到设置 20 | 21 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_5.png) 22 | 23 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 按图设置后点击保存 24 | 25 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_6.png) 26 | 27 | ![#f03c15](https://placehold.it/15/f03c15/000000?text=+) 此处为腾讯地图令牌,填入 BoxJS 内 28 | 29 | ![image](https://raw.githubusercontent.com/chiupam/tutorial-image/master/QuantumultX/tencent_api_7.png) 30 | -------------------------------------------------------------------------------- /other/boxjs.md: -------------------------------------------------------------------------------- 1 | # 代理软件与 BoxJs 之间的关系 2 | 3 | 很多人都会问一个问题,如果我在 BoxJs 里面配置好了脚本,可以在代理软件里面删除脚本的相关代码嘛? 4 | 5 | 换个角度思考这个问题,你花了多少钱购买了一个代理软件?你花了多少钱配置了一个 BoxJs ?是不是前者花了一笔钱,后者没花一分钱? 6 | 7 | 那为什么你可以一分钱不花配置好 BoxJs 来执行任务脚本,那你何必出一笔钱购买一个代理软件呢? 8 | 9 | 所以,答案显而易见,BoxJs 只是一个辅助工具,真正在执行任务脚本的是你花钱购买的代理软件,没有代理软件内的代码,你脚本根本不可能开始执行,更何谈执行成功呢? 10 | 11 | **回到问题上面,代理软件与 BoxJs 到底是什么关系?** 12 | 13 | 我比较喜欢用比喻的方式讲述一个我理解的东西,下面就开始我的比喻吧。 14 | 15 | 代理软件好比是一辆特斯拉,BoxJs 是这辆特斯拉内置的导航系统,跑脚本就是开着这辆特斯拉前往目的地,你要去目的地,就要配置好这辆车。 16 | 17 | 一般来说,代理软件跑脚本,你需要花钱买一个代理软件,然后在需要配置三个东西,一个是主机名(hostname),一个是任务命令(task),一个是复写语句(rewrite),偶尔需要一个 takon 或者 cookie 18 | 19 | 这好比如,你需要花钱买一套特斯拉的部件,然后为它安装好轮子(hostname),装上电池(task),还有安装好操纵杆(rewrite),然后正确的向车厂要了你的车钥匙(takon\cookie),这时候车子就能启动了。 20 | 21 | 这时候就要开始分情况了,第一个情况是:你的脚本原本设置好了的目的地是广州上下九,自动就开始跑了。 22 | 23 | 但是巧了,特斯拉有导航系统(BoxJs),可以按自己原本规划好的路线前往目的地。 24 | 25 | 可是更巧了,你不想特斯拉傻乎乎的走这条线路去目的地,你非要在中间插一杠,你要这辆特斯拉先从长沙去一趟北京看看故宫,再会武汉看看樱花,最后南下广州,逛逛上下九,你就在导航系统(BoxJs)里面一顿操作,这时候特斯拉就先去了北京,再去了武汉,最后才到达了你的目的地———广州。 26 | 27 | 另一个情况是:你的脚本原本就没设置好你要去哪里,这下就惨了。 28 | 29 | 你要进去导航系统(BoxJs)里面一顿操作,先让特斯拉去一趟北京故宫,再去一趟厦门鼓浪屿,然后去广州上下九,最后回到长沙吃了一顿正宗长沙臭豆腐,你就得设置好,不然特斯拉根本没法动。 30 | 31 | 还有第三种情况,你的目的地就是直行50米开外的你那1300平豪华别墅内的高贵专属停车位,你就可以压根不需要开导航了,往前开就是了,这要还开导航,不相当于是在脱裤子放屁吗? 32 | 33 | 第一种情况的脚本参考 Peng-YM 的 steam 价格监控脚本,第二种情况的脚本参考 chavyleung 的电信签到脚本。 34 | 35 | # 注意事项 36 | 37 | - 不是每个脚本都需要 takon 或者 cookie,要看这个脚本的使用说明里面说这个脚本到底怎么使用,毕竟有些车靠指纹解锁呀! 38 | 39 | - 不是每个脚本都必须配置 rewrite 的语句,设想你这辆车是个高科技,完全可以自动驾驶的车呢? 40 | --------------------------------------------------------------------------------