移除已失效的脚本

This commit is contained in:
blackmatrix7
2022-12-12 23:30:31 +08:00
parent 9fa4d04438
commit d7efa04a92
14 changed files with 0 additions and 0 deletions

View 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推送到其他设备上。
以饿了么为例:
![](https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/images/bark.jpg)
在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"}
}
}
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

File diff suppressed because one or more lines are too long

View 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

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB