移除部分过时的代码
BIN
script/archive/10010/10010.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
102
script/archive/10010/README.md
Normal file
@ -0,0 +1,102 @@
|
||||
# 联通每日签到与抽奖
|
||||
|
||||
每日自动签到,显示已用流量、语音、剩余话费、可用积分,每日抽奖4次。
|
||||
|
||||
活动期间,**每日必得一张30-3的美团外卖优惠券**,送到和当前签到同手机号的美团账号上,活动到什么时候结束我也不知道。
|
||||
|
||||
目前还是有的,实打实的优惠,别错过。
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块,地址
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.sgmodule
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.qxrewrite, tag=联通_获取cookie, update-interval=86400, opt-parser=false, enabled=true
|
||||
|
||||
[task_local]
|
||||
20 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.js, tag=联通_签到与抽奖, enabled=true
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.lnscript, tag=联通_签到与抽奖, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
联通手机营业厅APP经常修改“天天抽奖”入口位置,比较稳定的方法是在联通手机营业厅中搜索“天天抽奖”,直接通过搜索结果进入。
|
||||
|
||||
## 签到效果图
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
|
||||
BIN
script/archive/10010/images/01.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
script/archive/10010/images/02.jpg
Normal file
|
After Width: | Height: | Size: 108 KiB |
1556
script/archive/10010/unicom_signin.js
Normal file
6
script/archive/10010/unicom_signin.lnscript
Normal file
@ -0,0 +1,6 @@
|
||||
# 中国联通每日签到与抽奖
|
||||
|
||||
http-request ^https?:\/\/m\.client\.10010\.com\/dailylottery\/static\/(integral|doubleball)\/firstpage requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js,tag=联通_获取cookie
|
||||
cron "20 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js,tag=联通_签到与抽奖
|
||||
|
||||
hostname = m.client.10010.com
|
||||
1
script/archive/10010/unicom_signin.min.js
vendored
Normal file
7
script/archive/10010/unicom_signin.qxrewrite
Normal file
@ -0,0 +1,7 @@
|
||||
# 中国联通App每日签到与抽奖
|
||||
# [task_local]
|
||||
# 20 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js, tag=联通_签到与抽奖, enabled=true
|
||||
|
||||
^https?:\/\/m\.client\.10010\.com\/dailylottery\/static\/(integral|doubleball)\/firstpage url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js
|
||||
|
||||
hostname = m.client.10010.com
|
||||
10
script/archive/10010/unicom_signin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=中国联通
|
||||
#!desc=中国联通每日自动签到与抽奖
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
联通_签到与抽奖 = type=cron,cronexp=20 0 * * *,timeout=120,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js,
|
||||
联通_获取cookie = type=http-request,pattern=^https?:\/\/m\.client\.10010\.com\/dailylottery\/static\/(integral|doubleball)\/firstpage,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.min.js,
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% m.client.10010.com
|
||||
72
script/archive/bilibili/README.md
Normal file
@ -0,0 +1,72 @@
|
||||
# 哔哩哔哩
|
||||
|
||||
## 去广告
|
||||
|
||||
### 介绍
|
||||
|
||||
哔哩哔哩APP去广告,没有广告的哔哩哔哩更值得干杯。
|
||||
|
||||
目前已实现:
|
||||
|
||||
1. 去除启动广告
|
||||
2. 去除“推荐”页面广告
|
||||
3. 去除“追番”页面广告
|
||||
4. 去除“直播”页面广告
|
||||
5. 精简“我的”页面功能
|
||||
6. 去除“动态”中的话题
|
||||
7. 去除“动态”中的最常访问
|
||||
8. 精简顶部标签页
|
||||
9. 去除底部会员购
|
||||
10. 增加一键Story模式
|
||||
|
||||
支持哔哩哔哩与哔哩哔哩概念版
|
||||
|
||||
### 特别说明
|
||||
|
||||
#### 去APP启动广告
|
||||
|
||||
目前几乎所有的整合型去广告规则都带有去除哔哩哔哩启动广告的规则。通过对类似`^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list`
|
||||
|
||||
正则复写的拦截来屏蔽启动广告。这在大部分情况下都是有效的,但是如果忘记打开VPN或其他原因导致拦截失败,启动广告缓存到APP中后,下次启动启动广告就会出现。此时再通过正则去拦截已无能为力,只能重装APP或等待广告过期。
|
||||
|
||||
在本项目的去广告策略中,采取的是对启动广告请求进行放行,同时通过脚本将广告生效时间设置到2030年以去除启动广告。这样做的好处是即使某次拦截失败,下次APP重新请求一次广告后,启动广告就会消失,不需要重装APP。
|
||||
|
||||
但这种策略会与几乎所有的整合型去广告规则产生冲突,因为在复写阶段请求就被拦截掉,后续的脚本没法进行处理。
|
||||
|
||||
所以,如果在使用过程中,出现APP启动广告反复出现,请尝试将分流和复写规则中所有关于哔哩哔哩的规则进行去除,仅保留本脚本的相关复写。
|
||||
|
||||
### 部署说明
|
||||
|
||||
#### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.sgmodule
|
||||
```
|
||||
|
||||
#### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.qxrewrite, tag=哔哩哔哩_去广告, update-interval=86400, opt-parser=false, enabled=true
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
[Plugin]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.lnplugin, tag=哔哩哔哩_去广告, enabled=true
|
||||
```
|
||||
|
||||
## 签到
|
||||
|
||||
等待抽空填坑
|
||||
|
||||
## 感谢
|
||||
|
||||
[@MisterGlasses](https://github.com/MisterGlasses) [@Mazeorz](https://github.com/Mazeorz)
|
||||
BIN
script/archive/bilibili/bilibili.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
script/archive/bilibili/bilibili_icon.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
234
script/archive/bilibili/bilibili_plus.js
Normal file
34
script/archive/bilibili/bilibili_plus.lnplugin
Normal file
@ -0,0 +1,34 @@
|
||||
# BiliBili去广告
|
||||
|
||||
[Rule]
|
||||
DOMAIN-SUFFIX,cm.bilibili.com,REJECT
|
||||
URL-REGEX,^https?:\/\/api\.bilibili\.com\/x\/v2\/dm\/ad,REJECT
|
||||
# 可能的一些推广(beta)
|
||||
URL-REGEX,^https?:\/\/api\.bilibili\.com\/pgc\/season\/app\/related\/recommend\?,REJECT
|
||||
# BiliBili漫画去广告
|
||||
URL-REGEX,^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.comic\/flash,REJECT
|
||||
|
||||
[Rewrite]
|
||||
# 去除搜索中的大家都在搜
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/search_svr\/v\d\/Search\/recommend_words - reject-dict
|
||||
# 去除动态中的话题
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/topic_svr\/v1\/topic_svr - reject-dict
|
||||
# 去除动态中的最常访问
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/mix_uplist - reject-dict
|
||||
# 可能的一些推广(beta)
|
||||
^https?:\/\/api\.bilibili\.com\/pgc\/season\/app\/related\/recommend\? - reject-dict
|
||||
# BiliBili漫画去广告
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/Flash - reject-dict
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/ListFlash - reject-dict
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/v2\/feed\/index requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_推荐去广告
|
||||
http-response ^https?:\/\/api\.bilibili\.com\/pgc\/page\/bangumi requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_追番去广告
|
||||
http-response ^https?:\/\/api\.live\.bilibili\.com\/xlive\/app-room\/v1\/index\/getInfoByRoom requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_直播去广告
|
||||
http-response ^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/dynamic_(history|new)\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_动态去广告
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_开屏去广告
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/resource\/show\/tab requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_标签页处理
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/v2\/account\/mine requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js,tag=BiliBili_我的页面处理
|
||||
|
||||
[MITM]
|
||||
hostname = app.bilibili.com,api.bilibili.com,api.live.bilibili.com,api.vc.bilibili.com
|
||||
25
script/archive/bilibili/bilibili_plus.qxrewrite
Normal file
@ -0,0 +1,25 @@
|
||||
# 去除动态中的话题
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/topic_svr\/v1\/topic_svr url reject-dict
|
||||
# 去除动态中的最常访问
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/mix_uplist url reject-dict
|
||||
# 可能的一些推广(beta)
|
||||
^https?:\/\/api\.bilibili\.com\/pgc\/season\/app\/related\/recommend\? url reject-dict
|
||||
# 推荐去广告
|
||||
^https?:\/\/app\.bilibili\.com\/x\/v2\/feed\/index url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 追番去广告
|
||||
^https?:\/\/api\.bilibili\.com\/pgc\/page\/bangumi url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 直播去广告
|
||||
^https?:\/\/api\.live\.bilibili\.com\/xlive\/app-room\/v1\/index\/getInfoByRoom url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 动态去广告
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/dynamic_(history|new)\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 开屏去广告
|
||||
^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 标签页处理
|
||||
^https?:\/\/app\.bilibili\.com\/x\/resource\/show\/tab url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 我的页面处理
|
||||
^https?:\/\/app\.bilibili\.com\/x\/v2\/account\/mine url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
# 漫画去广告
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/Flash url reject-dict
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/ListFlash url reject-dict
|
||||
|
||||
hostname = *.bilibili.com,api.live.bilibili.com,api.vc.bilibili.com
|
||||
36
script/archive/bilibili/bilibili_plus.sgmodule
Normal file
@ -0,0 +1,36 @@
|
||||
#!name=Bilibili
|
||||
#!desc=BiliBili去广告
|
||||
#!system=ios
|
||||
|
||||
[Rule]
|
||||
DOMAIN-SUFFIX,cm.bilibili.com,REJECT
|
||||
URL-REGEX,^https?:\/\/api\.bilibili\.com\/x\/v2\/dm\/ad,REJECT
|
||||
# 可能的一些推广(beta)
|
||||
URL-REGEX,^https?:\/\/api\.bilibili\.com\/pgc\/season\/app\/related\/recommend\?,REJECT
|
||||
# BiliBili漫画去广告
|
||||
URL-REGEX,^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.comic\/flash,REJECT
|
||||
|
||||
[URL Rewrite]
|
||||
# 去除搜索中的大家都在搜
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/search_svr\/v\d\/Search\/recommend_words - reject
|
||||
# 去除动态中的话题
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/topic_svr\/v1\/topic_svr - reject
|
||||
# 去除动态中的最常访问
|
||||
^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/mix_uplist - reject
|
||||
# 可能的一些推广(beta)
|
||||
^https?:\/\/api\.bilibili\.com\/pgc\/season\/app\/related\/recommend\? - reject
|
||||
# BiliBili漫画去广告
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/Flash - reject
|
||||
^https?:\/\/manga\.bilibili\.com\/twirp\/comic\.v\d\.Comic\/ListFlash - reject
|
||||
|
||||
[Script]
|
||||
BiliBili_推荐去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/v2\/feed\/index,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_追番去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.bilibili\.com\/pgc\/page\/bangumi,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_直播去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.live\.bilibili\.com\/xlive\/app-room\/v1\/index\/getInfoByRoom,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_动态去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.vc\.bilibili\.com\/dynamic_svr\/v1\/dynamic_svr\/dynamic_(history|new)\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_标签页处理 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/resource\/show\/tab,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
BiliBili_我的页面处理 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/v2\/account\/mine,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% app.bilibili.com,api.bilibili.com,api.live.bilibili.com,api.vc.bilibili.com
|
||||
103
script/archive/didachuxing/README.md
Normal file
@ -0,0 +1,103 @@
|
||||
# 嘀嗒出行
|
||||
|
||||
嘀嗒出行自动签到和自动拾取贝壳脚本。每日0点10分执行脚本,自动进行当日签到,并显示签到获取的贝壳数量。同时拾取所有贝壳广场中的所有贝壳。
|
||||
|
||||
2020.09.03:
|
||||
|
||||
贝壳已自动拾取,去除通过脚本拾取贝壳的内容。
|
||||
|
||||
2020.08.07:
|
||||
|
||||
目前贝壳似乎是自动拾取的,不需要再通过脚本定时获取,所以每天都会提示“没有发现待拾取的贝壳”,目前不影响使用,暂时不做调整,观察一段时间再说。
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.sgmodule
|
||||
|
||||
### Loon
|
||||
|
||||
使用远程脚本
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.lnscript, tag=嘀嗒出行_每日签到, enabled=true
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.qxrewrite, tag=嘀嗒出行_获取cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
10 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js, tag=嘀嗒出行_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 使用说明
|
||||
|
||||
打开嘀嗒出行App后,进入左侧菜单中的“贝壳广场”,正常情况下会自动获取Cookie。如果没有获取成功,请查阅Surge等第三方App的执行日志。
|
||||
|
||||
执行效果图,脚本更新时可能会进行微调。
|
||||
|
||||

|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
BIN
script/archive/didachuxing/didachuxing.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
290
script/archive/didachuxing/didachuxing_plus.js
Normal file
6
script/archive/didachuxing/didachuxing_plus.lnscript
Normal file
@ -0,0 +1,6 @@
|
||||
# 嘀嗒出行每日自动签到
|
||||
|
||||
http-request ^https?:\/\/www\.didapinche\.com\/hapis\/api\/t\/Jifen\/.*\?userCid=.* requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js,tag=嘀嗒出行_获取cookie
|
||||
cron "10 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js,timeout=10,tag=嘀嗒出行_每日签到
|
||||
|
||||
hostname = www.didapinche.com
|
||||
5
script/archive/didachuxing/didachuxing_plus.qxrewrite
Normal file
@ -0,0 +1,5 @@
|
||||
# 嘀嗒出行每日自动签到
|
||||
|
||||
^https?:\/\/www\.didapinche\.com\/hapis\/api\/t\/Jifen\/.*\?userCid=.* url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js
|
||||
|
||||
hostname = www.didapinche.com
|
||||
10
script/archive/didachuxing/didachuxing_plus.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=嘀嗒出行
|
||||
#!desc=嘀嗒出行每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
嘀嗒出行_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js,type=cron,cronexp=10 0 * * *
|
||||
嘀嗒出行_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didachuxing/didachuxing_plus.js,type=http-request,pattern=^https?:\/\/www\.didapinche\.com\/hapis\/api\/t\/Jifen\/.*\?userCid=.*
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% www.didapinche.com
|
||||
BIN
script/archive/didachuxing/images/didachuxing_checkin01.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
116
script/archive/didichuxing/README.md
Normal file
@ -0,0 +1,116 @@
|
||||
# 滴滴出行
|
||||
|
||||
滴滴出行每日签到与抽奖,目前已实现功能:
|
||||
|
||||
1. 福利金签到
|
||||
2. 积分签到
|
||||
3. 滴滴金融天天有奖签到
|
||||
4. 会员抽奖
|
||||
5. 瓜分福利金活动天降羊毛自动拾取
|
||||
6. 瓜分福利金活动自动薅羊毛
|
||||
|
||||
## 配置说明
|
||||
|
||||
为适配瓜分百万福利金的活动,将默认的模块和插件脚本执行时间调整到早上9点。
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
|
||||
### Loon
|
||||
|
||||
使用远程脚本配置
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.lnscript, tag=滴滴出行_每日签到, enabled=true
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.qxrewrite, tag=滴滴出行_获取Cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
00 9 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js, tag=滴滴出行_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
重新进入一次滴滴出行APP,即可获取Cookie。
|
||||
|
||||
## 获取lid
|
||||
|
||||
抽奖需要获取lid,获取路径为滴滴左上角-钱包-我的钱包-福利金。
|
||||
|
||||
## 获取ActivityId
|
||||
|
||||
天天有奖,首次使用需要手动签到一次获取ActivityId和ChannelId,不获取会尝试使用内置的ActivityId和ChannelId。
|
||||
|
||||
获取路径:滴滴出行 - 左侧菜单 - 钱包。
|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
|
||||
### 感谢
|
||||
|
||||
[@zZPiglet]( https://github.com/zZPiglet/Task/tree/master/DiDi)
|
||||
BIN
script/archive/didichuxing/didi.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
1110
script/archive/didichuxing/didi_checkin.js
Normal file
10
script/archive/didichuxing/didi_checkin.lnscript
Normal file
@ -0,0 +1,10 @@
|
||||
# 滴滴出行每日自动签到
|
||||
|
||||
http-request ^https?:\/\/api\.didialift\.com\/beatles\/userapi\/user\/user\/getuserinfo?.*city_id=(\d+).*token=([^&]*) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,tag=滴滴出行_获取token
|
||||
http-request ^https?:\/\/as\.xiaojukeji\.com\/ep\/as\/toggles\?.*location_cityid=(\d+).*&ticket=([^&]*) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,tag=滴滴出行_获取ticket
|
||||
http-request ^https?:\/\/bosp-api\.xiaojukeji\.com\/bosp-api\/lottery\/info?.*lid=([^&]*) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,tag=滴滴出行_获取LotteryId
|
||||
http-response ^https?:\/\/bosp-api\.xiaojukeji\.com\/wechat\/benefit\/public\/v2\/index requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,tag=滴滴出行_获取GroupId
|
||||
http-response ^https?:\/\/pay\.diditaxi\.com\.cn\/web_wallet\/v2\/wallet\/home requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,tag=滴滴金融_获取ActivityId与ChannelId
|
||||
cron "00 9 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,timeout=120,tag=滴滴出行_每日签到
|
||||
|
||||
hostname = api.didialift.com,bosp-api.xiaojukeji.com,as.xiaojukeji.com,pay.diditaxi.com.cn
|
||||
14
script/archive/didichuxing/didi_checkin.qxrewrite
Normal file
@ -0,0 +1,14 @@
|
||||
# 滴滴出行每日自动签到
|
||||
|
||||
# 获取Token
|
||||
^https?:\/\/api\.didialift\.com\/beatles\/userapi\/user\/user\/getuserinfo?.*city_id=(\d+).*&token=([^&]*) url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
# 获取Ticket(备用,无法获取Token时尝试)
|
||||
^https?:\/\/as\.xiaojukeji\.com\/ep\/as\/toggles\?.*location_cityid=(\d+).*&ticket=([^&]*) url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
# 获取LotteryId
|
||||
^https?:\/\/bosp-api\.xiaojukeji\.com\/bosp-api\/lottery\/info?.*lid=([^&]*) url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
# 获取ActivityId与ChannelId
|
||||
^https?:\/\/pay\.diditaxi\.com\.cn\/web_wallet\/v2\/wallet\/home url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
# 获取GroupId
|
||||
^https?:\/\/bosp-api\.xiaojukeji\.com\/wechat\/benefit\/public\/v2\/index url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
|
||||
hostname = api.didialift.com,bosp-api.xiaojukeji.com,as.xiaojukeji.com,*.diditaxi.com.cn
|
||||
15
script/archive/didichuxing/didi_checkin.sgmodule
Normal file
@ -0,0 +1,15 @@
|
||||
#!name=滴滴出行
|
||||
#!desc=滴滴出行每日自动签到与抽奖
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
滴滴出行_每日签到 = type=cron,timeout=120,cronexp=00 9 * * *,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js
|
||||
滴滴出行_获取Token = type=http-request,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,pattern=^https?:\/\/api\.didialift\.com\/beatles\/userapi\/user\/user\/getuserinfo?.*city_id=(\d+).*token=([^&]*)
|
||||
滴滴出行_获取Ticket = type=http-request,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,pattern=^https?:\/\/as\.xiaojukeji\.com\/ep\/as\/toggles\?.*location_cityid=(\d+).*&ticket=([^&]*)
|
||||
滴滴出行_获取LotteryId = type=http-request,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,pattern=^https?:\/\/bosp-api\.xiaojukeji\.com\/bosp-api\/lottery\/info?.*lid=([^&]*)
|
||||
滴滴金融_获取ActivityId与ChannelId = type=http-response,requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,pattern=^https?:\/\/pay\.diditaxi\.com\.cn\/web_wallet\/v2\/wallet\/home
|
||||
滴滴出行_获取GroupId = type=http-response,requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/obsolete/didichuxing/didi_checkin.js,pattern=^https?:\/\/bosp-api\.xiaojukeji\.com\/wechat\/benefit\/public\/v2\/index
|
||||
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% api.didialift.com,bosp-api.xiaojukeji.com,as.xiaojukeji.com,pay.diditaxi.com.cn
|
||||
72
script/archive/dingdong/README.md
Normal file
@ -0,0 +1,72 @@
|
||||
# 🧸叮咚买菜
|
||||
|
||||
叮咚买菜每日自动签到
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
安装模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.sgmodule
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
安装插件
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.lnplugin
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.qxrewrite, tag=叮咚买菜_获取Cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
20 10 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js, tag=叮咚买菜_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
叮咚买菜APP - 我的 - 右上角签到
|
||||
|
||||
## 多账户
|
||||
|
||||
目前无法在单台iPhone/iPad设备上实现多账户执行每日签到。
|
||||
|
||||
多账户更多的作用是在多设备的情况下,将Cookies和坐标同步至青龙面板,由青龙面板执行多账户作业。
|
||||
|
||||
## 脚本变量
|
||||
|
||||
根据下表配置magic.json文件的内容
|
||||
|
||||
| 名称 | 类型 | 说明 |
|
||||
| ----------------------------- | ---- | -------------------------------------- |
|
||||
| dingdongmaicai_checkin_cookie | Json | 多账户叮咚买菜Cookies |
|
||||
| dingdongmaicai_checkin_body | Json | 多账户叮咚买菜Body |
|
||||
| dingdongmaicai_sync_qinglong | Bool | 是否将获取的Cookie和Body同步至青龙面板 |
|
||||
|
||||
部分属性示例
|
||||
|
||||
```json
|
||||
{
|
||||
"dingdongmaicai_checkin_cookie": {
|
||||
"magic_session": true,
|
||||
"user_id1": "cookie_1",
|
||||
"user_id2": "cookie_2"
|
||||
},
|
||||
"dingdongmaicai_checkin_body":{
|
||||
"magic_session": true,
|
||||
"user_id1": "body_1",
|
||||
"user_id2": "body_2"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
BIN
script/archive/dingdong/dingdong.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
154
script/archive/dingdong/dingdong_checkin.js
Normal file
13
script/archive/dingdong/dingdong_checkin.lnplugin
Normal file
@ -0,0 +1,13 @@
|
||||
#!name= 叮咚买菜
|
||||
#!desc= 叮咚买菜每日自动签到
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/dingdong
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong.png
|
||||
|
||||
[Script]
|
||||
http-request ^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js,tag=叮咚买菜_获取cookie
|
||||
cron "20 9 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js,timeout=30,tag=叮咚买菜_每日签到
|
||||
|
||||
[MITM]
|
||||
hostname = maicai.api.ddxq.mobi
|
||||
5
script/archive/dingdong/dingdong_checkin.qxrewrite
Normal file
@ -0,0 +1,5 @@
|
||||
# 叮咚买菜每日自动签到
|
||||
|
||||
^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js
|
||||
|
||||
hostname = maicai.api.ddxq.mobi
|
||||
10
script/archive/dingdong/dingdong_checkin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=叮咚买菜
|
||||
#!desc=叮咚买菜每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
叮咚买菜_每日签到 = type=cron,cronexp=20 0 * * *,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js
|
||||
叮咚买菜_获取cookie = type=http-request,pattern=^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% maicai.api.ddxq.mobi
|
||||
111
script/archive/eleme/README.md
Normal file
@ -0,0 +1,111 @@
|
||||
# 🧸饿了么
|
||||
|
||||
饿了么每日自动领取会员任务及吃货豆功能。
|
||||
|
||||
领取会员任务,限饿了么会员使用,解决下单前忘记领取会员任务的问题。
|
||||
|
||||
自动领取吃货豆,非会员可能能用,我没有非会员账号,无法验证,有兴趣可以自己试试。
|
||||
|
||||
## 特别说明
|
||||
|
||||
### 获取数据
|
||||
|
||||
需要同时获取到Cookie与坐标,脚本才能正常执行,获取方法见后。
|
||||
|
||||
### 多选一任务
|
||||
|
||||
默认会领取含有“美食外卖”关键字的任务,可以在BoxJS中自定义关键字。
|
||||
|
||||
脚本会依次尝试领取所有匹配关键字的任务。但因为多选一的关系,通常只会有第一个任务能成功领取。
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.sgmodule
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.lnplugin
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.qxrewrite, tag=饿了么_获取Cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
05 10 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js, tag=饿了么_领取吃货豆, enabled=true
|
||||
```
|
||||
|
||||
## 获取数据
|
||||
|
||||
### 获取Cookie
|
||||
|
||||
打开饿了么APP即可。
|
||||
|
||||
**Surge需要关闭MITM over HTTP/2,你可以获取成功后再打开。**
|
||||
|
||||
### 获取坐标
|
||||
|
||||
打开饿了么APP - 我的 - 赚吃货豆。
|
||||
|
||||
由于获取坐标的请求不是每次都触发的,如果没有正确获取到坐标,建议移除饿了么APP后台,间隔10分钟后,再尝试上述操作。
|
||||
|
||||
## Bark推送
|
||||
|
||||
通过BoxJS,配置Bark推送链接,可以将脚本通知,通过Bark推送到其他设备上。
|
||||
|
||||
以饿了么为例:
|
||||
|
||||

|
||||
|
||||
在BoxJS中填写Bark推送链接即可。
|
||||
|
||||
<img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/images/bark_conf.jpg" style="zoom: 33%;" />
|
||||
|
||||
## 多账户
|
||||
|
||||
目前无法在单台iPhone/iPad设备上实现多账户执行日常任务和领取吃货豆。
|
||||
|
||||
多账户更多的作用是在多设备的情况下,将Cookies和坐标同步至青龙面板,由青龙面板执行多账户作业。
|
||||
|
||||
## 脚本变量
|
||||
|
||||
你可以根据下表,在magic.json中配置所需数据。
|
||||
|
||||
| 变量名 | 类型 | 说明 |
|
||||
| ------------------- | ------ | ---------------------------------------------- |
|
||||
| eleme_cookies | Json | 饿了么Cookie |
|
||||
| eleme_coordinate | Json | 饿了么坐标 |
|
||||
| eleme_mission | Bool | 是否领取会员任务 |
|
||||
| eleme_task_keywords | String | 饿了么任务关键词,含有此关键词的任务才会被领取 |
|
||||
| eleme_sync_qinglong | Bool | 是否同步Cookies和坐标到青龙面板 |
|
||||
|
||||
部分变量示例
|
||||
|
||||
```json
|
||||
{
|
||||
"eleme_cookies": {
|
||||
"magic_session": true,
|
||||
"UserId1": "Cookie1",
|
||||
"UserId2": "Cookie2"
|
||||
},
|
||||
"eleme_coordinate": {
|
||||
"magic_session": true,
|
||||
"UserId1": {"longitude": "xxxxxxxxxxxx", "latitude": "xxxxxxxxxxxxxx"},
|
||||
"UserId2": {"longitude": "xxxxxxxxxxxx", "latitude": "xxxxxxxxxxxxxx"}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
BIN
script/archive/eleme/elem.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
383
script/archive/eleme/eleme_daily.js
Normal file
17
script/archive/eleme/eleme_daily.lnplugin
Normal file
@ -0,0 +1,17 @@
|
||||
#!name= 饿了么
|
||||
#!desc= 饿了么每日自动领取任务及吃货豆
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/eleme
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/elem.png
|
||||
|
||||
[Script]
|
||||
http-request ^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-foodie-card\/home requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js,tag=饿了么_获取Cookie
|
||||
http-request ^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-home-tasklist-new\/home requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js,tag=饿了么_获取坐标1
|
||||
http-request ^https?:\/\/tb\.ele\.me\/wow\/alsc\/mod requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js,tag=饿了么_获取坐标2
|
||||
http-request ^https?:\/\/h5\.ele\.me\/restapi\/biz\.svip_scene\/svip\/engine\/queryTrafficSupply requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js,tag=饿了么_获取坐标3
|
||||
cron "10 09 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js,timeout=60,tag=饿了么_领取吃货豆
|
||||
cron "15 09 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_mission.js,timeout=60,tag=饿了么_领取会员任务
|
||||
|
||||
[MITM]
|
||||
hostname = air.tb.ele.me,tb.ele.me,h5.ele.me
|
||||
8
script/archive/eleme/eleme_daily.qxrewrite
Normal file
@ -0,0 +1,8 @@
|
||||
# 饿了么每日自动领取任务及吃货豆
|
||||
|
||||
^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-foodie-card\/home url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-home-tasklist-new\/home url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
^https?:\/\/tb\.ele\.me\/wow\/alsc\/mod url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
^https?:\/\/h5\.ele\.me\/restapi\/biz\.svip_scene\/svip\/engine\/queryTrafficSupply url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
|
||||
hostname = air.tb.ele.me,tb.ele.me,h5.ele.me
|
||||
14
script/archive/eleme/eleme_daily.sgmodule
Normal file
@ -0,0 +1,14 @@
|
||||
#!name=饿了么
|
||||
#!desc=饿了么每日自动领取任务及吃货豆
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
饿了么_领取吃货豆 = type=cron,cronexp=10 09 * * *,timeout=60,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
饿了么_领取任务 = type=cron,cronexp=15 09 * * *,timeout=60,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_mission.js
|
||||
饿了么_获取坐标1 = type=http-request,pattern=^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-home-tasklist-new\/home,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
饿了么_获取坐标2 = type=http-request,pattern=^https?:\/\/tb\.ele\.me\/wow\/alsc\/mod,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
饿了么_获取坐标3 = type=http-request,pattern=^https?:\/\/h5\.ele\.me\/restapi\/biz\.svip_scene\/svip\/engine\/queryTrafficSupply,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
饿了么_Cookies = type=http-request,pattern=^https?:\/\/air\.tb\.ele\.me\/app\/conch-page\/svip-foodie-card\/home,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/eleme_daily.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% air.tb.ele.me,tb.ele.me,h5.ele.me
|
||||
BIN
script/archive/eleme/images/bark.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
script/archive/eleme/images/bark_conf.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
93
script/archive/famijia/README.md
Normal file
@ -0,0 +1,93 @@
|
||||
# Fa米家
|
||||
|
||||
Fa米家每日自动签到
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.sgmodule
|
||||
|
||||
### Loon
|
||||
|
||||
使用远程脚本配置
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.lnscript, tag=Fa米家_每日签到, enabled=true
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.qxrewrite, tag=Fa米家_获取Cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
15 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js, tag=Fa米家_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
Fa米家APP - 我的 - (滚动到底部)常用服务 - 签到
|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
BIN
script/archive/famijia/famijia.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
161
script/archive/famijia/famijia_checkin.js
Normal file
6
script/archive/famijia/famijia_checkin.lnscript
Normal file
@ -0,0 +1,6 @@
|
||||
# Fa米家每日自动签到
|
||||
|
||||
http-request ^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/member\/(signin\/usersign|sign\/current) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js,tag=Fa米家_获取cookie
|
||||
cron "15 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js,timeout=30,tag=Fa米家_每日签到
|
||||
|
||||
hostname = fmapp.chinafamilymart.com.cn
|
||||
5
script/archive/famijia/famijia_checkin.qxrewrite
Normal file
@ -0,0 +1,5 @@
|
||||
# Fa米家每日自动签到
|
||||
|
||||
^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/member\/(signin\/usersign|sign\/current) url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js
|
||||
|
||||
hostname = fmapp.chinafamilymart.com.cn
|
||||
10
script/archive/famijia/famijia_checkin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=Fa米家
|
||||
#!desc=Fa米家每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
Fa米家_每日签到 = type=cron,cronexp=15 0 * * *,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js
|
||||
Fa米家_获取cookie = type=http-request,pattern=^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/member\/(signin\/usersign|sign\/current),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% fmapp.chinafamilymart.com.cn
|
||||
27
script/archive/findmy/README.md
Normal file
@ -0,0 +1,27 @@
|
||||
# Find My
|
||||
|
||||
如果你在维修AirPods时,忘了将耳机解绑,并且初次绑定耳机的手机或平板也不存在了,那你在”查找“APP中将永久获得一个无法删除的无效AirPods。
|
||||
|
||||
维修几次,就多几台AirPods。
|
||||
|
||||
这个脚本就是用来解决这个问题的,用于隐藏”查找“APP中,无法移除的无效设备。
|
||||
|
||||
希望苹果早点解决这个Bug,那这脚本也就不需要存在了。
|
||||
|
||||
## 部署
|
||||
|
||||
在不同的客户端,安装模块、重写、插件、覆写。
|
||||
|
||||
## 使用
|
||||
|
||||
启用脚本后,在”查找“APP中,再移除一次之前无法移除的设备即可。
|
||||
|
||||
如果误操作导致移除了正常设备,需要在BoxJS中删除记录的数据。
|
||||
|
||||
## 其他
|
||||
|
||||
脚本并不能真正的帮你从苹果的服务器移除无效的设备,而是将移除过程的设备Id记录下来,再下次请求设备时,将对应设备隐藏起来。
|
||||
|
||||
隐藏这个操作只对当前使用脚本的设备有效,如果有多个设备,需要每个设备都操作一次。
|
||||
|
||||
在iCloud网页端依旧会显示那些无法移除的无效设备。
|
||||
84
script/archive/findmy/findmy.js
Normal file
12
script/archive/findmy/findmy.lnplugin
Normal file
@ -0,0 +1,12 @@
|
||||
#!name=Find My
|
||||
#!desc=移除“查找”中无效的设备
|
||||
#!author=blackmatrix7
|
||||
#!homepage=https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/icon/findmy.jpg
|
||||
|
||||
[Script]
|
||||
http-request ^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$ requires-body=1,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,tag=查找_获取无效设备Id
|
||||
http-response ^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$ requires-body=1,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,tag=查找_移除无效设备
|
||||
|
||||
[MITM]
|
||||
hostname = p222-fmipmobile.icloud.com.cn
|
||||
13
script/archive/findmy/findmy.sgmodule
Normal file
@ -0,0 +1,13 @@
|
||||
#!name=Find My
|
||||
#!desc=移除“查找”中无效的设备
|
||||
#!author=blackmatrix7
|
||||
#!homepage=https://github.com/blackmatrix7/ios_rule_script
|
||||
#!category=blackmatrix7
|
||||
|
||||
|
||||
[Script]
|
||||
查找_获取无效设备Id = type=http-request,requires-body=1,max-size=0,pattern=^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,script-update-interval=86400
|
||||
查找_移除无效设备 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,script-update-interval=86400
|
||||
|
||||
[MITM]
|
||||
hostname = p222-fmipmobile.icloud.com.cn
|
||||
10
script/archive/findmy/findmy.snippet
Normal file
@ -0,0 +1,10 @@
|
||||
# Find My
|
||||
# 移除“查找”中无效的设备
|
||||
|
||||
# 查找_获取无效设备Id
|
||||
^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$ url script-request-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js
|
||||
|
||||
# 查找_移除无效设备
|
||||
^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js
|
||||
|
||||
hostname = p222-fmipmobile.icloud.com.cn
|
||||
BIN
script/archive/findmy/icon/findmy.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
script/archive/findmy/icon/findmy_gray.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
76
script/archive/jiazhangbang/jiazhangbang_checkin.js
Normal file
10
script/archive/jiazhangbang/jiazhangbang_checkin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=家长帮
|
||||
#!desc=家长帮每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
家长帮_每日签到 = type=cron,cronexp=20 0 * * *,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/jiazhangbang/jiazhangbang_checkin.js
|
||||
家长帮_获取cookie = type=http-request,requires-body=false,pattern=^https?:\/\/pgc-cms\.jzb\.com\/api\/channel\/recommend,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/jiazhangbang/jiazhangbang_checkin.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% mp.jzb.com, pgc-cms.jzb.com
|
||||
91
script/archive/manmanbuy/README.md
Normal file
@ -0,0 +1,91 @@
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.sgmodule
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.qxrewrite, tag=慢慢买_获取cookie, update-interval=86400, opt-parser=false, enabled=true
|
||||
|
||||
[task_local]
|
||||
20 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js, tag=慢慢买_每日签到, enabled=true
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.lnscript, tag=慢慢买_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
打开慢慢买App,进入“我的” - “每日签到”,弹出通知获取Cookie成功即可。
|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
172
script/archive/manmanbuy/manmanbuy_checkin.js
Normal file
6
script/archive/manmanbuy/manmanbuy_checkin.lnscript
Normal file
@ -0,0 +1,6 @@
|
||||
# 慢慢买每日自动签到
|
||||
|
||||
http-request ^https?:\/\/apph5\.manmanbuy\.com\/taolijin\/(login.aspx|logserver.aspx) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js,tag=慢慢买_获取cookie
|
||||
cron "15 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js,tag=慢慢买_每日签到
|
||||
|
||||
hostname = apph5.manmanbuy.com
|
||||
7
script/archive/manmanbuy/manmanbuy_checkin.qxrewrite
Normal file
@ -0,0 +1,7 @@
|
||||
# 慢慢买每日自动签到
|
||||
# [task_local]
|
||||
# 5 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js, tag=慢慢买_每日签到, enabled=true
|
||||
|
||||
^https?:\/\/apph5\.manmanbuy\.com\/taolijin\/(login.aspx|logserver.aspx) url script-request-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js
|
||||
|
||||
hostname = apph5.manmanbuy.com
|
||||
10
script/archive/manmanbuy/manmanbuy_checkin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=慢慢买
|
||||
#!desc=慢慢买每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
慢慢买_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js,type=cron,cronexp=10 0 * * *
|
||||
慢慢买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js,type=http-request,requires-body=true,pattern=^https?:\/\/apph5\.manmanbuy\.com\/taolijin\/(login.aspx|logserver.aspx)
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% apph5.manmanbuy.com
|
||||
BIN
script/archive/manmanbuy/manmanmai.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
93
script/archive/meituan/README.md
Normal file
@ -0,0 +1,93 @@
|
||||
# 美团买菜
|
||||
|
||||
美团买菜每日自动签到
|
||||
|
||||
## 配置说明
|
||||
|
||||
### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.sgmodule
|
||||
|
||||
### Loon
|
||||
|
||||
使用远程脚本配置
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.lnscript, tag=美团买菜_每日签到, enabled=true
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.qxrewrite, tag=美团买菜_获取Cookie, enabled=true
|
||||
|
||||
[task_local]
|
||||
30 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js, tag=美团买菜_每日签到, enabled=true
|
||||
```
|
||||
|
||||
## 获取Cookie
|
||||
|
||||
打开美团App,选择“美团买菜” - “我的” - “天天领钱”
|
||||
|
||||
## 统一推送
|
||||
|
||||
MagicJS利用Bark,实现了跨设备的统一推送能力,将多个iOS设备的脚本执行结果,统一推送到一个设备上。
|
||||
|
||||
执行效果图,以饿了么为例:
|
||||
|
||||

|
||||
|
||||
### 开启统一推送
|
||||
|
||||
你需要安装Bark这个APP,打开后可以得到类似这样的链接:
|
||||
|
||||
```http
|
||||
https://api.day.app/VXTWvaQ18N29bsQAg7DgkT
|
||||
```
|
||||
|
||||
在Surge、Loon、QuantumultX中执行以下代码,将链接写入(如何执行代码请自己动手解决)。
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$persistentStore.write("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 开启所有脚本统一推送
|
||||
$prefs.setValueForKey("https://api.day.app/VXTWvaQ18N29bsQAg7DgkT", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 关闭统一推送
|
||||
|
||||
**Surge、Loon**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$persistentStore.write("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
**Quantumult X**
|
||||
|
||||
```javascript
|
||||
# 关闭所有脚本统一推送
|
||||
$prefs.setValueForKey("", "magicjs_unified_push_url");
|
||||
```
|
||||
|
||||
### 其他
|
||||
|
||||
1. 统一推送能力仅对支持的脚本有效。
|
||||
2. 开启统一推送后,所有支持统一推送的脚本,都会把通知推送到目标设备上。
|
||||
3. 限于Bark的功能,统一推送中的多媒体和链接不可用。
|
||||
4. 统一推送需要使用Bark的服务器,推送成功与否,与Bark服务器的可用性有关。
|
||||
5. 统一推送不会关闭APP的本地推送,即两个iOS设备都会有推送。
|
||||
6. 如有隐私考虑,可以参考Bark的服务端文档,自建服务端。
|
||||
BIN
script/archive/meituan/maicai.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
134
script/archive/meituan/maicai_checkin.js
Normal file
6
script/archive/meituan/maicai_checkin.lnscript
Normal file
@ -0,0 +1,6 @@
|
||||
# 美团买菜自动签到
|
||||
|
||||
http-request ^https?:\/\/mall\.meituan\.com\/api\/c\/mallcoin\/checkIn\/getWeekCheckInProgressBar\? requires-body=0,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js,tag=美团买菜_获取cookie
|
||||
cron "30 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js,timeout=30,tag=美团买菜_每日签到
|
||||
|
||||
hostname = mall.meituan.com
|
||||
5
script/archive/meituan/maicai_checkin.qxrewrite
Normal file
@ -0,0 +1,5 @@
|
||||
# 美团买菜每日自动签到
|
||||
|
||||
^https?:\/\/mall\.meituan\.com\/api\/c\/mallcoin\/checkIn\/getWeekCheckInProgressBar\? url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js
|
||||
|
||||
hostname = mall.meituan.com
|
||||
10
script/archive/meituan/maicai_checkin.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=美团买菜
|
||||
#!desc=美团买菜每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
美团买菜_每日签到 = type=cron,cronexp=30 0 * * *,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js
|
||||
美团买菜_获取cookie = type=http-request,pattern=^https?:\/\/mall\.meituan\.com\/api\/c\/mallcoin\/checkIn\/getWeekCheckInProgressBar\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% mall.meituan.com
|
||||
114
script/archive/smzdm/README.md
Normal file
@ -0,0 +1,114 @@
|
||||
# 什么值得买
|
||||
|
||||
## 签到与每日任务
|
||||
|
||||
什么值得买签到和任务脚本,每日完成Android端签到、抽奖一次,收藏文章7次。
|
||||
|
||||
## 特别说明
|
||||
|
||||
### 脚本执行时间
|
||||
|
||||
什么值得买执行任务时,对每次任务的时间间隔有一定的要求,过短的时间间隔可能会没有任何奖励。如果在短时间内并行发起大量请求的话,严重的情况会导致账号异常,需要修改密码。所以在每次执行任务时,都加入休眠时间,这会导致脚本的执行时间需要非常长。请把脚本超时时间设置到最长,建议2分钟以上,以免因为超时被强制中断。
|
||||
|
||||
### 账号异常
|
||||
|
||||
可能会导致账号被拉入小黑屋,无法参与幸运屋抽奖,其他功能暂未发现异常,不在意抽奖的可以继续使用,在意抽奖的请谨慎考虑。
|
||||
|
||||
可以BoxJS中,开启在执行脚本时进行小黑屋检测,如果账号已在小黑屋中会弹出通知。
|
||||
|
||||
## 最近更新
|
||||
|
||||
2023年1月31日
|
||||
|
||||
1. 去除Web端签到,改为Android签到,感谢匿名大佬提供的签名算法
|
||||
2. 签到时增加黑号检测
|
||||
|
||||
### 配置说明
|
||||
|
||||
#### Surge
|
||||
|
||||
##### **安装模块**
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.sgmodule
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
安装插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.lnplugin
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置重写
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.snippet, tag=什么值得买_获取Cookie, update-interval=86400, opt-parser=false, enabled=true
|
||||
|
||||
[task_local]
|
||||
5 10 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js, tag=什么值得买每日签到
|
||||
```
|
||||
|
||||
## 获取Cookies
|
||||
|
||||
打开什么值得买APP,点击“我的”,进入右上角的签到页面,等待脚本弹出获取Cookie成功的通知即可。
|
||||
|
||||
~~使用Safari,不要使用第三方浏览器!~~
|
||||
|
||||
~~使用Safari访问 https://zhiyou.smzdm.com/ 进行一次登录,通常会显示获取Cookie成功。~~
|
||||
|
||||
~~可能因为重定向的问题,登录成功后访问的不是https://zhiyou.smzdm.com/user/ ,则重新在浏览器中访问一次https://zhiyou.smzdm.com/user/ 即可。~~
|
||||
|
||||
~~如果还是没有获取到Cookie,请查阅Surge等第三方App的执行日志。~~
|
||||
|
||||
### 多账号获取Cookies
|
||||
|
||||
使用浏览器的无痕模式、隐身模式等功能实现不同账号的登录和切换。
|
||||
|
||||
## 脚本变量
|
||||
|
||||
| 名称 | 类型 | 默认值 | 说明 |
|
||||
| ------------------- | ---- | ------ | --------------------------------- |
|
||||
| smzdm_cookie | Json | 无 | 存储什么值得买Cookies |
|
||||
| smzdm_cookie_id | Json | 无 | 辅助判断什么值得买Cookies是否变化 |
|
||||
| smzdm_signin | Bool | true | 是否打开什么值得买签到 |
|
||||
| smzdm_mission | Bool | false | 是否打开什么值得买每日任务 |
|
||||
| smzdm_lottery | Bool | false | 是否打开什么值得买每日抽奖 |
|
||||
| smzdm_sync_qinglong | Bool | false | 是否同步Cookies至青龙面板 |
|
||||
| smzdm_blackroom | Bool | true | 是否打开小黑屋检测 |
|
||||
|
||||
## 去广告
|
||||
|
||||
去除什么值得买首页、好价、好文内的广告
|
||||
|
||||
### 配置说明
|
||||
|
||||
#### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.sgmodule
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.lnplugin
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
配置重写
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.qxrewrite, tag=什么值得买_去广告, update-interval=86400, opt-parser=false, enabled=true
|
||||
```
|
||||
|
||||
896
script/archive/smzdm/backup/smzdm_checkin.js
Normal file
7
script/archive/smzdm/backup/smzdm_checkin.lnscript
Normal file
@ -0,0 +1,7 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
http-request ^https?:\/\/zhiyou\.smzdm\.com\/user$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,tag=什么值得买_获取cookie
|
||||
http-request ^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,tag=什么值得买_获取账号密码
|
||||
cron "5 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,timeout=120,tag=什么值得买_每日签到
|
||||
|
||||
hostname = zhiyou.smzdm.com,user-api.smzdm.com
|
||||
6
script/archive/smzdm/backup/smzdm_checkin.qxrewrite
Normal file
@ -0,0 +1,6 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
^https?:\/\/zhiyou\.smzdm\.com\/user$ url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js
|
||||
^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$ url script-request-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js
|
||||
|
||||
hostname = zhiyou.smzdm.com,user-api.smzdm.com
|
||||
11
script/archive/smzdm/backup/smzdm_checkin.sgmodule
Normal file
@ -0,0 +1,11 @@
|
||||
#!name=什么值得买
|
||||
#!desc=什么值得买每日自动签到与完成任务
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
什么值得买_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,timeout=120,type=cron,cronexp=5 0 * * *
|
||||
什么值得买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,type=http-request,requires-body=true,pattern=^https?:\/\/zhiyou\.smzdm\.com\/user$
|
||||
什么值得买_获取账号密码 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,type=http-request,requires-body=true,pattern=^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% zhiyou.smzdm.com, user-api.smzdm.com
|
||||
78
script/archive/smzdm/backup/smzdm_remove_ads.js
Normal file
@ -0,0 +1,78 @@
|
||||
let body = $response.body;
|
||||
body=JSON.parse(body);
|
||||
|
||||
let homepage_regex = /^https?:\/\/homepage-api.smzdm.com\/home/;
|
||||
let haojia_regex = /^https?:\/\/haojia-api.smzdm.com\/home\/list/;
|
||||
let article_regex = /^https?:\/\/article-api.smzdm.com\/article\/index_home_page/;
|
||||
let util_regex = /^https?:\/\/app-api\.smzdm\.com\/util\/update/;
|
||||
let sou_regex = /^https?:\/\/s-api\.smzdm\.com\/sou\/list/;
|
||||
|
||||
// 去除首页推荐广告
|
||||
if (homepage_regex.test($request.url)){
|
||||
if (!!body){
|
||||
if (body['data'].hasOwnProperty('banner')){
|
||||
if (body['data']['banner'].hasOwnProperty('big_banner')){
|
||||
delete body['data']['banner']['big_banner'];
|
||||
}
|
||||
if (body['data']['banner'].hasOwnProperty('tonglan_banner')){
|
||||
delete body['data']['banner']['tonglan_banner'];
|
||||
}
|
||||
}
|
||||
if (body.hasOwnProperty('data') && body['data'].hasOwnProperty('rows')){
|
||||
let rows = body['data']['rows'].filter((item) =>{
|
||||
return item['model_type'] != 'ads' && item['model_type'] != 'cluster';
|
||||
})
|
||||
body['data']['rows'] = rows;
|
||||
}
|
||||
delete body['data']['widget'];
|
||||
}
|
||||
}
|
||||
// 好价去广告
|
||||
else if(haojia_regex.test($request.url)){
|
||||
if (body['data'].hasOwnProperty('banner')){
|
||||
if (body['data']['banner'].hasOwnProperty('two_banner')){
|
||||
delete body['data']['banner']['two_banner'];
|
||||
}
|
||||
if (body['data']['banner'].hasOwnProperty('big_banner')){
|
||||
delete body['data']['banner']['big_banner'];
|
||||
}
|
||||
if (body['data']['banner'].hasOwnProperty('calendar_banner')){
|
||||
delete body['data']['banner']['calendar_banner'];
|
||||
}
|
||||
if (body['data']['banner'].hasOwnProperty('hongbao_banner')){
|
||||
delete body['data']['banner']['hongbao_banner'];
|
||||
}
|
||||
}
|
||||
let rows = body['data']['rows'].filter((item) =>{
|
||||
return item['tag'] != '广告';
|
||||
})
|
||||
body['data']['rows'] = rows;
|
||||
}
|
||||
// 社区好文去广告
|
||||
else if(article_regex.test($request.url)){
|
||||
if (body['data'].hasOwnProperty('big_banner')){
|
||||
delete body['data']['big_banner'];
|
||||
}
|
||||
if (body['data'].hasOwnProperty('notice')){
|
||||
delete body['data']['notice'];
|
||||
}
|
||||
}
|
||||
// 去除浮动广告
|
||||
else if (util_regex.test($request.url)){
|
||||
delete body['data']['ad_filter'];
|
||||
delete body['data']['operation_float_7_0'];
|
||||
delete body['data']['operation_full'];
|
||||
delete body['data']['operation_float_screen'];
|
||||
delete body['data']['operation_float'];
|
||||
}
|
||||
// 去除搜索结果广告
|
||||
else if (sou_regex.test($request.url)){
|
||||
if (body.hasOwnProperty('data') && body['data'].hasOwnProperty('rows')){
|
||||
let rows = body['data']['rows'].filter((item) =>{
|
||||
return item['model_type'] != 'ads';
|
||||
})
|
||||
body['data']['rows'] = rows;
|
||||
}
|
||||
}
|
||||
body=JSON.stringify(body);
|
||||
$done({body});
|
||||
16
script/archive/smzdm/backup/smzdm_remove_ads.lnplugin
Normal file
@ -0,0 +1,16 @@
|
||||
# 什么值得买去广告
|
||||
|
||||
[URL Rewrite]
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner - reject
|
||||
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) - reject
|
||||
^https?:\/\/app-api\.smzdm\.com\/util\/loading - reject
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/homepage-api\.smzdm\.com\/home script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_首页去广告
|
||||
http-response ^https?:\/\/haojia-api\.smzdm\.com\/home\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_好价去广告
|
||||
http-response ^https?:\/\/app-api\.smzdm\.com\/util\/update script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_去浮动广告
|
||||
http-response ^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_首页去广告
|
||||
http-response ^https?:\/\/s-api\.smzdm\.com\/sou\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_搜索去广告
|
||||
|
||||
[MITM]
|
||||
hostname = homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com
|
||||
19
script/archive/smzdm/backup/smzdm_remove_ads.qxrewrite
Normal file
@ -0,0 +1,19 @@
|
||||
# 什么值得买去广告
|
||||
|
||||
# 详情页去广告
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner url reject-dict
|
||||
# 首页去广告
|
||||
^https?:\/\/homepage-api\.smzdm\.com\/home url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
# 好价去广告
|
||||
^https?:\/\/haojia-api\.smzdm\.com\/home\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
# 去浮动广告
|
||||
^https?:\/\/app-api\.smzdm\.com\/util\/update url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
# 好文去广告
|
||||
^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
# 搜索去广告
|
||||
^https?:\/\/s-api\.smzdm\.com\/sou\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
# 其他
|
||||
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) url reject-dict
|
||||
^https?:\/\/app-api\.smzdm\.com\/util\/loading url reject-dict
|
||||
|
||||
hostname = homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com
|
||||
18
script/archive/smzdm/backup/smzdm_remove_ads.sgmodule
Normal file
@ -0,0 +1,18 @@
|
||||
#!name=什么值得买
|
||||
#!desc=什么值得买APP去广告
|
||||
|
||||
[URL Rewrite]
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner - reject
|
||||
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) - reject
|
||||
^https?:\/\/app-api\.smzdm\.com\/util\/loading - reject
|
||||
|
||||
[Script]
|
||||
什么值得买_首页去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/homepage-api\.smzdm\.com\/home,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
什么值得买_去浮动广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app-api\.smzdm\.com\/util\/update,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
什么值得买_好价去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/haojia-api\.smzdm\.com\/home\/list\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
什么值得买_好文去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
什么值得买_搜索去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/s-api\.smzdm\.com\/sou\/list,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
|
||||
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com
|
||||
BIN
script/archive/smzdm/images/01.png
Normal file
|
After Width: | Height: | Size: 298 KiB |
BIN
script/archive/smzdm/smzdm.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
650
script/archive/smzdm/smzdm_daily.js
Normal file
13
script/archive/smzdm/smzdm_daily.lnplugin
Normal file
@ -0,0 +1,13 @@
|
||||
#!name= 什么值得买
|
||||
#!desc= 什么值得买每日签到、抽奖与任务
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm.png
|
||||
|
||||
[Script]
|
||||
http-request ^https?:\/\/user-api\.smzdm\.com\/checkin$ script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,tag=什么值得买_获取Cookie
|
||||
cron "5 10 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,timeout=60,tag=什么值得买_每日签到
|
||||
|
||||
[MITM]
|
||||
hostname = user-api.smzdm.com
|
||||
10
script/archive/smzdm/smzdm_daily.sgmodule
Normal file
@ -0,0 +1,10 @@
|
||||
#!name=什么值得买
|
||||
#!desc=什么值得买每日自动签到
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
什么值得买_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,timeout=120,type=cron,cronexp=5 10 * * *
|
||||
什么值得买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,type=http-request,requires-body=false,pattern=^https?:\/\/user-api\.smzdm\.com\/checkin$
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% user-api.smzdm.com
|
||||
5
script/archive/smzdm/smzdm_daily.snippet
Normal file
@ -0,0 +1,5 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
^https?:\/\/user-api\.smzdm\.com\/checkin$ url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js
|
||||
|
||||
hostname = user-api.smzdm.com
|
||||
154
script/archive/smzdm/smzdm_remove_ads.js
Normal file
22
script/archive/smzdm/smzdm_remove_ads.lnplugin
Normal file
@ -0,0 +1,22 @@
|
||||
# 什么值得买去广告
|
||||
|
||||
[URL Rewrite]
|
||||
# 什么值得买_好价详情页去广告
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/other_modul - reject
|
||||
# 什么值得买_好价详情页红包小助手
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/user_related_modul - reject
|
||||
# 什么值得买_Wiki(618晒物活动推广,将来可能不是广告)
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/wiki_related_modul - reject
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/app-api\.smzdm\.com\/util\/loading script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_开屏去广告
|
||||
http-response ^https?:\/\/homepage-api\.smzdm\.com\/v3\/home script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_首页去广告
|
||||
http-response ^https?:\/\/haojia-api\.smzdm\.com\/home\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_好价去广告
|
||||
http-response ^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/article_releated_modul script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_好价详情页去广告
|
||||
http-response ^https?:\/\/baike-api\.smzdm\.com\/home_v3\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_百科去广告
|
||||
http-response ^https?:\/\/s-api\.smzdm\.com\/sou\/list_v10 script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_搜索结果去广告
|
||||
http-response ^https?:\/\/s-api\.smzdm\.com\/sou\/filter\/tags\/hot_tags script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_搜索标签去广告
|
||||
http-response ^https?:\/\/zhiyou\.m\.smzdm\.com\/user\/vip\/ajax_get_banner script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_值会员权益中心banner广告
|
||||
|
||||
[MITM]
|
||||
hostname = app-api.smzdm.com,homepage-api.smzdm.com,haojia-api.smzdm.com,haojia.m.smzdm.com,baike-api.smzdm.com,s-api.smzdm.com,zhiyou.m.smzdm.com
|
||||
27
script/archive/smzdm/smzdm_remove_ads.qxrewrite
Normal file
@ -0,0 +1,27 @@
|
||||
# 什么值得买去广告
|
||||
|
||||
# 好价详情页去广告
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/other_modul url reject
|
||||
# 好价详情页红包小助手
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/user_related_modul url reject
|
||||
# Wiki(618晒物活动推广,将来可能不是广告)
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/wiki_related_modul url reject
|
||||
|
||||
# 开屏去广告
|
||||
^https?:\/\/app-api\.smzdm\.com\/util\/loading url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 首页去广告
|
||||
^https?:\/\/homepage-api\.smzdm\.com\/v3\/home url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 好价去广告
|
||||
^https?:\/\/haojia-api\.smzdm\.com\/home\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 好价详情页去广告
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/article_releated_modul url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 百科去广告
|
||||
^https?:\/\/baike-api\.smzdm\.com\/home_v3\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 搜索结果去广告
|
||||
^https?:\/\/s-api\.smzdm\.com\/sou\/list_v10 url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 搜索标签去广告
|
||||
^https?:\/\/s-api\.smzdm\.com\/sou\/filter\/tags\/hot_tags url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
# 值会员权益中心banner广告
|
||||
^https?:\/\/zhiyou\.m\.smzdm\.com\/user\/vip\/ajax_get_banner url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
|
||||
hostname = app-api.smzdm.com,homepage-api.smzdm.com,haojia-api.smzdm.com,haojia.m.smzdm.com,baike-api.smzdm.com,s-api.smzdm.com,zhiyou.m.smzdm.com
|
||||
24
script/archive/smzdm/smzdm_remove_ads.sgmodule
Normal file
@ -0,0 +1,24 @@
|
||||
#!name=什么值得买
|
||||
#!desc=什么值得买APP去广告
|
||||
|
||||
[URL Rewrite]
|
||||
# 什么值得买_好价详情页去广告
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/other_modul - reject
|
||||
# 什么值得买_好价详情页红包小助手
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/user_related_modul - reject
|
||||
# 什么值得买_Wiki(618晒物活动推广,将来可能不是广告)
|
||||
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/wiki_related_modul - reject
|
||||
|
||||
[Script]
|
||||
什么值得买_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app-api\.smzdm\.com\/util\/loading,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_首页去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/homepage-api\.smzdm\.com\/v3\/home,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_好价去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/haojia-api\.smzdm\.com\/home\/list,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_好价详情页去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/article_releated_modul,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_百科去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/baike-api\.smzdm\.com\/home_v3\/list,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_搜索结果去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/s-api\.smzdm\.com\/sou\/list_v10,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_搜索标签去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/s-api\.smzdm\.com\/sou\/filter\/tags\/hot_tags,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
什么值得买_值会员权益中心banner去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/zhiyou\.m\.smzdm\.com\/user\/vip\/ajax_get_banner,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% app-api.smzdm.com,homepage-api.smzdm.com,haojia-api.smzdm.com,haojia.m.smzdm.com,baike-api.smzdm.com,s-api.smzdm.com,zhiyou.m.smzdm.com
|
||||
36
script/archive/startup/README.md
Normal file
@ -0,0 +1,36 @@
|
||||
# 开屏去广告
|
||||
|
||||
使用脚本,通过修改开屏广告图片大小、开屏广告持续时间、开屏广告生效时间等方法,去除缓存到本地的APP开屏广告。
|
||||
|
||||
目前精力有限,仅能满足个人常用APP的开屏广告去除,并且不保证去除效果。
|
||||
|
||||
## 配置说明
|
||||
|
||||
大部分去广告的链接,都已经被整合型的去广告脚本拦截,脚本无法接管请求。
|
||||
|
||||
如果出现拦截失败,请抓包检查相关请求是不是在脚本处理前就已经被拦截。
|
||||
|
||||
## 模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.sgmodule
|
||||
```
|
||||
|
||||
## 插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.lnplugin
|
||||
```
|
||||
|
||||
## 重写
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.snippet
|
||||
```
|
||||
|
||||
## 覆写
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.stoverride
|
||||
```
|
||||
|
||||
214
script/archive/startup/startup.js
Normal file
@ -0,0 +1,214 @@
|
||||
const scriptName = "去除APP启动广告";
|
||||
const $ = MagicJS(scriptName, "INFO");
|
||||
|
||||
(() => {
|
||||
let response = null;
|
||||
if ($.isResponse) {
|
||||
switch (true) {
|
||||
// 爱奇艺
|
||||
case /^https?:\/\/\w*\.cupid\.iqiyi\.com\/mixer\?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
delete obj["adSlots"];
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`爱奇艺开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// BiliBili
|
||||
case /^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/list/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
obj["data"]["max_time"] = 0;
|
||||
obj["data"]["min_interval"] = 31536000;
|
||||
obj["data"]["pull_interval"] = 31536000;
|
||||
// for (let i = 0; i < obj["data"]["show"].length; i++) {
|
||||
// obj["data"]["show"][i]["begin_time"] = 1915027200;
|
||||
// obj["data"]["show"][i]["end_time"] = 1924272000;
|
||||
// }
|
||||
obj["data"]["list"]["show"] = [];
|
||||
for (let i = 0; i < obj["data"]["list"].length; i++) {
|
||||
obj["data"]["list"][i]["duration"] = 0;
|
||||
obj["data"]["list"][i]["begin_time"] = 1915027200;
|
||||
obj["data"]["list"][i]["end_time"] = 1924272000;
|
||||
}
|
||||
body = JSON.stringify(obj);
|
||||
} catch (err) {
|
||||
$.logger.error(`BiliBili开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// Fa米家
|
||||
case /^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.code === "200") {
|
||||
obj.data.relayDisplayUrl = "";
|
||||
}
|
||||
obj.data = {};
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`Fa米家开屏去广告出现异常:${err}`);
|
||||
}
|
||||
// 嘀嗒出行
|
||||
case /^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.hasOwnProperty("startupPages") === true) {
|
||||
obj.show_time = 1;
|
||||
obj.full_screen = 0;
|
||||
let startupPages = [];
|
||||
obj.startupPages.forEach((element) => {
|
||||
element["width"] = 1;
|
||||
element["height"] = 1;
|
||||
element["page_url"] = "#";
|
||||
element["create_time"] = "20990101000000";
|
||||
element["start_time"] = "20990101000000";
|
||||
element["end_time"] = "20990101000000";
|
||||
startupPages.push(element);
|
||||
});
|
||||
obj.startupPages = startupPages;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
}
|
||||
} catch (err) {
|
||||
$.logger.error(`嘀嗒出行开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 美团外卖
|
||||
case /^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
if (obj.data.startpicture.hasOwnProperty("ad")) {
|
||||
obj.data.startpicture.ad = [];
|
||||
} else if (obj.data.startpicture.hasOwnProperty("mk")) {
|
||||
obj.data.startpicture.mk = [];
|
||||
} else {
|
||||
obj.data.startpicture = [];
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`美团外卖开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 小爱音箱
|
||||
case /^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
let data = [];
|
||||
for (let i = 0; i < obj.data.length; i++) {
|
||||
let ad = obj.data[i];
|
||||
ad.start = "1924272000000";
|
||||
ad.end = "1924358400000";
|
||||
ad.stay = 1;
|
||||
ad.maxTimes = 1;
|
||||
data.push(ad);
|
||||
}
|
||||
obj.data = data;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`小爱音箱开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 京东
|
||||
case /^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
for (let i = 0; i < obj.images.length; i++) {
|
||||
for (let j = 0; j < obj.images[i].length; j++) {
|
||||
if (obj.images[i][j].showTimes) {
|
||||
obj.images[i][j].showTimes = 0;
|
||||
obj.images[i][j].onlineTime = "2030-12-24 00:00:00";
|
||||
obj.images[i][j].referralsTime = "2030-12-25 00:00:00";
|
||||
obj.images[i][j].time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
obj.countdown = 100;
|
||||
obj.showTimesDaily = 0;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`京东开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 联享家
|
||||
case /^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
obj.seq = "0";
|
||||
obj.reqinterval = 0;
|
||||
delete obj["last_ads"];
|
||||
delete obj.data;
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`联享家开屏去广告出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 多点
|
||||
case /^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic/.test($.request.url):
|
||||
try {
|
||||
let obj = JSON.parse($.response.body);
|
||||
for (let i = 0; i < obj["data"]["welcomePage"].length; i++) {
|
||||
obj["data"]["welcomePage"][i]["onlineTime"] = 1915027200000;
|
||||
obj["data"]["welcomePage"][i]["offlineTime"] = 1924272000000;
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`多点开屏广告处理出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
// 轻牛健康
|
||||
case /^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner/.test($.request.url):
|
||||
try {
|
||||
let obj = {
|
||||
"code": "200",
|
||||
"msg": "ok",
|
||||
"data": {
|
||||
"present_flag": 1,
|
||||
"banner": {
|
||||
"banner_id": "1861064161258799417",
|
||||
"image": "http://qnplus-banner.glb.qnniu.com/banner_1636700135",
|
||||
"image_type": 1,
|
||||
"jump_link": "https://app-h5.yolanda.hk/redirect_center.html?type=fascia_gun",
|
||||
"jump_type": 1,
|
||||
"duration": 5,
|
||||
"frequency": 1,
|
||||
"updated_at": 1638157314
|
||||
}
|
||||
}
|
||||
}
|
||||
response = { body: JSON.stringify(obj) };
|
||||
} catch (err) {
|
||||
$.logger.error(`轻牛健康开屏广告处理出现异常:${err}`);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$.logger.warning(`触发意外的请求处理,请确认脚本或复写配置正常。URL:\n${$.request.url}`);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$.logger.warning(`触发意外的请求处理,请确认脚本或复写配置正常。URL:\n${$.request.url}`);
|
||||
}
|
||||
if (response) {
|
||||
$.done(response);
|
||||
} else {
|
||||
$.done();
|
||||
}
|
||||
})();
|
||||
|
||||
// prettier-ignore
|
||||
/**
|
||||
*
|
||||
* $$\ $$\ $$\ $$$$$\ $$$$$$\ $$$$$$\
|
||||
* $$$\ $$$ | \__| \__$$ |$$ __$$\ $$ ___$$\
|
||||
* $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$ |$$ / \__| \_/ $$ |
|
||||
* $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____| $$ |\$$$$$$\ $$$$$ /
|
||||
* $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$\ $$ | \____$$\ \___$$\
|
||||
* $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ | $$ |$$\ $$ | $$\ $$ |
|
||||
* $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\\$$$$$$ |\$$$$$$ | \$$$$$$ |
|
||||
* \__| \__| \_______| \____$$ |\__| \_______|\______/ \______/ \______/
|
||||
* $$\ $$ |
|
||||
* \$$$$$$ |
|
||||
* \______/
|
||||
*
|
||||
*/
|
||||
// prettier-ignore
|
||||
function MagicJS(scriptName="MagicJS",logLevel="INFO"){const MagicEnvironment=()=>{const isLoon=typeof $loon!=="undefined";const isQuanX=typeof $task!=="undefined";const isNode=typeof module!=="undefined";const isSurge=typeof $httpClient!=="undefined"&&!isLoon;const isStorm=typeof $storm!=="undefined";const isStash=typeof $environment!=="undefined"&&typeof $environment["stash-build"]!=="undefined";const isSurgeLike=isSurge||isLoon||isStorm||isStash;const isScriptable=typeof importModule!=="undefined";return{isLoon:isLoon,isQuanX:isQuanX,isNode:isNode,isSurge:isSurge,isStorm:isStorm,isStash:isStash,isSurgeLike:isSurgeLike,isScriptable:isScriptable,get name(){if(isLoon){return"Loon"}else if(isQuanX){return"QuantumultX"}else if(isNode){return"NodeJS"}else if(isSurge){return"Surge"}else if(isScriptable){return"Scriptable"}else{return"unknown"}},get build(){if(isSurge){return $environment["surge-build"]}else if(isStash){return $environment["stash-build"]}else if(isStorm){return $storm.buildVersion}},get language(){if(isSurge||isStash){return $environment["language"]}},get version(){if(isSurge){return $environment["surge-version"]}else if(isStash){return $environment["stash-version"]}else if(isStorm){return $storm.appVersion}else if(isNode){return process.version}},get system(){if(isSurge){return $environment["system"]}else if(isNode){return process.platform}},get systemVersion(){if(isStorm){return $storm.systemVersion}},get deviceName(){if(isStorm){return $storm.deviceName}}}};const MagicLogger=(scriptName,logLevel="INFO")=>{let _level=logLevel;const logLevels={SNIFFER:6,DEBUG:5,INFO:4,NOTIFY:3,WARNING:2,ERROR:1,CRITICAL:0,NONE:-1};const logEmoji={SNIFFER:"",DEBUG:"",INFO:"",NOTIFY:"",WARNING:"❗ ",ERROR:"❌ ",CRITICAL:"❌ ",NONE:""};const _log=(msg,level="INFO")=>{if(!(logLevels[_level]<logLevels[level.toUpperCase()]))console.log(`[${level}] [${scriptName}]\n${logEmoji[level.toUpperCase()]}${msg}\n`)};const setLevel=logLevel=>{_level=logLevel};return{getLevel:()=>{return _level},setLevel:setLevel,sniffer:msg=>{_log(msg,"SNIFFER")},debug:msg=>{_log(msg,"DEBUG")},info:msg=>{_log(msg,"INFO")},notify:msg=>{_log(msg,"NOTIFY")},warning:msg=>{_log(msg,"WARNING")},error:msg=>{_log(msg,"ERROR")},retry:msg=>{_log(msg,"RETRY")}}};return new class{constructor(scriptName,logLevel){this._startTime=Date.now();this.version="3.0.0";this.scriptName=scriptName;this.env=MagicEnvironment();this.logger=MagicLogger(scriptName,logLevel);this.http=typeof MagicHttp==="function"?MagicHttp(this.env,this.logger):undefined;this.data=typeof MagicData==="function"?MagicData(this.env,this.logger):undefined;this.notification=typeof MagicNotification==="function"?MagicNotification(this.scriptName,this.env,this.logger,this.http):undefined;this.utils=typeof MagicUtils==="function"?MagicUtils(this.env,this.logger):undefined;this.qinglong=typeof MagicQingLong==="function"?MagicQingLong(this.env,this.data,this.logger):undefined;if(typeof this.data!=="undefined"){let magicLoglevel=this.data.read("magic_loglevel");const barkUrl=this.data.read("magic_bark_url");if(magicLoglevel){this.logger.setLevel(magicLoglevel.toUpperCase())}if(barkUrl){this.notification.setBark(barkUrl)}}}get isRequest(){return typeof $request!=="undefined"&&typeof $response==="undefined"}get isResponse(){return typeof $response!=="undefined"}get isDebug(){return this.logger.level==="DEBUG"}get request(){return typeof $request!=="undefined"?$request:undefined}get response(){if(typeof $response!=="undefined"){if($response.hasOwnProperty("status"))$response["statusCode"]=$response["status"];if($response.hasOwnProperty("statusCode"))$response["status"]=$response["statusCode"];return $response}else{return undefined}}done=(value={})=>{this._endTime=Date.now();let span=(this._endTime-this._startTime)/1e3;this.logger.info(`SCRIPT COMPLETED: ${span} S.`);if(typeof $done!=="undefined"){$done(value)}}}(scriptName,logLevel)}
|
||||
20
script/archive/startup/startup.lnplugin
Normal file
@ -0,0 +1,20 @@
|
||||
#!name= 开屏去广告
|
||||
#!desc= 通过脚本去除部分APP顽固开屏广告
|
||||
#!openUrl= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/source/avatar.jpg
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=爱奇艺_开屏去广告
|
||||
http-response ^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=嘀嗒出行_开屏去广告
|
||||
http-response ^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=Fa米家_开屏去广告
|
||||
http-response ^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=BiliBili_开屏去广告
|
||||
http-response ^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=美团外卖_开屏去广告
|
||||
http-response ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=小爱音箱_开屏去广告
|
||||
http-response ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=京东_开屏去广告
|
||||
http-response ^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=联享家_开屏去广告
|
||||
http-response ^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=多点_开屏去广告
|
||||
|
||||
[MITM]
|
||||
hostname = capis.didapinche.com,capis*.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,*.cupid.iqiyi.com
|
||||
21
script/archive/startup/startup.sgmodule
Normal file
@ -0,0 +1,21 @@
|
||||
#!name=开屏去广告
|
||||
#!desc=通过脚本去除部分APP的顽固开屏广告
|
||||
#!system=ios
|
||||
|
||||
[General]
|
||||
force-http-engine-hosts = %APPEND% t7z.cupid.iqiyi.com,kjp.cupid.iqiyi.com,*.didapinche.com
|
||||
|
||||
[Script]
|
||||
爱奇艺_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
嘀嗒出行_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
Fa米家_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
BiliBili_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
美团外卖_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
小爱音箱_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
京东_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
联享家_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
多点_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
轻牛健康_开屏去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% capis.didapinche.com,capis*.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,gw.yolanda.hk,t7z.cupid.iqiyi.com,kjp.cupid.iqiyi.com
|
||||
20
script/archive/startup/startup.snippet
Normal file
@ -0,0 +1,20 @@
|
||||
# 爱奇艺
|
||||
^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 嘀嗒出行
|
||||
^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# Fa米家
|
||||
^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# BiliBili
|
||||
^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 美团外卖
|
||||
^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 小爱音箱
|
||||
^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 京东
|
||||
^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 联享家
|
||||
^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
# 多点
|
||||
^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
|
||||
hostname = *.didapinche.com,fmapp.chinafamilymart.com.cn,app.bilibili.com,wmapi.meituan.com,hd.mina.mi.com,api.m.jd.com,mi.gdt.qq.com,cmsapi.dmall.com,*.cupid.iqiyi.com
|
||||
104
script/archive/startup/startup.stoverride
Normal file
@ -0,0 +1,104 @@
|
||||
name: 开屏去广告
|
||||
desc: 通过脚本去除部分APP的顽固开屏广告
|
||||
|
||||
http:
|
||||
script:
|
||||
# 爱奇艺_开屏去广告
|
||||
- match: ^https?:\/\/(t7z|kjp)\.cupid\.iqiyi\.com\/mixer\?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 嘀嗒出行_开屏去广告
|
||||
- match: ^https?:\/\/capis(-?\w*)?\.didapinche\.com\/ad\/cx\/startup\?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# Fa米家_开屏去广告
|
||||
- match: ^https?:\/\/fmapp\.chinafamilymart\.com\.cn\/api\/app\/market\/start\/ad
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# BiliBili_开屏去广告
|
||||
- match: ^https?:\/\/app\.bilibili\.com\/x\/v2\/splash\/(show|list)
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 美团外卖_开屏去广告
|
||||
- match: ^https?:\/\/wmapi\.meituan\.com\/api\/v\d+\/loadInfo?
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 小爱音箱_开屏去广告
|
||||
- match: ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 京东_开屏去广告
|
||||
- match: ^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=start
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 联享家_开屏去广告
|
||||
- match: ^https?:\/\/mi\.gdt\.qq\.com\/gdt_mview.fcg
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 多点_开屏去广告
|
||||
- match: ^https?:\/\/cmsapi\.dmall\.com\/app\/home\/homepageStartUpPic
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 轻牛健康_开屏去广告
|
||||
- match: ^https?:\/\/gw\.yolanda\.hk\/api\/servlets\?endpoint=banners\/show_launch_banner
|
||||
name: startup.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
mitm:
|
||||
- "capis.didapinche.com"
|
||||
- "capis*.didapinche.com"
|
||||
- "fmapp.chinafamilymart.com.cn"
|
||||
- "app.bilibili.com"
|
||||
- "wmapi.meituan.com"
|
||||
- "hd.mina.mi.com"
|
||||
- "api.m.jd.com"
|
||||
- "mi.gdt.qq.com"
|
||||
- "cmsapi.dmall.com"
|
||||
- "gw.yolanda.hk"
|
||||
- "t7z.cupid.iqiyi.com"
|
||||
- "kjp.cupid.iqiyi.com"
|
||||
|
||||
script-providers:
|
||||
startup.js:
|
||||
url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js
|
||||
interval: 86400
|
||||
|
||||
13
script/archive/synology/163study.lnplugin
Normal file
@ -0,0 +1,13 @@
|
||||
#!name= 网易云课堂离线下载课程内容
|
||||
#!desc= 将网易云课堂课程内容下载到群晖NAS。
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg
|
||||
|
||||
[Script]
|
||||
http-response ^https?:\/\/ke\.study\.youdao\.com\/course\/app\/detail.json requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js,tag=网易云课堂_离线下载课程内容
|
||||
|
||||
|
||||
[MITM]
|
||||
hostname = ke.study.youdao.com
|
||||
4
script/archive/synology/163study.qxrewrite
Normal file
@ -0,0 +1,4 @@
|
||||
# 网易云课堂_离线下载课程内容
|
||||
^https?:\/\/ke\.study\.youdao\.com\/course\/app\/detail.json url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js
|
||||
|
||||
hostname = ke.study.youdao.com
|
||||
8
script/archive/synology/163study.sgmodule
Normal file
@ -0,0 +1,8 @@
|
||||
#!name=网易云课堂
|
||||
#!desc=网易云课堂离线下载课程视频
|
||||
|
||||
[Script]
|
||||
网易云课堂_课程离线下载 = type=http-response,requires-body=1,max-size=0,timeout=300,pattern=^https?:\/\/ke\.study\.youdao\.com\/course\/app\/detail.json,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/downloadstation.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% ke.study.youdao.com
|
||||
368
script/archive/synology/DSM6/downloadstation.js
Normal file
123
script/archive/synology/README.md
Normal file
@ -0,0 +1,123 @@
|
||||
# Download Station
|
||||
|
||||
利用Synology的Download Station下载互联网资源。
|
||||
|
||||
## 说明
|
||||
|
||||
一个小玩具,实现将互联网某些资源添加到群晖的Download Stations下载,目前暂时支持推特第三方客户端的图片视频下载。
|
||||
|
||||
这其实是个架子,提供一种思路:通过脚本获取资源后添加到群晖的Download Station,欢迎有兴趣的大佬一起完善,添加其他功能。
|
||||
|
||||
在使用脚本前,需要有一些前提条件:
|
||||
|
||||
1. 一台群晖,安装Download Station
|
||||
2. 会使用BoxJs
|
||||
3. 保证能在各种情况下访问群晖
|
||||
4. 一点点动手和排查问题的能力
|
||||
|
||||
## 基础配置
|
||||
|
||||
### 新建群晖账户
|
||||
|
||||
访问你的群晖,新增User账户,**一定要新建账户**。为了数据安全,强烈建议不要给予管理员权限。仅需要DSM、~~File Station(实际上不需要,看着给)~~、Download Station三个权限。
|
||||
|
||||
**目录权限方面,仅需要下载目录的读写权限,其他目录的权限不需要给**,如果你一定要给我也不拦着。
|
||||
|
||||
### 登录账户
|
||||
|
||||
登录新建的账户,打开Download Station,首次使用会提示选择下载目录,设置好下载目录后完成配置。
|
||||
|
||||
### 配置BoxJS
|
||||
|
||||
在BoxJS里填入群晖的http地址,不建议使用https,可能因为证书问题会导致访问失败,账户密码根据最近的设置输入,sid不需要填,会自动获取。
|
||||
|
||||
目前仅在DSM6.2上验证,DSM7上没有测试是否正常,如果群晖的DSM7接口没有变化应该是可以的。
|
||||
|
||||
## 存在的问题
|
||||
|
||||
群晖的sid一段时间后会失效,观察了3个多月,sid有效期大概1个月不到,具体的时间没有统计。sid失效后,需要进入boxjs手动将sid删除,让脚本重新获取。~~自动更新sid可以实现,不过比较懒,看看什么时候手动操作烦了再考虑加这个功能。~~
|
||||
|
||||
可能会导致用于下载的群晖账户出现异常,表现为sid无论如何重新获取,都无法正常添加下载任务。这个时候需要删除这个用于下载的账户,再根据上述的步骤重新添加账户。目前仅偶尔出现,可能是sid失效后多过重试导致。
|
||||
|
||||
**所以新建一个专用的账户给脚本使用就非常重要了。**
|
||||
|
||||
## 网易云课堂课程下载
|
||||
|
||||
### 操作方式
|
||||
|
||||
在App中,点击“我的学习”,在“全部课程”中,选择需要下载的课程,点击“进入学习”,就会开始提交下载任务给群晖Download Station。
|
||||
|
||||
### 注意事项
|
||||
|
||||
1. 如果课程非常多的情况,可能因为加载超时,导致网易云课堂程序没有响应。如果Surge或其他客户端正常弹出通知,说明执行正常,尽量保持手机不要锁屏,直到弹出通知显示全部课程下载完成。
|
||||
2. 不需要下载时务必关闭此模块/插件/复写,否则每次点击“进入学习”都会下载一次课程。
|
||||
3. 下载过程中不要修改Download Station的同时下载数。
|
||||
|
||||
### 没有群晖
|
||||
|
||||
如果没有群晖,脚本会将获取到的课程视频链接写入到日志中,可以从日志中获取下载链接后,使用其他下载工具下载课程。
|
||||
|
||||
### 配置说明
|
||||
|
||||
#### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/163study.sgmodule
|
||||
```
|
||||
|
||||
#### Loon
|
||||
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/163study.lnplugin
|
||||
```
|
||||
|
||||
#### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/163study.qxrewrite, tag=网易云课堂_离线下载课程内容, enabled=true
|
||||
```
|
||||
|
||||
## Twitter资源下载
|
||||
|
||||
### Twitter第三方客户端
|
||||
|
||||
因为Twitter官方的客户端带SSL Pinning,没办法使用此脚本,所以必须使用第三方客户端。并且**开启此脚本的复写后,会导致Twitter官方客户端无法正常使用。**
|
||||
|
||||
### 操作方式
|
||||
|
||||
在Twitter第三方客户端中,看到喜欢的推文,点击Like,会自动将推文内的图片和视频下载到群晖中。当然还要保证群晖能访问推特,否则下载资源就无从谈起了……
|
||||
|
||||
### 配置说明
|
||||
|
||||
#### Surge
|
||||
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/twitter.sgmodule
|
||||
```
|
||||
|
||||
#### Loon
|
||||
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/twitter.lnplugin
|
||||
```
|
||||
|
||||
#### Quantumult X
|
||||
|
||||
配置文件
|
||||
|
||||
```ini
|
||||
[rewrite_remote]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/twitter.qxrewrite, tag=Twitter_离线下载收藏内容, enabled=true
|
||||
```
|
||||
|
||||