mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-22 13:50:41 +08:00
Initial commit: new history
This commit is contained in:
27
Scripts/baidu/baiduLib.js
Normal file
27
Scripts/baidu/baiduLib.js
Normal file
@ -0,0 +1,27 @@
|
||||
/***********************************
|
||||
> 应用名称:百度文库
|
||||
> 脚本功能:解锁VIP文档阅读权限
|
||||
> 特别说明:本脚本仅供学习交流使用,禁止转载、售卖
|
||||
|
||||
[rewrite_local]
|
||||
# 百度文库☆解锁VIP文档阅读权限(2022-10-17)
|
||||
^https:\/\/appwk\.baidu\.com\/naapi\/user\/getinfo url script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/baidu/baiduLib.js
|
||||
|
||||
[mitm]
|
||||
hostname=appwk.baidu.com
|
||||
***********************************/
|
||||
|
||||
let obj = JSON.parse($response.body);
|
||||
|
||||
obj.data.vip.base_vip_info = {
|
||||
uid: 12345678,
|
||||
type: 2,
|
||||
start_time: 1622222200,
|
||||
end_time: 4622222200,
|
||||
is_vip: 1,
|
||||
remain_day: 999,
|
||||
pro_total: 5,
|
||||
normal_total: 5
|
||||
};
|
||||
|
||||
$done({ body: JSON.stringify(obj) });
|
||||
Reference in New Issue
Block a user