-
Notifications
You must be signed in to change notification settings - Fork 26
/
Nico.js
63 lines (56 loc) · 1.67 KB
/
Nico.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
Nico 多元人格交友
8.15.0
[rewrite_local]
#会员
https://data.inicoapp.com/api/2.0/publicUser/detail? url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Nico.js
#恋爱测试 解锁权限
https://data.inicoapp.com/api/v4/testQuestions/getTestById url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Nico.js
#好物推荐
https://data.inicoapp.com/api/v4/clientConfig/mallBannerConfig url reject-200
#推广图片
https://data.inicoapp.com/api/v4/personalActivity/getAppAc? url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Nico.js
[mitm]
hostname = data.inicoapp.com
*/
let obj = JSON.parse($response.body);
const url = $request.url;
// 会员
if (url.includes('/publicUser/detail')) {
// obj.data.userInfo.nickName = "叼毛安妮";
obj.data.userInfo.vipInfo.vipStatus = {
"vipSDL": 1,
"isSvipSDL": true,
"isVipSDL": true,
"svipYDL": 1,
"isSvipYDL": true,
"isSvipDL": true,
"vipYDL": 1,
"isVipDL": true,
"svipSDL": 1,
"vipDL": 1,
"svipDL": 1,
"isVipYDL": true
};
obj.data.userInfo.vip = 1;
}
// 恋爱测试
if (url.includes('/testQuestions/getTestById')) {
obj.data.hasResult = true;
obj.data.isPay = false;
obj.data.records.forEach(record => {
record.user.isOpenLive.status = true;
});
}
// 测试题
if (url.includes('/personalActivity/getAppAc')) {
// 只保留测试题,去除情趣广告
obj.data = obj.data.filter(item => item.type === 1);
// 只保留测试题,去除跳转淘宝URL及图片
obj.data.forEach(item => {
item.items = item.items.filter(subItem => subItem.corner === "测试题");
});
}
$done({
body: JSON.stringify(obj)
});