-
Notifications
You must be signed in to change notification settings - Fork 3
/
Lightroom.js
42 lines (39 loc) · 1.12 KB
/
Lightroom.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
/*
hostname=photos.adobe.io
http-response ^https:\/\/photos\.adobe\.io\/v2\/accounts requires-body=1,script-path=https://raw.githubusercontent.com/primovist/ScriptsForSurge/master/Scripts/Lightroom.js
转载From TG群组NobyDA Script
*/
body = $response.body.replace(/while.{7}\n/, "");
let obj = JSON.parse(body);
obj.entitlement.status="subscriber";
obj.current_subs={
"product_id": "lightroom",
"store": "adobe",
"purchase_date": "2019-10-10T16:32:10.254954Z",
"sao": {
"inpkg_CCES": "0",
"inpkg_CCLE": "1",
"inpkg_CCSN": "0",
"inpkg_CCSV": "0",
"inpkg_LCCC": "0",
"inpkg_LPES": "0",
"inpkg_LRBRL": "0",
"inpkg_LRMAC": "0",
"inpkg_LRMC": "0",
"inpkg_LRMP": "0",
"inpkg_LRTB": "0",
"inpkg_PHLT": "0",
"inpkg_PHLT2": "0",
"inpkg_PLES": "0",
"storage_quota": "100"
}
};
obj.entitlement.storage={
"used": 0,
"limit": 1154487209165,
"display_limit": 1099511627776,
"warn": 992137445376
};
obj.avatar.placeholder=true;
body = JSON.stringify(obj);
$done({body});