Skip to content

Commit

Permalink
阿里网盘cookie获取域名更新
Browse files Browse the repository at this point in the history
  • Loading branch information
zqzess committed Aug 10, 2023
1 parent 13425e4 commit 6019e0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/Mine/aDriveCheckIn/aDriveCheckIn_token.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#!icon=https://raw.githubusercontent.com/Softlyx/Fileball/main/YUAN/ALiYun.png

[Script]
http-request ^https:\/\/auth\.aliyundrive\.com\/v2\/account\/token script-path=https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js, requires-body=true, timeout=10, enabled=true, tag=阿里网盘token获取
http-request ^https:\/\/(auth|aliyundrive)\.alipan\.com\/v2\/account\/token script-path=https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js, requires-body=true, timeout=10, enabled=true, tag=阿里网盘token获取

[MITM]
hostname = auth.aliyundrive.com
hostname = auth.alipan.com, auth.aliyundrive.com
4 changes: 2 additions & 2 deletions js/Mine/aDriveCheckIn/aDriveCheckIn_token.qxrewrite
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 阿里云盘token获取 @zqzess
hostname = auth.aliyundrive.com
hostname = auth.alipan.com, auth.aliyundrive.com

^https:\/\/auth\.aliyundrive\.com\/v2\/account\/token url script-request-body https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js
^https:\/\/(auth|aliyundrive)\.alipan\.com\/v2\/account\/token url script-request-body https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js
4 changes: 2 additions & 2 deletions js/Mine/aDriveCheckIn/aDriveCheckIn_token.sgmodule
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#!desc=阿里网盘签到token获取

[Script]
阿里网盘token获取 = type=http-request,pattern=^https:\/\/auth\.aliyundrive\.com\/v2\/account\/token,requires-body=1,script-path=https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js
阿里网盘token获取 = type=http-request,pattern=^https:\/\/(auth|aliyundrive)\.alipan\.com\/v2\/account\/token,requires-body=1,script-path=https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/js/Mine/aDriveCheckIn/aDriveCheckIn.js

[MITM]
hostname = %APPEND% auth.aliyundrive.com
hostname = %APPEND% auth.alipan.com, auth.aliyundrive.com
3 changes: 2 additions & 1 deletion js/Mine/aDriveCheckIn/aDriveCheckIn_token.stoverride
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ desc: 打开阿里网盘,等待token获取通知,如果没有token获取通

http:
script:
- match: ^https:\/\/auth\.aliyundrive\.com\/v2\/account\/token
- match: ^https:\/\/(auth|aliyundrive)\.alipan\.com\/v2\/account\/token
name: aDriveCheckIn_cookie
type: request # request / response
require-body: true
Expand All @@ -12,6 +12,7 @@ http:
binary-mode: false
max-size: 2097152 # 2MB
mitm:
- "auth.alipan.com"
- "auth.aliyundrive.com"

script-providers:
Expand Down

0 comments on commit 6019e0c

Please sign in to comment.