-
Notifications
You must be signed in to change notification settings - Fork 2
/
fantastical.js
29 lines (28 loc) · 984 Bytes
/
fantastical.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
/*
^https:\/\/api\.flexibits\.com\/v1\/(auth|account)\/(device|details|appstore-receipt)\/$ url script-response-body fantastical.js
hostname=api.flexibits.com
2023-01-23 updata
http-response ^https:\/\/api\.flexibits\.com\/(v1\/auth\/device|v1\/account\/details) requires-body=1,script-path=https://raw.githubusercontent.com/deezertidal/private/master/js-backup/Crack/fantastical.js
*/
let url = $request.url;
const path1="v1/auth/device";
const path2="v1/account/details";
let obj = JSON.parse($response.body);
if (url.indexOf(path1) != -1) {
obj["subscription"]={
"autorenew": true,
"expiration": "2099-02-15T09:09:14Z",
"expires": "2099-02-15T09:09:14Z"
}
}
if (url.indexOf(path2) != -1) {
obj["subscription"]={
"autorenew": true,
"expiration": "2099-02-15T09:09:14.000000Z",
"uuid": "3c5927a6-4e3e-4773-b7af-62506e036dc7",
"subscription_type": "AppStore",
"is_expired": false,
"trial": false
}
}
$done({body: JSON.stringify(obj)});