mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2025-10-25 18:52:14 +00:00
修改部分脚本持久化数据使用的Key
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# 数据源
|
||||
|
||||
本目录下所有文件仅作爬虫程序数据源使用,请勿直接引用本目录下的任何文件。
|
||||
本目录下所有文件仅为程序生成规则使用,请勿直接引用任何文件。
|
||||
@@ -1,13 +0,0 @@
|
||||
/*
|
||||
利用 GitHub Education 解锁 Working Copy
|
||||
|
||||
启用此脚本后再 Safari 打开 https://workingcopy.app/education/ 点击「tap here to access all pro features.」中的 here 跳转到 Working Copy,登录自己的 GitHub 账号即可解锁
|
||||
|
||||
http-response ^https:\/\/education\.github\.com\/api\/user$ requires-body=1,max-size=0,script-path=scripts/WorkingCopy.js
|
||||
|
||||
MitM = education.github.com
|
||||
|
||||
作者 @ImSingee,请勿外传
|
||||
*/
|
||||
|
||||
$done({body: '{"student": true}'})
|
||||
@@ -1,23 +0,0 @@
|
||||
var body = $response.body;
|
||||
var url = $request.url;
|
||||
|
||||
const path1 = '/api/subscriptions/2.1/user-subscriptions/';
|
||||
|
||||
let obj = JSON.parse(body);
|
||||
|
||||
if (url.indexOf(path1) != -1) {
|
||||
obj.user_subscription["expires_on_sec"] = 1655536094;
|
||||
obj.user_subscription["expired"] = false;
|
||||
obj.user_subscription["payment_type"] = 2;
|
||||
obj.user_subscription["is_trial_period"] = true;
|
||||
obj.user_subscription["starts_on_sec"] = 1560831070;
|
||||
obj.user_subscription["is_active"] = true;
|
||||
obj.user_subscription["auto_renew"] = true;
|
||||
obj.user_subscription["last_verified_sec"] = 1560831070;
|
||||
obj.user_subscription["subscription_code"] = "VSCOANNUAL";
|
||||
obj.user_subscription["user_id"] = 54624336;
|
||||
obj.user_subscription["source"] = 1;
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
$done({body});
|
||||
@@ -1,43 +0,0 @@
|
||||
/*
|
||||
克拉壁纸解锁付费壁纸
|
||||
|
||||
Surge4:
|
||||
http-response ^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) requires-body=1,max-size=262144,script-path=resources/js/clarity.js
|
||||
QX:
|
||||
^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) url script-response-body clarity.js
|
||||
|
||||
Surge & QX MITM = claritywallpaper.com
|
||||
*/
|
||||
/*
|
||||
克拉壁纸解锁付费壁纸
|
||||
|
||||
Surge4:
|
||||
http-response ^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) requires-body=1,max-size=262144,script-path=resources/js/clarity.js
|
||||
QX:
|
||||
^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) url script-response-body clarity.js
|
||||
|
||||
Surge & QX MITM = claritywallpaper.com
|
||||
*/
|
||||
|
||||
var body = $response.body;
|
||||
var url = $request.url;
|
||||
var obj = JSON.parse(body);
|
||||
|
||||
const userinfo = '/userInfo';
|
||||
|
||||
const setfree = '/special/queryByCatalogAll';
|
||||
|
||||
if (url.indexOf(setfree) != -1) {
|
||||
for (var i = 0; i < obj.data.length; i++) {
|
||||
obj.data[i].isFree = true;
|
||||
}
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
if (url.indexOf(userinfo) != -1) {
|
||||
obj.data.level = 5;
|
||||
obj.data.expireTime = 4070965662;
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
$done({body});
|
||||
@@ -1,8 +0,0 @@
|
||||
/*
|
||||
不背单词解锁装备 @Ljm666888
|
||||
https://sapi.beingfine.cn/v3/report/launch/
|
||||
不背单词解锁装备 = type=http-response,pattern=^https:\/\/sapi\.beingfine\.cn\/v3\/report\/launch\/,requires-body=1,max-size=0,script-path=bubei.js,
|
||||
*/
|
||||
let obj = JSON.parse($response.body);
|
||||
obj.data_body = obj.data_body.replace(/expire_date":\d+/g, 'expire_date":1884436316000').replace(/granted":\d+/g, 'granted":1').replace(/user_type":\d+/g, 'user_type":3').replace(/collins_user_type":\d+/g, 'collins_user_type":3');
|
||||
$done({body: JSON.stringify(obj)});
|
||||
Reference in New Issue
Block a user