mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-25 01:48:24 +08:00
[什么值得买] 支持多账户签到及青龙面板
This commit is contained in:
parent
548e6802cf
commit
b210025199
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
@ -1,30 +1,25 @@
|
||||
# 什么值得买
|
||||
|
||||
## 特别说明
|
||||
|
||||
什么值得买执行任务时,对每次任务的时间间隔有一定的要求,过短的时间间隔可能会没有任何奖励。如果在短时间内并行发起大量请求的话,严重的情况会导致账号异常,需要修改密码。所以在每次执行任务时,都加入了3秒的休眠时间,这会导致脚本的执行时间需要非常长,差不多1分钟左右。请把脚本超时时间设置到最长,建议2分钟以上,以免因为超时被强制中断。
|
||||
|
||||
2021年1月18日
|
||||
|
||||
实测会引起账号异常,无法参与幸运屋抽奖,其他功能暂未发现异常,不在意抽奖的可以继续使用,在意抽奖的请谨慎考虑。**目前将签到和任务拆分为两个脚本,仅需要签到使用signin脚本即可。**
|
||||
|
||||
## 最近更新
|
||||
|
||||
2020年12月22日:
|
||||
|
||||
适配最新的个人中心返回Html格式。
|
||||
|
||||
去除威望显示,现在获取不到威望这个属性了。
|
||||
|
||||
去除完成点击“去购买”的任务的功能,现在只能在APP端操作才有经验。现在每日经验约有40左右。什么值得买官方完全有办法封禁所有的Web端完成任务功能,现在还能执行部分任务纯属官方放水,且用且珍惜吧,不保证哪一天就没办法通过脚本完成任务了。
|
||||
# 🧸什么值得买
|
||||
|
||||
## 签到与每日任务
|
||||
|
||||
什么值得买Web端和App端每日自动签到脚本,并且完成每日点击去购买10次、点值5次、点赞5次、收藏5次的任务。
|
||||
什么值得买签到和任务脚本,每日完成Web端签到、抽奖一次,收藏文章7次。
|
||||
|
||||
执行效果如下,会显示昵称、级别、经验值变动总数、经验值变动明细、任务完成情况。
|
||||
## 特别说明
|
||||
|
||||
![](https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/images/01.png)
|
||||
### 脚本执行时间
|
||||
|
||||
什么值得买执行任务时,对每次任务的时间间隔有一定的要求,过短的时间间隔可能会没有任何奖励。如果在短时间内并行发起大量请求的话,严重的情况会导致账号异常,需要修改密码。所以在每次执行任务时,都加入休眠时间,这会导致脚本的执行时间需要非常长。请把脚本超时时间设置到最长,建议2分钟以上,以免因为超时被强制中断。
|
||||
|
||||
### 账号异常
|
||||
|
||||
可能会引起账号异常,无法参与幸运屋抽奖,其他功能暂未发现异常,不在意抽奖的可以继续使用,在意抽奖的请谨慎考虑。
|
||||
|
||||
## 最近更新
|
||||
|
||||
2022年9月8日
|
||||
|
||||
1. 合并签到和任务脚本,可以在BoxJS中关闭
|
||||
2. 增加多账号签到和任务功能
|
||||
|
||||
### 配置说明
|
||||
|
||||
@ -32,43 +27,55 @@
|
||||
|
||||
##### **安装模块**
|
||||
|
||||
Surge推荐使用模块进行部署,模块地址:https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.sgmodule
|
||||
```ini
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.sgmodule
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
**远程脚本**
|
||||
|
||||
直接在配置里修改
|
||||
安装插件
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.lnscript, tag=什么值得买_每日签到, enabled=true
|
||||
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_signin.qxrewrite, tag=什么值得买_获取Cookie, update-interval=86400, opt-parser=false, enabled=true
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.qxrewrite, tag=什么值得买_获取Cookie, update-interval=86400, opt-parser=false, enabled=true
|
||||
|
||||
[task_local]
|
||||
5 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js, tag=什么值得买每日签到
|
||||
5 0 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js, tag=什么值得买每日签到
|
||||
```
|
||||
|
||||
### 使用说明
|
||||
## 获取Cookies
|
||||
|
||||
#### **Web端获取Cookie:**
|
||||
**使用Safari,不要使用第三方浏览器!**
|
||||
|
||||
使用Safari,不要使用第三方浏览器!
|
||||
|
||||
使用手机浏览器访问 https://zhiyou.smzdm.com/ 进行一次登录,通常会显示获取cookie成功。
|
||||
使用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 | 是否打开什么值得买签到 |
|
||||
| smzdm_mission | Bool | 是否打开什么值得买每日任务 |
|
||||
| smzdm_lottery | Bool | 是否打开什么值得买每日抽奖 |
|
||||
| smzdm_sync_qinglong | Bool | 是否同步Cookies至青龙面板 |
|
||||
|
||||
## 去广告
|
||||
|
||||
去除什么值得买首页、好价、好文内的广告
|
||||
@ -77,95 +84,26 @@ https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smz
|
||||
|
||||
#### Surge
|
||||
|
||||
##### 配置文件
|
||||
|
||||
在配置文件中修改。
|
||||
使用模块
|
||||
|
||||
```ini
|
||||
[MITM]
|
||||
hostname = homepage-api.smzdm.com, haojia-api.smzdm.com, article-api.smzdm.com
|
||||
|
||||
[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/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:\/\/article-api.smzdm.com\/article\/index_home_page,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.js
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.sgmodule
|
||||
```
|
||||
|
||||
##### 模块安装
|
||||
|
||||
模块地址: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.sgmodule
|
||||
|
||||
### Loon
|
||||
|
||||
**远程脚本**
|
||||
使用插件
|
||||
|
||||
```ini
|
||||
[Remote Script]
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_remove_ads.lnscript, tag=什么值得买_去广告, enabled=true
|
||||
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
|
||||
```
|
||||
|
||||
## 统一推送
|
||||
|
||||
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.
Before Width: | Height: | Size: 119 KiB |
471
script/smzdm/smzdm_daily.js
Normal file
471
script/smzdm/smzdm_daily.js
Normal file
File diff suppressed because one or more lines are too long
13
script/smzdm/smzdm_daily.lnplugin
Normal file
13
script/smzdm/smzdm_daily.lnplugin
Normal file
@ -0,0 +1,13 @@
|
||||
#!name= 什么值得买
|
||||
#!desc= 什么值得买每日签到、抽奖与任务
|
||||
#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/smzdm
|
||||
#!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?:\/\/zhiyou\.smzdm\.com\/user$ script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,tag=什么值得买_获取Cookie
|
||||
cron "30 9 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_daily.js,timeout=60,tag=什么值得买_每日签到
|
||||
|
||||
[MITM]
|
||||
hostname = zhiyou.smzdm.com
|
6
script/smzdm/smzdm_daily.qxrewrite
Normal file
6
script/smzdm/smzdm_daily.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_daily.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_daily.js
|
||||
|
||||
hostname = zhiyou.smzdm.com
|
@ -3,8 +3,8 @@
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
什么值得买_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js,timeout=120,type=cron,cronexp=5 0 * * *
|
||||
什么值得买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.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_daily.js,timeout=120,type=cron,cronexp=5 0 * * *
|
||||
什么值得买_获取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?:\/\/zhiyou\.smzdm\.com\/user$
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% zhiyou.smzdm.com
|
File diff suppressed because one or more lines are too long
@ -1,6 +0,0 @@
|
||||
# 什么值得买每日自动任务
|
||||
|
||||
http-request ^https?:\/\/zhiyou\.smzdm\.com\/user$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js,tag=什么值得买_获取cookie
|
||||
cron "20 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_mission.js,timeout=120,tag=什么值得买_每日任务
|
||||
|
||||
hostname = zhiyou.smzdm.com
|
@ -1,6 +0,0 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
^https?:\/\/zhiyou\.smzdm\.com\/user$ url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.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_mission.js
|
||||
|
||||
hostname = zhiyou.smzdm.com
|
@ -1,10 +0,0 @@
|
||||
#!name=什么值得买
|
||||
#!desc=什么值得买每日自动任务
|
||||
#!system=ios
|
||||
|
||||
[Script]
|
||||
什么值得买_每日任务 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_mission.js,timeout=120,type=cron,cronexp=20 0 * * *
|
||||
什么值得买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js,type=http-request,requires-body=true,pattern=^https?:\/\/zhiyou\.smzdm\.com\/user$
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% zhiyou.smzdm.com
|
File diff suppressed because one or more lines are too long
@ -1,6 +0,0 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
http-request ^https?:\/\/zhiyou\.smzdm\.com\/user$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js,tag=什么值得买_获取cookie
|
||||
cron "5 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.js,timeout=120,tag=什么值得买_每日任务
|
||||
|
||||
hostname = zhiyou.smzdm.com
|
@ -1,6 +0,0 @@
|
||||
# 什么值得买每日自动签到
|
||||
|
||||
^https?:\/\/zhiyou\.smzdm\.com\/user$ url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_signin.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_signin.js
|
||||
|
||||
hostname = zhiyou.smzdm.com
|
Loading…
Reference in New Issue
Block a user