Skip to content

Commit

Permalink
Update various script data.
Browse files Browse the repository at this point in the history
  • Loading branch information
NobyDa committed Aug 17, 2023
1 parent 89e4dc6 commit f6cabc3
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 88 deletions.
8 changes: 4 additions & 4 deletions QuantumultX/File/Zymh.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
QuantumultX:
[rewrite_local]
^https:\/\/apigate\.zymk\.cn\/(zymk-getuserinfo-api\/v1\/getuserinfo|zymk-userpurchased-api\/v1\/userpurchased\/paychapters)\/ url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
^https:\/\/apigate\.kaimanhua\.com\/(zymk-getuserinfo-api\/v1\/getuserinfo|zymk-userpurchased-api\/v1\/userpurchased\/paychapters)\/ url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
[mitm]
hostname = apigate.zymk.cn
hostname = apigate.kaimanhua.com
***************************
Surge4 or Loon:
[Script]
http-response ^https:\/\/apigate\.zymk\.cn\/(zymk-getuserinfo-api\/v1\/getuserinfo|zymk-userpurchased-api\/v1\/userpurchased\/paychapters)\/ requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
http-response ^https:\/\/apigate\.kaimanhua\.com\/(zymk-getuserinfo-api\/v1\/getuserinfo|zymk-userpurchased-api\/v1\/userpurchased\/paychapters)\/ requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
[MITM]
hostname = apigate.zymk.cn
hostname = apigate.kaimanhua.com
**************************/

var obj = JSON.parse($response.body);
Expand Down
3 changes: 2 additions & 1 deletion QuantumultX/File/vsco.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************
Membership unlock for VSCO & 1Blocker
Membership unlock for VSCO & 1Blocker & HTTPBot
Please note that you may need to reinstall app for script to work.
QuantumultX rewrite link:
Expand All @@ -22,6 +22,7 @@ const resp = {};
const obj = JSON.parse(typeof $response != "undefined" && $response.body || null);
const ua = $request.headers['User-Agent'] || $request.headers['user-agent'];
const list = {
'HTTPBot': { name: 'rc_lifetime', id: 'com.behindtechlines.HTTPBot.prounlock' },
'VSCO': { name: 'membership', id: 'com.circles.fin.premium.yearly' },
'1Blocker': { name: 'premium', id: 'blocker.ios.subscription.yearly' }
};
Expand Down
99 changes: 44 additions & 55 deletions README.md
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Surge/JS/CamScanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ hostname = ap*.intsig.net
**************************/
let obj = JSON.parse($response.body);
obj = {"data":{"psnl_vip_property":{"expiry":"1687017600"}}};
obj = {"data":{"psnl_vip_property":{"expiry":"2013017600"}}};
$done({body: JSON.stringify(obj)});
46 changes: 41 additions & 5 deletions Surge/JS/PicsArt.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/*
PicsArt 解锁高级功能
数据来自 @chxm1023
***************************
QuantumultX:
[rewrite_local]
^https:\/\/api\.(picsart|meiease)\.c(n|om)\/users\/show\/me\.json url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/PicsArt.js
^https:\/\/api\.(picsart|meiease)\.c(n|om)\/shop\/subscription\/(validate|apple\/purchases) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/PicsArt.js
[mitm]
hostname = api.picsart.c*, api.meiease.c*
Expand All @@ -14,13 +15,48 @@ hostname = api.picsart.c*, api.meiease.c*
Surge4 or Loon:
[Script]
http-response https:\/\/api\.(picsart|meiease)\.c(n|om)\/users\/show\/me\.json requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/PicsArt.js
http-response ^https:\/\/api\.(picsart|meiease)\.c(n|om)\/shop\/subscription\/(validate|apple\/purchases) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/PicsArt.js
[MITM]
hostname = api.picsart.c*, api.meiease.c*
**************************/

let obj = JSON.parse($response.body);
obj.subscription.granted = "true";
$done({body: JSON.stringify(obj)});
$done({
body: JSON.stringify({
"status": "success",
"response": [
{
"status": "SUBSCRIPTION_PURCHASED",
"order_id": "490001314520000",
"original_order_id": "490001314520000",
"is_trial": true,
"plan_meta": {
"storage_limit_in_mb": 20480,
"frequency": "yearly",
"scope_id": "full",
"id": "com.picsart.editor.subscription_yearly",
"product_id": "subscription_yearly",
"level": 2000,
"auto_renew_product_id": "com.picsart.editor.subscription_yearly",
"type": "renewable",
"tier_id": "gold_old",
"permissions": [
"premium_tools_standard",
"premium_tools_ai"
],
"description": "china"
},
"limitation": {
"max_count": 5,
"limits_exceeded": false
},
"reason": "ok",
"subscription_id": "com.picsart.editor.subscription_yearly",
"is_eligible_for_introductory": false,
"purchase_date": 1687020148000,
"expire_date": 4092599349000
}
]
})
});
51 changes: 33 additions & 18 deletions Surge/JS/Polarr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
Polarr泼辣修图 解锁特权 (需恢复购买)
Polarr泼辣修图 解锁特权 (需登陆)
***************************
QuantumultX:
[rewrite_local]
^https:\/\/api\.polaxiong\.com\/v1\/payments\/appleiap\/receipts\/confirmation url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Polarr.js
^https:\/\/api\.polaxiong\.com\/v1\/payments\/(appleiap\/receipts\/confirmation|profiles\/@me\/subscription) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Polarr.js
[mitm]
hostname = api.polaxiong.com
Expand All @@ -14,27 +14,42 @@ hostname = api.polaxiong.com
Surge4 or Loon:
[Script]
http-response ^https:\/\/api\.polaxiong\.com\/v1\/payments\/appleiap\/receipts\/confirmation requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Polarr.js
http-response ^https:\/\/api\.polaxiong\.com\/v1\/payments\/(appleiap\/receipts\/confirmation|profiles\/@me\/subscription) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Polarr.js
[MITM]
hostname = api.polaxiong.com
**************************/

const sta = typeof $task !== "undefined" ? "HTTP/1.1 200 OK" : 200;
const res = $response;
const req = $request;

if (res.body && req.method == "PUT") {
$done({
body: JSON.stringify({
"app": "PPE",
"isUnlimited": true,
"membershipExpiryDate": "2028-06-06T08:00:00.000Z"
}),
status: sta,
headers: res.headers
const statusCode = typeof $task !== "undefined" ? "HTTP/1.1 200 OK" : 200;
const response = { status: statusCode, headers: $response.headers };

if ($response.body && $request.url.includes("v1/payments/profiles/@me/subscription")) {
response.body = JSON.stringify({
"isSubscribed": true,
"planId": "co.polarr.ppe.premium.studio.yearly",
"subscriptionProduct": "yearly",
"isTrial": false,
"app": "PPE",
"isUnlimited": true,
"expiryDate": "2053-08-17T19:38:37.000Z",
"planType": "yearly",
"planTier": "studio",
"startDate": "2023-08-17T19:38:37.000Z",
"subscriptionTier": "studio",
"paymentChannel": "AppleIapSubscription",
"membershipExpiryDate": "2053-08-17T19:38:37.000Z"
});
} else {
$done({});
}

if ($response.body && $request.url.includes("v1/payments/appleiap/receipts/confirmation")) {
response.body = JSON.stringify({
"app": "PPE",
"planType": "yearly",
"planTier": "studio",
"isUnlimited": true,
"membershipExpiryDate": "2053-08-17T19:38:37.000Z"
});
}

$done(response)
8 changes: 4 additions & 4 deletions Surge/JS/vivavideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
QuantumultX:
[rewrite_local]
^https:\/\/(xy-viva\.kakalili|api-chn.rthdo)\.com\/api\/rest\/u\/vipVerifyReceipt url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/vivavideo.js
^https:\/\/api-use\.intsvs\.com\/api\/rest\/u\/vipVerifyReceipt url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/vivavideo.js
[mitm]
hostname = xy-viva.kakalili.com, api-chn.rthdo.com
hostname = api-use.intsvs.com
***************************
Surge4 or Loon:
[Script]
http-response ^https:\/\/(xy-viva\.kakalili|api-chn.rthdo)\.com\/api\/rest\/u\/vipVerifyReceipt requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/vivavideo.js
http-response ^https:\/\/api-use\.intsvs\.com\/api\/rest\/u\/vipVerifyReceipt requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/vivavideo.js
[MITM]
hostname = xy-viva.kakalili.com, api-chn.rthdo.com
hostname = api-use.intsvs.com
**************************/

Expand Down

0 comments on commit f6cabc3

Please sign in to comment.