mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-22 08:28:25 +08:00
修改部分脚本持久化数据使用的Key
This commit is contained in:
parent
e95aba6609
commit
b1d5ad937d
File diff suppressed because one or more lines are too long
@ -20,10 +20,10 @@
|
||||
{
|
||||
"id": "blackmatrix7.bilibili",
|
||||
"name": "哔哩哔哩去广告",
|
||||
"keys": ["story_aid", "blackmatrix7_bilibili_feed_black"],
|
||||
"keys": ["bilibili_story_aid", "bilibili_feed_black"],
|
||||
"settings": [
|
||||
{
|
||||
"id": "blackmatrix7_bilibili_feed_black",
|
||||
"id": "bilibili_feed_black",
|
||||
"name": "首页UP主黑名单",
|
||||
"val": "",
|
||||
"type": "textarea",
|
||||
@ -108,7 +108,7 @@
|
||||
{
|
||||
"id": "blackmatrix7.famijia",
|
||||
"name": "Fa米家",
|
||||
"keys": ["famijia_checkin_cookie", "famijia_device_id_cookie", "famijia_black_box"],
|
||||
"keys": ["famijia_checkin_cookie", "famijia_device_id", "famijia_black_box"],
|
||||
"author": "@blackmatrix7",
|
||||
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/famijia",
|
||||
"icons": [
|
||||
@ -184,7 +184,7 @@
|
||||
{
|
||||
"id": "blackmatrix7.tieba",
|
||||
"name": "百度贴吧",
|
||||
"keys": ["tieba_cookie_key"],
|
||||
"keys": ["tieba_checkin_cookie"],
|
||||
"author": "@blackmatrix7",
|
||||
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/tieba",
|
||||
"icons": [
|
||||
@ -205,18 +205,6 @@
|
||||
],
|
||||
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/wanda/wanda_checkin.js"
|
||||
},
|
||||
{
|
||||
"id": "blackmatrix7.youpin",
|
||||
"name": "小米有品",
|
||||
"keys": ["youpin_checkin_cookie"],
|
||||
"author": "@blackmatrix7",
|
||||
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/youpin",
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/xiaomiyp.png",
|
||||
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/xiaomiyp.png"
|
||||
],
|
||||
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/youpin/youpin_checkin.js"
|
||||
},
|
||||
{
|
||||
"id": "blackmatrix7.zhihu",
|
||||
"name": "知乎助手",
|
||||
|
@ -6,7 +6,7 @@ const scirptName = '百度贴吧';
|
||||
const batchSize = 20;
|
||||
const retries = 5; // 签到失败重试次数
|
||||
const interval = 2000; // 每次重试间隔
|
||||
const tiebaCookieKey = 'tieba_cookie_key';
|
||||
const tiebaCookieKey = 'tieba_checkin_cookie';
|
||||
const tiebeGetCookieRegex = /https?:\/\/c\.tieba\.baidu\.com\/c\/s\/login/;
|
||||
let magicJS = MagicJS(scirptName, "INFO");
|
||||
magicJS.unifiedPushUrl = magicJS.read('tieba_unified_push_url') || magicJS.read('magicjs_unified_push_url');
|
||||
|
@ -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)});
|
Loading…
Reference in New Issue
Block a user