移除已失效的脚本
This commit is contained in:
111
script/obsolete/eleme/README.md
Normal file
111
script/obsolete/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/obsolete/eleme/elem.png
Normal file
BIN
script/obsolete/eleme/elem.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
383
script/obsolete/eleme/eleme_daily.js
Normal file
383
script/obsolete/eleme/eleme_daily.js
Normal file
File diff suppressed because one or more lines are too long
17
script/obsolete/eleme/eleme_daily.lnplugin
Normal file
17
script/obsolete/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/obsolete/eleme/eleme_daily.qxrewrite
Normal file
8
script/obsolete/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/obsolete/eleme/eleme_daily.sgmodule
Normal file
14
script/obsolete/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/obsolete/eleme/images/bark.jpg
Normal file
BIN
script/obsolete/eleme/images/bark.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
script/obsolete/eleme/images/bark_conf.jpg
Normal file
BIN
script/obsolete/eleme/images/bark_conf.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
93
script/obsolete/meituan/README.md
Normal file
93
script/obsolete/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/obsolete/meituan/maicai.png
Normal file
BIN
script/obsolete/meituan/maicai.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
134
script/obsolete/meituan/maicai_checkin.js
Normal file
134
script/obsolete/meituan/maicai_checkin.js
Normal file
File diff suppressed because one or more lines are too long
6
script/obsolete/meituan/maicai_checkin.lnscript
Normal file
6
script/obsolete/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/obsolete/meituan/maicai_checkin.qxrewrite
Normal file
5
script/obsolete/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/obsolete/meituan/maicai_checkin.sgmodule
Normal file
10
script/obsolete/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
|
||||
Reference in New Issue
Block a user