Files
wool_scripts/Scripts/baidu/baiduLib.js
2025-06-30 21:59:46 +08:00

28 lines
753 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/***********************************
> 应用名称:百度文库
> 脚本功能解锁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) });