forked from doio/Surge-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurge bilibili account.js
78 lines (73 loc) · 2.07 KB
/
surge bilibili account.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
let body = $response.body
body = JSON.parse(body)
body['data']['sections_v2'] = [
{
"items": [
{
"id": 397,
"title": "历史记录",
"icon": "http://i0.hdslb.com/bfs/archive/8385323c6acde52e9cd52514ae13c8b9481c1a16.png",
"uri": "bilibili://user_center/history"
},
{
"id": 398,
"title": "我的收藏",
"icon": "http://i0.hdslb.com/bfs/archive/d79b19d983067a1b91614e830a7100c05204a821.png",
"uri": "bilibili://user_center/favourite"
},
{
"id": 396,
"title": "离线缓存",
"icon": "http://i0.hdslb.com/bfs/archive/5fc84565ab73e716d20cd2f65e0e1de9495d56f8.png",
"uri": "bilibili://user_center/download"
},
{
"id": 399,
"title": "稍后再看",
"icon": "http://i0.hdslb.com/bfs/archive/63bb768caa02a68cb566a838f6f2415f0d1d02d6.png",
"need_login": 1,
"uri": "bilibili://user_center/watch_later"
}
],
"style": 1,
"button": {
}
},
{
"title": "创作中心",
"items": [
{
"need_login": 1,
"display": 1,
"id": 171,
"title": "创作首页",
"global_red_dot": 1,
"uri": "bilibili://uper/homevc",
"icon": "http://i0.hdslb.com/bfs/archive/d3aad2d07538d2d43805f1fa14a412d7a45cc861.png"
},
],
"style": 1,
"button": {
"icon": "http://i0.hdslb.com/bfs/archive/205f47675eaaca7912111e0e9b1ac94cb985901f.png",
"style": 1,
"url": "bilibili://uper/user_center/archive_selection",
"text": "发布"
}
},
{
//"title": "其他设置",
"items": [
{
"id": 410,
"title": "设置",
"icon": "http://i0.hdslb.com/bfs/archive/e932404f2ee62e075a772920019e9fbdb4b5656a.png",
"uri": "bilibili://user_center/setting"
}
],
"style": 2,
"button": {
}
}
],
body = JSON.stringify(body)
$done({ body })