Skip to content

Commit 56aabe9

Browse files
committed
更新[腾讯视频]签到: 调整为从网页端获取Cookie
1 parent c8e1ff7 commit 56aabe9

3 files changed

Lines changed: 25 additions & 21 deletions

File tree

‎QuantumultX_Local_Cookie.conf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ hostname = wapside.189.cn, *.acfun.cn, apk.tw, *.bilibili.com, api.dongqiudi.com
9393

9494
# 腾讯视频
9595
# 189及以前版本
96-
# ^https:\/\/vip\.video\.qq\.com\/?.? url script-response-body chavyleung/videoqq/videoqq.cookie.js
96+
# ^https:\/\/access.video.qq.com\/user\/auth_refresh url script-response-body chavyleung/videoqq/videoqq.cookie.js
9797
# 190及以后版本
98-
^https:\/\/vip\.video\.qq\.com\/?.? url script-request-header chavyleung/videoqq/videoqq.cookie.js
98+
^https:\/\/access.video.qq.com\/user\/auth_refresh url script-request-header chavyleung/videoqq/videoqq.cookie.js
9999

100100
# 喜马拉雅
101101
# 189及以前版本
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
# 腾讯视频 (网页)
1+
# 腾讯视频 (APP)
22

33
> 代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可
44
5+
> 需要 VIP 会员才能签到 (需要 VIP!需要 VIP!需要 VIP!)
6+
7+
> 2020.1.11 QuanX 在`190`版本开始, 获取 Cookie 方式需要从`script-response-body`改为`script-request-header`
8+
9+
> 2020.2.5 如果你从 APP 中获取的 Cookie 容易失效 [请点这里](https://github.com/chavyleung/scripts/blob/master/videoqq/README.md)
10+
511
## 配置 (Surge)
612

713
```properties
814
[MITM]
915
*.video.qq.com
1016

1117
[Script]
12-
http-request ^https:\/\/access.video.qq.com\/user\/auth_refresh script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.cookie.js
18+
http-request ^https:\/\/vip\.video\.qq\.com\/?.? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.cookie.js
1319
cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.js
1420
```
1521

@@ -21,9 +27,9 @@ cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scr
2127

2228
[rewrite_local]
2329
# 189及以前版本
24-
^https:\/\/access.video.qq.com\/user\/auth_refresh url script-response-body videoqq.cookie.js
30+
^https:\/\/vip\.video\.qq\.com\/?.? url script-response-body videoqq.cookie.js
2531
# 190及以后版本
26-
^https:\/\/access.video.qq.com\/user\/auth_refresh url script-request-header videoqq.cookie.js
32+
^https:\/\/vip\.video\.qq\.com\/?.? url script-request-header videoqq.cookie.js
2733

2834
[task_local]
2935
1 0 * * * videoqq.js
@@ -35,10 +41,8 @@ cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scr
3541
2. 再配置重写规则:
3642
- Surge: 把两条远程脚本放到`[Script]`
3743
- QuanX: 把`videoqq.cookie.js`和`videoqq.js`传到`On My iPhone - Quantumult X - Scripts` (传到 iCloud 相同目录也可, 注意要打开 quanx 的 iCloud 开关)
38-
3. 获取 Cookie:
39-
- 手机浏览器访问: https://film.qq.com/
40-
- 随便选 1 部电影观看
41-
4. 系统提示: `获取Cookie: 成功` (如果不提示获取成功, 点自己头像退出登录, 重新登录下应该就能获取)
44+
3. 打开 APP, 访问下`个人中心`
45+
4. 系统提示: `获取Cookie: 成功` (如果不提示获取成功, 尝试杀进程再进个人中心)
4246
5. 最后就可以把第 1 条脚本注释掉了
4347

4448
> 第 1 条脚本是用来获取 cookie 的, 用浏览器访问一次获取 cookie 成功后就可以删掉或注释掉了, 但请确保在`登录成功`后再获取 cookie.

‎videoqq/README.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# 腾讯视频 (APP)
1+
# 腾讯视频 (网页)
22

33
> 代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可
44
5-
> 需要 VIP 会员才能签到 (需要 VIP!需要 VIP!需要 VIP!)
6-
7-
> 2020.1.11 QuanX 在`190`版本开始, 获取 Cookie 方式需要从`script-response-body`改为`script-request-header`
8-
9-
> 2020.2.5 如果你从 APP 中获取的 Cookie 容易失效 [请点这里](https://github.com/chavyleung/scripts/blob/master/videoqq/README.web.md)
5+
> 2020.2.7 从网页端获取的 Cookie 很稳定!
106
117
## 配置 (Surge)
128

@@ -15,7 +11,7 @@
1511
*.video.qq.com
1612

1713
[Script]
18-
http-request ^https:\/\/vip\.video\.qq\.com\/?.? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.cookie.js
14+
http-request ^https:\/\/access.video.qq.com\/user\/auth_refresh script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.cookie.js
1915
cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/videoqq/videoqq.js
2016
```
2117

@@ -27,9 +23,9 @@ cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scr
2723

2824
[rewrite_local]
2925
# 189及以前版本
30-
^https:\/\/vip\.video\.qq\.com\/?.? url script-response-body videoqq.cookie.js
26+
^https:\/\/access.video.qq.com\/user\/auth_refresh url script-response-body videoqq.cookie.js
3127
# 190及以后版本
32-
^https:\/\/vip\.video\.qq\.com\/?.? url script-request-header videoqq.cookie.js
28+
^https:\/\/access.video.qq.com\/user\/auth_refresh url script-request-header videoqq.cookie.js
3329

3430
[task_local]
3531
1 0 * * * videoqq.js
@@ -41,8 +37,10 @@ cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scr
4137
2. 再配置重写规则:
4238
- Surge: 把两条远程脚本放到`[Script]`
4339
- QuanX: 把`videoqq.cookie.js`和`videoqq.js`传到`On My iPhone - Quantumult X - Scripts` (传到 iCloud 相同目录也可, 注意要打开 quanx 的 iCloud 开关)
44-
3. 打开 APP, 访问下`个人中心`
45-
4. 系统提示: `获取Cookie: 成功` (如果不提示获取成功, 尝试杀进程再进个人中心)
40+
3. 获取 Cookie:
41+
- 手机浏览器访问: https://film.qq.com/
42+
- 随便选 1 部电影观看
43+
4. 系统提示: `获取Cookie: 成功` (如果不提示获取成功, 点自己头像退出登录, 重新登录下应该就能获取)
4644
5. 最后就可以把第 1 条脚本注释掉了
4745

4846
> 第 1 条脚本是用来获取 cookie 的, 用浏览器访问一次获取 cookie 成功后就可以删掉或注释掉了, 但请确保在`登录成功`后再获取 cookie.
@@ -98,3 +96,5 @@ cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scr
9896
[@lhie1](https://github.com/lhie1)
9997

10098
[@ConnersHua](https://github.com/ConnersHua)
99+
100+
[@Liquor030](https://github.com/Liquor030)

0 commit comments

Comments
 (0)