Init project
This commit is contained in:
91
script/manmanbuy/README.md
Normal file
91
script/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.quanx, 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.loon, 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/manmanbuy/manmanbuy_checkin.js
Normal file
172
script/manmanbuy/manmanbuy_checkin.js
Normal file
File diff suppressed because one or more lines are too long
6
script/manmanbuy/manmanbuy_checkin.lnscript
Normal file
6
script/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/manmanbuy/manmanbuy_checkin.qxrewrite
Normal file
7
script/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/manmanbuy/manmanbuy_checkin.sgmodule
Normal file
10
script/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/manmanbuy/manmanmai.png
Normal file
BIN
script/manmanbuy/manmanmai.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
Reference in New Issue
Block a user