Init project

This commit is contained in:
blackmatrix7
2021-04-09 19:34:05 +08:00
parent af86d24757
commit f2b8201076
7329 changed files with 2323074 additions and 0 deletions

View File

@ -0,0 +1,103 @@
# 嘀嗒出行
嘀嗒出行自动签到和自动拾取贝壳脚本。每日0点10分执行脚本自动进行当日签到并显示签到获取的贝壳数量。同时拾取所有贝壳广场中的所有贝壳。
2020.09.03:
贝壳已自动拾取,去除通过脚本拾取贝壳的内容。
2020.08.07
目前贝壳似乎是自动拾取的,不需要再通过脚本定时获取,所以每天都会提示“没有发现待拾取的贝壳”,目前不影响使用,暂时不做调整,观察一段时间再说。
## 配置说明
### Surge
使用模块
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.sgmodule
### Loon
使用远程脚本
```ini
[Remote Script]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.lnscript, tag=嘀嗒出行_每日签到, enabled=true
```
### Quantumult X
```ini
[rewrite_remote]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.qxrewrite, tag=嘀嗒出行_获取cookie, enabled=true
[task_local]
10 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js, tag=嘀嗒出行_每日签到, enabled=true
```
## 使用说明
打开嘀嗒出行App后进入左侧菜单中的“贝壳广场”正常情况下会自动获取Cookie。如果没有获取成功请查阅Surge等第三方App的执行日志。
执行效果图,脚本更新时可能会进行微调。
![](https://github.com/blackmatrix7/ios_rule_script/raw/master/script/didachuxing/images/didachuxing_checkin01.jpg)
## 统一推送
MagicJS利用Bark实现了跨设备的统一推送能力将多个iOS设备的脚本执行结果统一推送到一个设备上。
执行效果图,以饿了么为例:
![](https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/eleme/images/bark.jpg)
### 开启统一推送
你需要安装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的服务端文档自建服务端。

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

View 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/didachuxing/didachuxing_plus.js,tag=嘀嗒出行_获取cookie
cron "10 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js,timeout=10,tag=嘀嗒出行_每日签到
hostname = www.didapinche.com

View 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/didachuxing/didachuxing_plus.js
hostname = www.didapinche.com

View File

@ -0,0 +1,10 @@
#!name=嘀嗒出行
#!desc=嘀嗒出行每日自动签到
#!system=ios
[Script]
嘀嗒出行_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js,type=cron,cronexp=10 0 * * *
嘀嗒出行_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js,type=http-request,pattern=^https?:\/\/www\.didapinche\.com\/hapis\/api\/t\/Jifen\/.*\?userCid=.*
[MITM]
hostname = %APPEND% www.didapinche.com

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB