-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/************************************* | ||
项目名称:彩云天气-净化/解锁SVIP | ||
下载地址:https://t.cn/A66d95hV | ||
更新日期:2024-04-12 | ||
脚本作者:chxm1023 | ||
电报频道:https://t.me/chxm1023 | ||
使用声明:⚠️仅供参考,🈲转载与售卖! | ||
************************************** | ||
[rewrite_local] | ||
^https?:\/\/(biz|wrapper|starplucker)\.(cyapi|caiyunapp)\.(cn|com)\/(.+\/(user\?app_name|activity\?app_name|visitors|operation\/banners|operation\/homefeatures|config)|p\/v\d\/(vip_info|user_info|entries|privileges|trial_card\/info)) url script-response-body https://raw.githubusercontent.com/chxm1023/Rewrite/main/caiyuntianqi.js | ||
^https?:\/\/(api|wrapper)\.(cyapi|caiyunapp)\.(cn|com)\/v\d\/(satellite|nafp\/origin_images) url script-request-header https://raw.githubusercontent.com/chxm1023/Rewrite/main/caiyuntianqi.js | ||
[mitm] | ||
hostname = *.cyapi.cn, *.caiyunapp.com | ||
*************************************/ | ||
|
||
|
||
const chxm1024 = {}; | ||
const chxm1023 = JSON.parse(typeof $response != "undefined" && $response.body || null); | ||
const url = $request.url; | ||
const adUrl = /(activity\?app_name|operation\/banners)/; | ||
const tcUrl = /conditions/; | ||
const vipUrl = /https:\/\/biz\.(cyapi\.cn|caiyunapp\.com)\/p\/v\d\/vip_info/; | ||
const userUrl = /https:\/\/biz\.(cyapi\.cn|caiyunapp\.com)\/v\d\/user\?app_name/; | ||
const syUrl = /trial_card\/info/; | ||
const qyUrl = /entries/; | ||
const peUrl = /privileges/; | ||
const topUrl = /operation\/homefeatures/; | ||
|
||
if (typeof $response == "undefined") { | ||
chxm1024.headers = $request.headers; | ||
chxm1024.headers['device-token'] = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uIjoiNjViYzc1NzAwYTBkNTYwMDFiZmJkODhjIiwidXNlcl9pZCI6IjVmODNhMDY3MTk5NzZmMDAxNWEyNTRiNiIsInZlcnNpb24iOjIsImV4cCI6MTcwOTQ4MjAwMCwidmlwX2V4cGlyZWRfYXQiOjAsImlzcyI6IndlYXRoZXIiLCJpYXQiOjE3MDY4OTAwMDAsInN2aXBfZXhwaXJlZF9hdCI6MTcxNDMyMTgxMiwicHJpbWFyeSI6dHJ1ZX0.v41eOWgj4FmMMYLygupRLeE2hC8KW_HltSsdFk03oP4'; | ||
} else { | ||
switch (true) { | ||
case adUrl.test(url): | ||
chxm1023.status = "ok"; | ||
chxm1023.activities = [{"items":[{}]}]; | ||
chxm1023.data = []; | ||
break; | ||
case tcUrl.test(url): | ||
chxm1023.actions = []; | ||
chxm1023.popups = []; | ||
break; | ||
case vipUrl.test(url): | ||
chxm1023.vip = { ...chxm1023.vip, | ||
"expires_time" : "4092599349", "is_auto_renewal" : true }; | ||
chxm1023.svip = { ...chxm1023.svip, "expires_time" : "4092599349", "is_auto_renewal" : true }; | ||
chxm1023.show_upcoming_renewal = false; | ||
break; | ||
case userUrl.test(url): | ||
chxm1023.result = { ...chxm1023.result, is_vip: true, vip_expired_at: 4092599349, svip_given: 1, is_xy_vip: true, xy_svip_expire: 4092599349, wt: { ...chxm1023.result.wt, vip: { ...chxm1023.result.wt.vip, "expired_at" : 0, "enabled" : true, "svip_apple_expired_at" : 4092599349, "is_auto_renewal" : true, "svip_expired_at" : 4092599349 }, svip_given: 1, }, is_phone_verified: true, vip_take_effect: 1, is_primary: true, xy_vip_expire: 4092599349, svip_expired_at: 4092599349, svip_take_effect: 1, vip_type: "s", }; | ||
break; | ||
case syUrl.test(url): | ||
chxm1023.receive_status = 0; | ||
chxm1023.vip_type = "svip"; | ||
chxm1023.activated_at = 1712600671; | ||
chxm1023.vip_duration = "999"; | ||
chxm1023.expired_at = 4092599349; | ||
chxm1023.has_valid_card = 0; | ||
break; | ||
case qyUrl.test(url): | ||
chxm1023["entries"] = [{ "url" : "https://t.me/chxm1023", "id" : 1, "name" : "叮当猫", "type" : 1, "pos" : 2 }]; | ||
break; | ||
case peUrl.test(url): | ||
chxm1023["privileges"] = [{ "vip_type" : "svip", "subscription_chat_quota" : 999 }]; | ||
break; | ||
case topUrl.test(url): | ||
chxm1023["data"] = [{ "badge_type" : "", "title" : "叮当猫", "url" : "https://t.me/chxm1023", "feature_type" : "", "avatar" : "https://raw.githubusercontent.com/chxm1023/Script_X/main/icon/ddm2.png" },...chxm1023.data]; | ||
break; | ||
} | ||
chxm1024.body = JSON.stringify(chxm1023); | ||
} | ||
|
||
$done(chxm1024); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!name = 彩云天气 | ||
#!desc = 净化/解锁SVIP | ||
#!openurl = https://apps.apple.com/app/id847764912 | ||
#!author = | ||
#!homepage = | ||
#!icon = https://is1-ssl.mzstatic.com/image/thumb/Purple122/v4/98/fb/25/98fb2542-9ba0-a9fa-a30e-9cc722190dcc/AppIcon-pro-0-1x_U007emarketing-0-7-0-0-85-220-0.png/512x512bb.png | ||
#!date = | ||
|
||
[URL Rewrite] | ||
# 彩云天气广告 | ||
^https?:\/\/ad\.(caiyunapp|cyapi)\.(cn|com) - reject | ||
^http:\/\/adx\.sogaha\.cn\/sdk\/ad\/get - reject-200 | ||
|
||
[Script] | ||
http-response ^https?:\/\/(biz|wrapper|starplucker)\.(cyapi|caiyunapp)\.(cn|com)\/(.+\/(user\?app_name|activity\?app_name|visitors|operation\/banners)|p\/v\d\/(vip_info|user_info)) script-path=https://raw.githubusercontent.com/chxm1023/Rewrite/main/caiyuntianqi.js, requires-body=true, tag=彩云天气-SVIP会员 | ||
http-request ^https?:\/\/(api|wrapper)\.(cyapi|caiyunapp)\.(cn|com)\/v\d\/(satellite|nafp\/origin_images) script-path=https://raw.githubusercontent.com/chxm1023/Rewrite/main/caiyuntianqi.js, requires-body=false, tag=彩云天气-SVIP地图 | ||
|
||
[MITM] | ||
hostname = *.cyapi.cn, *.caiyunapp.com, adx.sogaha.cn |