shawenguan 1 год назад
Родитель
Сommit
0e934a6e6a
1 измененных файлов с 102 добавлено и 0 удалено
  1. 102 0
      Scripts/iTunes/iTunes.js

+ 102 - 0
Scripts/iTunes/iTunes.js

@@ -0,0 +1,102 @@
+/***********************************
+
+ > ScriptName        BuyiTunes多合一脚本[墨鱼版]
+ > Author            @ddgksf2013
+ > ForHelp           若有屏蔽广告的需求,可公众号后台回复APP名称
+ > WechatID          墨鱼手记
+ > TgChannel         https://t.me/ddgksf2021
+ > Contribute        https://t.me/ddgksf2013_bot
+ > Feedback          📮 [email protected] 📮
+ > UpdateTime        2024-02-19
+ > Suitable          自行观看“# > ”注释内容,解锁是暂时的,购买也不是永久的[订阅、跑路]
+ > Attention         如需引用请注明出处,谢谢合作!
+ > Attention         使用此脚本,会导致AppleStore无法切换账户,解决方法[关闭QX切换账户,或关闭MITM,或删除脚本,或去设置媒体与购买项目处切换ID]
+ > ScriptURL         https://gist.githubusercontent.com/ddgksf2013/9e0f6c7341beea09a31aa309d9d7f502/raw/buyitunes.js
+ ***********************************/
+/*
+iTunes多合一应用解锁
+
+[Script]
+# > iTunes多合一应用解锁
+^https?:\/\/xxx\.xxx\.xxx\.com url script-response-body https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/iTunes/iTunes.js
+
+[MITM]
+hostname = xxx.xxx.xxx.com
+
+*/
+
+let rspData = JSON.parse($response.body);
+
+// ========= 动态ID ========= //
+let productidmap = {
+    'default': ['ddgksf2013', 'https://t.me/ddgksf2021', 0],
+    'com.sugarmo.ScrollClip': ['picsewV3.9.4', 'com.sugarmo.ScrollClip.pro', 1],
+    'com.zijayrate.analogcam': ['oldroll', 'com.zijayrate.analogcam.vipforever10', 0],
+    'com.loveyouchenapps.knockout': ['proknockout', 'com.knockout.7daysplus', 0],
+    'net.shinyfrog.bear-iOS': ['bear', 'net.shinyfrog.bear_iOS.pro_yearly_subscription_bis', 0],
+    'com.yengshine.proccd': ['proccd', 'com.yengshine.proccd.year', 0],
+    'com.yumiteam.Kuki.ID': ['PicsLeap', 'com.yumiteam.Kuki.ID.4', 1],
+    'com.calc.iphone': ['Calculator', 'calc_Unlock_1', 0],
+    'me.imgbase.intolive': ['intolive', 'me.imgbase.intolive.proSubYearly', 0],
+    'MVH6DNU2ZP.input': ['logcg', 'com.logcg.loginput', 1],
+    'com.waterminder.waterminder': ['waterminder', 'waterminder.premiumYearly', 0],
+    'wtf.riedel.one-sec': ['onesec', 'wtf.riedel.one_sec.pro.annual.individual', 0],
+    'com.aaaalab.nepacket': ['http', 'com.li.blur.pro.month', 0],
+    'com.inturnex.Sticker-Maker': ['Sticker', 'com.inturnex.Sticker_Maker.full_access', 1],
+    'FuYuan.inkDiary': ['Secai', 'FuYuan.inkDiary.YearB.Pro', 0],
+    'me.imgbase.imgplay': ['imgplay', 'me.imgbase.imgplay.subscriptionYearly', 0],
+    'com.mediaeditor.video': ['PrettyUp', 'yearautorenew', 0],
+    'com.anycasesolutions.SexTracker': ['SexTracker', 'com.anycasesolutions.SexTracker.3mon', 0],
+    'com.jianili.pawff': ['pawff', 'com.jianili.pawff.pro.monthly', 0],
+    'icar.ren.smk': ['smk', 'smoke19870727', 0],
+    'com.meditation.heartratehrv': ['meditation', 'lifetimeusa', 1],
+    'livintis.com.wallpapermonster': ['wallpaper', 'wallpaperworld.subscription.yearly.12.notrial', 0],
+    'me.imgbase.videoday': ['videoday', 'me.imgbase.videoday.profeaturesYearly', 0],
+    'com.icandiapps.nightsky': ['nightsky', 'com.icandiapps.ns4.annual', 0]
+}
+
+// ========= 固定部分 ========= //
+rspData.Attention = "恭喜你抓到元数据!由墨鱼分享,请勿售卖或分享他人!";
+let mapid = rspData.receipt.bundle_id, mapping = productidmap[mapid] || productidmap.default;
+let inapp = {
+    product_id: mapping[1],
+    quantity: "1",
+    expires_date: "2099-12-18 23:59:59 Etc/GMT",
+    expires_date_pst: "2099-12-18 23:59:59 America/Los_Angeles",
+    expires_date_ms: "4101292799000",
+    is_in_intro_offer_period: "false",
+    transaction_id: "100000000000000",
+    is_trial_period: "false",
+    original_transaction_id: "100000000000000",
+    purchase_date_ms: "1701705599000",
+    purchase_date: "2023-12-04 23:59:59 Etc/GMT",
+    purchase_date_pst: "2023-12-04 23:59:59 America/Los_Angeles",
+    original_purchase_date: "2023-12-04 23:59:59 Etc/GMT",
+    original_purchase_date_pst: "2023-12-04 23:59:59 America/Los_Angeles",
+    original_purchase_date_ms: "1701705599000",
+    in_app_ownership_type: "PURCHASED",
+    web_order_line_item_id: "100000000000000"
+};
+let renew = {
+    product_id: mapping[1],
+    original_transaction_id: "100000000000000",
+    auto_renew_product_id: mapping[1],
+    auto_renew_status: "1"
+};
+
+if (mapping[2]) {
+    // 删除不必要的属性
+    delete inapp.expires_date;
+    delete inapp.expires_date_ms;
+    delete inapp.expires_date_pst;
+} else {
+    // 设置响应数据
+    rspData.latest_receipt_info = [inapp];
+    rspData.latest_receipt = "https://t.me/ddgksf2021";
+    rspData.pending_renewal_info = [renew];
+}
+// 更新 receipt 的 in_app 属性
+rspData.receipt.in_app = [inapp];
+
+// 完成请求并返回结果
+$done({ body: JSON.stringify(rspData) });