-
Notifications
You must be signed in to change notification settings - Fork 53
/
itranslate.js
43 lines (34 loc) · 1.14 KB
/
itranslate.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
/*
项目名称:iTranslate 翻译
下载地址:https://t.cn/A6p2IR1g
脚本作者:chxm1023,ios151更新8.1号
电报频道:https://t.me/chxm1023
使用声明:⚠️仅供参考,🈲转载与售卖!
使用说明:进入App出现付费按[恢复购买]
**************************************
[rewrite_local]
^https:\/\/ssl-api\.itranslateapp\.com\/accounts\/v4\/users\/896516346808177\/subscriptions url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/itranslate.js
[mitm]
hostname = ssl-api.itranslateapp.com
*/
var lovebaby = JSON.parse($response.body);
const vip = '/subscriptions/verify';
const active = '/marketing/consent/status';
if ($request.url.indexOf(vip) != -1){
lovebaby.licenses = [
{
"product_id" : "com.itranslate.pro.yearly",
"bundle_id" : "com.outerspaceapps.itranslate",
"is_trial_period" : true,
"original_transaction_id" : "160001314520000",
"expires_date_ms" : 4092599350000,
"transaction_id" : "160001314520000"
}
];
}
if ($request.url.indexOf(active) != -1){
lovebaby ={
"is_active" : true
};
}
$done({ body: JSON.stringify(lovebaby) });