-
Notifications
You must be signed in to change notification settings - Fork 53
/
iTunes.js
108 lines (101 loc) · 4.25 KB
/
iTunes.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*************************************
项目名称:iTunes合集(此合集只包含9.12及以后的软件)
软件版本:截止2023.9.9最新版(每一个下载地址对应一个uaProductMapping)
下载地址:yoyo手账 https://is.gd/ko2CKP
下载地址:bubu手账 https://is.gd/ct0H6d
下载地址:卡卡手账 https://is.gd/XNHXGk
下载地址:猫咪手账 https://is.gd/BKK3dy
下载地址:恋恋手账 https://is.gd/sTVJED
下载地址:人生笔记 https://is.gd/pKDlNG
下载地址:貔貅记账 https://is.gd/wojipn 5.9.2
下载地址:Lister https://t.cn/A6OJJfW5 1.0.1
下载地址:Daylio日记 https://t.cn/A65221md 1.52.2
下载地址:Nutrilio https://t.cn/A6O6zTMN 1.18.0
下载地址:亚瑟浏览器 11.6
下载地址:Metion 商店3.50
下载地址:小日常 商店7.22
下载地址:chat smith https://t.cn/A6OC5HGz
下载地址:Miary: 记录你的日记和情绪
下载地址:mindkit https://t.cn/A6WPOgAW
下载地址:狸清照 商店6.9.3
使用声明:⚠️仅供参考,🈲️转载与售卖!
**************************************
[rewrite_local]
^https?:\/\/buy\.itunes\.apple\.com\/verifyReceipt$ url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/iTunes.js
[mitm]
hostname = buy.itunes.apple.com
*************************************/
var anni = {};
var anni01 = JSON.parse(typeof $response != "undefined" && $response.body || null);
var headers = {};
for (var key in $request.headers) {
const reg = /^[a-z]+$/;
if (key === "User-Agent" && !reg.test(key)) {
var lowerkey = key.toLowerCase();
$request.headers[lowerkey] = $request.headers[key];
delete $request.headers[key];
}
}
var UA = $request.headers['user-agent'];
var uaProductMapping = {
'MomentShouZhang': {product_id: 'xichaoshouzhangQuarterlyPlus'},
'XinQingRiJi': {product_id: 'zhiwenshouzhangQuarterlyPlus'},
'MoMoShouZhang': {product_id: 'shunchangshouzhangQuarterlyPlus'},
'BuBuSZ': {product_id: 'quaVersion'},
'LingLongShouZ': {product_id: 'zhenwushouzhangPlusVersion'},
'Dart': {product_id: 'xyz.iofree.lifelog.pro.yearly'},
'Pixiu%E8%AE%B0%E8%B4%A6': {product_id: 'com.RuoG.Pixiu.VIPYear'},
'Lister': {product_id: 'com.productlab.lister.yearly'},
'Daylio': {product_id: 'net.daylio.one_year_pro'},
'Nutrilio': {product_id: 'net.nutrilio.one_year_plus'},
'YSBrowser': {product_id: 'com.ys.pro'},
'Metion': {product_id: 'org.zrey.metion.pro'},
'%E5%B0%8F%E6%97%A5%E5%B8%B8': {product_id: 'membership'},
'MoodTracker': {product_id: 'co.vulcanlabs.moodtracker.lifetime2'},
'Miary': {product_id: 'lifetime_sub'},
'Mindkit': {product_id: 'mindkit_yearly'},
'EnhanceFox': {product_id: 'com.risingcabbage.enhancefox.yearlysubscribewithtreetrial'},
};
var receipt = {
"quantity": "1",
"purchase_date_ms": "1686776705000",
"expires_date": "2099-12-31 05:05:05 Etc\/GMT",
"expires_date_pst": "2099-12-31 05:05:05 America\/Los_Angeles",
"is_in_intro_offer_period": "false",
"transaction_id": "999999999999999",
"is_trial_period": "false",
"original_transaction_id": "999999999999999",
"purchase_date": "2023-06-15 05:05:05 Etc\/GMT",
"product_id": "888888888888888",
"original_purchase_date_pst": "2023-06-15 05:05:05 America\/Los_Angeles",
"in_app_ownership_type": "PURCHASED",
"subscription_group_identifier": "20877951",
"original_purchase_date_ms": "1686776705000",
"web_order_line_item_id": "999999999999999",
"expires_date_ms": "4102347905000",
"purchase_date_pst": "2023-06-15 05:05:05 America\/Los_Angeles",
"original_purchase_date": "2023-06-15 05:05:05 Etc\/GMT"
}
var renewal = {
"expiration_intent": "1",
"product_id": "888888888888888",
"is_in_billing_retry_period": "0",
"auto_renew_product_id": "888888888888888",
"original_transaction_id": "999999999999999",
"auto_renew_status": "0"
}
for (var uaKey in uaProductMapping) {
if (UA && UA.includes(uaKey)) {
var productInfo = uaProductMapping[uaKey];
var product_id = productInfo.product_id;
receipt.product_id = product_id;
renewal.product_id = product_id;
renewal.auto_renew_product_id = product_id;
anni01.receipt.in_app = [receipt];
anni01.latest_receipt_info = [receipt];
anni.pending_renewal_info = [renewal];
break;
}
}
anni = anni01;
$done({ body: JSON.stringify(anni) });