forked from enkiger/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVideoShow.js
115 lines (100 loc) · 2.96 KB
/
VideoShow.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
109
110
111
112
113
114
115
/*************************************
项目名称:录屏
下载地址:https://t.cn/A6pvVCrS
项目名称:大神P图
下载地址:https://t.cn/A6p7eiRM
项目名称:乐秀
下载地址:https://t.cn/A6p7XAT4
项目名称:多功能视频剪辑
下载地址:https://t.cn/A6p7XyPT
脚本作者:chxm1023
电报频道:https://t.me/chxm1023
使用声明:⚠️仅供参考,🈲转载与售卖!
**************************************
[rewrite_local]
^https?:\/\/.*\.(videoshowiosglobalserver|enjoy-mobi)\.com\/zone\/.+\/(iosPayClient\/(payVerify|imeiVerify)|startPageAd\/getAds) url script-response-body https://raw.githubusercontent.com/chxm1023/Rewrite/main/VideoShow.js
[mitm]
hostname = *.videoshowiosglobalserver.com, *.enjoy-mobi.com
*************************************/
var chxm1023 = JSON.parse($response.body);
const ua = $request.headers['User-Agent'] || $request.headers['user-agent'];
const ad = '/startPageAd/getAds';
const vipa = '/payVerify';
const vipb = '/imeiVerify';
//去除乐秀开屏
if ($request.url.indexOf(ad) != -1){
chxm1023 = {};
}
//录屏
if (ua.indexOf('录屏') != -1) {
vip_id = "vrecorder_vip_yearly_3";
purchase = "2023-05-20 13:14:05 Etc/GMT";
expires = "2099-09-09 09:09:09 Etc/GMT";
}
//大神P图
if (ua.indexOf('magicut_US') != -1) {
vip_id = "mg_vip_year";
purchase = "2023-05-20 13:14:05";
expires = "2099-09-09 09:09:09";
}
//乐秀
if (ua.indexOf('VideoShow') != -1) {
vip_id = "vip_privilege_yearly_3";
purchase = "2023-05-20 13:14:05";
expires = "2099-09-09 09:09:09";
}
//多功能视频剪辑
if (ua.indexOf('多功能视频剪辑') != -1) {
vip_id = "vip_yearly_3";
purchase = "2023-05-20 13:14:05";
expires = "2099-09-09 09:09:09";
}
//会员信息
if ($request.url.indexOf(vipa) != -1){
chxm1023 = {
"expires_date" : (expires),
"isBlacklist" : "0",
"retCode" : "1",
"status" : "0",
"transaction_id" : "310001314520000",
"retMsg" : "success",
"isRepeatBind" : "0",
"isUsedPromocode" : "0",
"subscrib_type" : "2",
"current_date" : "2023-05-20 13:14:00",
"isReportPrice" : "0",
"product_id" : (vip_id),
"purchase_date" : (purchase),
"original_transaction_id" : "310001314520000",
"cancellation_date" : "",
"promotional_offer_id" : "",
"recallLabelType" : "0",
"is_in_intro_offer_period" : "false",
"msg" : "验证成功",
"is_trial_period" : "true"
};}
if ($request.url.indexOf(vipb) != -1){
chxm1023 = {
"subscrib_type" : "2",
"retCode" : 1,
"current_date" : "2023-05-20 13:14:00",
"isUpdateUuid" : 0,
"retMsg" : "success",
"isUsedPromocode" : 0,
"isDiscount" : 1,
"product_id" : (vip_id),
"renew_status" : 0,
"label_type" : 0,
"list" : [
{
"current_date" : "2023-05-20 13:14:00",
"original_transaction_id" : "310001314520000",
"order_status" : 1,
"product_id" : (vip_id),
"purchase_date" : (purchase),
"expires_date" : (expires)
}
],
"recallLabelType" : 0
};}
$done({body : JSON.stringify(chxm1023)});