🚫 refac: 优化并去除无用文件

This commit is contained in:
SVE1R 2024-01-14 19:49:51 +08:00
parent 83b0bdc583
commit 44b9ee9c44
4 changed files with 1 additions and 420 deletions

View File

@ -1,5 +1,6 @@
##############################
# 图图记账解锁
# LastUpdateDate: 2024-01-14 19:01:02
##############################
hostname=api.revenuecat.com

View File

@ -1,8 +0,0 @@
let body = JSON.parse($response.body)
let pro = body["mobileProfile"];
pro["profileStatus"] = "PROFILE_AVAILABLE";
pro["legacyProfile"] = "{}";
pro["relationshipProfile"] = "[]";
$done({
body: JSON.stringify(body)
});

View File

@ -1,255 +0,0 @@
const path1 = "/x/resource/show/tab?access_key";
const path2 = "/x/v2/feed/index?access_key";
const path3 = "/x/v2/account/mine?access_key";
const path4 = "/x/v2/view?access_key";
const path5 = "/x/v2/view/material?access_key";
const path6 = "/x/v2/reply/main?access_key";
const path7 = "/x/v2/rank?access_key";
const path8 = "/x/v2/show/popular/index";
const path9 = "/xlive/app-room/v1/index/getInfoByRoom?access_key";
const path10 = "/x/v2/account/teenagers/status?access_key";
const path11 = "/x/v2/account/mine/ipad?access_key";
let url = $request.url;
let body = JSON.parse($response.body);
if (url.indexOf(path1) != -1) {
body.data.tab = [{
"id": 39,
"name": "直播",
"uri": "bilibili://live/home",
"tab_id": "直播tab",
"pos": 1
},
{
"id": 40,
"name": "推荐",
"uri": "bilibili://pegasus/promo",
"tab_id": "推荐tab",
"pos": 2,
"default_selected": 1
},
{
"id": 41,
"name": "热门",
"uri": "bilibili://pegasus/hottopic",
"tab_id": "热门tab",
"pos": 3
},
{
"id": 42,
"name": "追番",
"uri": "bilibili://pgc/home",
"tab_id": "追番Tab",
"pos": 4
},
{
"id": 151,
"name": "影视",
"uri": "bilibili://pgc/cinema-tab",
"tab_id": "影视tab",
"pos": 5,
},
]
body.data.top = [{
"id": 176,
"icon": "http://i0.hdslb.com/bfs/archive/d43047538e72c9ed8fd8e4e34415fbe3a4f632cb.png",
"name": "消息",
"uri": "bilibili://link/im_home",
"tab_id": "消息Top",
"pos": 1
}]
body.data.bottom = [{
"id": 177,
"icon": "http://i0.hdslb.com/bfs/archive/63d7ee88d471786c1af45af86e8cb7f607edf91b.png",
"icon_selected": "http://i0.hdslb.com/bfs/archive/e5106aa688dc729e7f0eafcbb80317feb54a43bd.png",
"name": "首页",
"uri": "bilibili://main/home/",
"tab_id": "首页Bottom",
"pos": 1
},
{
"id": 178,
"icon": "http://i0.hdslb.com/bfs/archive/9c453a54eb83f5140cd098bf2e8ed8a599edc7fe.png",
"icon_selected": "http://i0.hdslb.com/bfs/archive/79d29e6ac3b6e52652881b050e63988e2038130f.png",
"name": "频道",
"uri": "bilibili://pegasus/channel/",
"tab_id": "频道Bottom",
"pos": 2
},
{
"id": 179,
"icon": "http://i0.hdslb.com/bfs/archive/86dfbe5fa32f11a8588b9ae0fccb77d3c27cedf6.png",
"icon_selected": "http://i0.hdslb.com/bfs/archive/25b658e1f6b6da57eecba328556101dbdcb4b53f.png",
"name": "动态",
"uri": "bilibili://following/home/",
"tab_id": "动态Bottom",
"pos": 3
},
{
"id": 181,
"icon": "http://i0.hdslb.com/bfs/archive/4b0b2c49ffeb4f0c2e6a4cceebeef0aab1c53fe1.png",
"icon_selected": "http://i0.hdslb.com/bfs/archive/a54a8009116cb896e64ef14dcf50e5cade401e00.png",
"name": "我的",
"uri": "bilibili://user_center/",
"tab_id": "我的Bottom",
"pos": 4
}
]
}
if (url.indexOf(path2) != -1) {
let blacklist = [];
body.data.items = body.data.items.filter(function(item) {
if (['ad_web_s', 'ad_web', 'live', 'banner', 'search_subscribe'].includes(item.card_goto)) {
return false;
}
if (item.hasOwnProperty('ad_info')) {
return false;
}
if (blacklist.includes(item.args.up_name)) {
return false;
}
if (blacklist.includes(item.args.rname)) {
return false;
}
for (let word of blacklist) {
if (item.title.indexOf(word) != -1) {
return false;
}
}
return true;
});
}
if (url.indexOf(path3) != -1) {
body.data.sections = [{
"title": "个人中心",
"items": [{
"title": "历史记录",
"icon": "http://i0.hdslb.com/bfs/archive/ae502b4b69b6a3b287ea59b1552859332e59c277.png",
"uri": "bilibili://user_center/history"
},
{
"title": "我的收藏",
"icon": "http://i0.hdslb.com/bfs/archive/1e6b0583257a086f40779c10ad7e2fcd72984463.png",
"uri": "bilibili://user_center/favourite"
},
{
"title": "稍后再看",
"icon": "http://i0.hdslb.com/bfs/archive/56893a05f41d7c503f7f1f5b67e9ee2add8581fa.png",
"uri": "bilibili://user_center/watch_later"
},
{
"title": "创作首页",
"icon": "http://i0.hdslb.com/bfs/archive/d3aad2d07538d2d43805f1fa14a412d7a45cc861.png",
"uri": "bilibili://uper/homevc"
},
{
"title": "投稿",
"icon": "http://i0.hdslb.com/bfs/archive/86a8fdc40f4a5842d9b6454dead1f049db64ffc5.png",
"uri": "/uper/user_center/add_archive"
}
]
}]
}
if (url.indexOf(path4) != -1) {
if (body.data.hasOwnProperty('relates')) {
body.data.relates = body.data.relates.filter(function(item) {
if (item.hasOwnProperty('is_ad')) {
return false;
}
return true;
});
}
delete body.data.cms;
}
if (url.indexOf(path5) != -1) {
body.data = null;
}
if (url.indexOf(path6) != -1) {
if (body.hasOwnProperty('data')) {
delete body.data.notice;
}
}
if (url.indexOf(path7) != -1) {
let blacklist = [];
body.data = body.data.filter(function(item) {
if (blacklist.includes(item.name)) {
return false;
}
return true;
});
}
if (url.indexOf(path8) != -1) {
let blacklist = [];
body.data = body.data.filter(function(item) {
if (blacklist.includes(item.right_desc_1) || item.card_type !== "small_cover_v5") {
return false;
}
return true;
});
}
if (url.indexOf(path9) != -1) {
body.data.activity_banner_info = null;
}
if (url.indexOf(path10) != -1) {
body.data.teenagers_status = 0;
}
if (url.indexOf(path11) != -1) {
body.data.ipad_upper_sections = [{
"title": "投稿",
"icon": "http://i0.hdslb.com/bfs/archive/86a8fdc40f4a5842d9b6454dead1f049db64ffc5.png",
"uri": "/uper/user_center/add_archive"
},
{
"title": "稿件管理",
"icon": "http://i0.hdslb.com/bfs/archive/eec4a9f65dad19b5e92130d236ba3bf46248309e.png",
"uri": "/uper/user_center/archive_list"
},
{
"title": "创作中心",
"icon": "http://i0.hdslb.com/bfs/archive/f4da9a7940d29f6b01676b039f685053f77615fd.png",
"uri": "/uper/homevc"
}
];
body.data.ipad_sections = [{
"title": "历史记录",
"icon": "http://i0.hdslb.com/bfs/archive/cdfb36f4835f3f09f8c9d2fef20c025c84d96a66.png",
"uri": "bilibili://user_center/history"
},
{
"title": "我的收藏",
"icon": "http://i0.hdslb.com/bfs/archive/a1a5aa50956e0c7d75f6f89bb4b93da340bf4a0d.png",
"uri": "bilibili://user_center/favourite"
},
{
"title": "稍后再看",
"icon": "http://i0.hdslb.com/bfs/archive/3fa793dda7a6236d03cf0dec8507bbffe1d4e8ae.png",
"uri": "bilibili://user_center/watch_later"
},
{
"title": "我的消息",
"icon": "http://i0.hdslb.com/bfs/archive/b2b4e1c010ea57cfe600c312b11c2909d77b46f1.png",
"uri": "bilibili://link/im_home"
},
{
"title": "设置",
"icon": "http://i0.hdslb.com/bfs/archive/3aa6fa00d4718be2a9a4f0c608ea04ddb7407d15.png",
"uri": "bilibili://user_center/setting"
}
]
}
$done({
body: JSON.stringify(body)
});

View File

@ -1,157 +0,0 @@
/*
*
*
脚本功能Notability解锁订阅
软件版本11.0.6
软件下载http://t.cn/A6xzJTcN
脚本作者Hausd0rff
更新时间2021.11.26
电报频道https://t.me/yqc_123
问题反馈https://t.me/yqc_007
使用声明此脚本仅供学习与交流
请勿转载与贩卖
******************************
[rewrite_local]
# Notability解锁订阅
^https?:\/\/notability\.com\/subscriptions url script-response-body https://raw.githubusercontent.com/yqc007/QuantumultX/master/NotabilityProCrack.js
[mitm]
hostname = notability.com
*
*
*/
;
var encode_version = 'jsjiami.com.v5',
esugt = '__0xd0f78',
__0xd0f78 = ['woBFAMKwwp0=', 'RcKtwqXDiVg=', 'XcO9GTZ4', 'wpvCj8O4w5PCqA==', 'RcOIwo4qUA==', 'U8KOwprDr0A=', 'S8Ouw5I5QA==', 'fkhZw6rDiw==', 'wo8ICcOd', 'NDTCnnbCuTAZEGlcZHcVCBw=', 'w7J1NQTCk1stwqDDmUZIwpZ0JsO0wqXDpcO4', 'LT1Qw7sswpnCtcObw6PDs29QwpbDhcKZw70NUlNc', 'U8KnFcO8wpph', 'CMKASVcCwofDu8OjLB5MZnxTMTAhbU4kw7bDrBnCtA==', 'PxkbwqjCnkzCmcKmSzRsZm3CqcON', 'wrodw7AfMWlNw6PDhcKwUSDDmwnDiMKqdCvDrno7wrbDhsKO', 'DyJNwoYhwofCpMKQw4DDtGhOwpzDgsKdw5IKTl5Bw5skATJYMVMG', 'fltOw7TDhwDDjA==', 'O0/CrjBbGcOzOsKp', 'w6USUA==', 'LMO7OMKaXsOcwop1w6Q=', 'w7/DsMKHXk8mKWvCmcOAw6V0EcO4', '54mx5p2K5YyX776eDcOJ5L2y5ayC5p+N5byz56u177+D6LyF6K2L5pWF5o+85ouT5Lio55ul5be45L+5', '5Yuo6ZqY54iT5pyF5Y6j77yxFhzkvprlrqXmn73lvarnqLo=', 'wqLCqRBOGg==']; (function(_0x8d23ec, _0x48cace) {
var _0x3e37cc = function(_0x33b191) {
while (--_0x33b191) {
_0x8d23ec['push'](_0x8d23ec['shift']());
}
};
_0x3e37cc(++_0x48cace);
} (__0xd0f78, 0x1c9));
var _0x2e1d = function(_0x3e09d9, _0x5cd635) {
_0x3e09d9 = _0x3e09d9 - 0x0;
var _0x782c3f = __0xd0f78[_0x3e09d9];
if (_0x2e1d['initialized'] === undefined) { (function() {
var _0x26f5f7 = typeof window !== 'undefined' ? window: typeof process === 'object' && typeof require === 'function' && typeof global === 'object' ? global: this;
var _0x3d7572 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
_0x26f5f7['atob'] || (_0x26f5f7['atob'] = function(_0xb2ec41) {
var _0x431f88 = String(_0xb2ec41)['replace'](/=+$/, '');
for (var _0x56695f = 0x0,
_0x46858c, _0x1b4c7f, _0x484776 = 0x0,
_0x5100af = ''; _0x1b4c7f = _0x431f88['charAt'](_0x484776++);~_0x1b4c7f && (_0x46858c = _0x56695f % 0x4 ? _0x46858c * 0x40 + _0x1b4c7f: _0x1b4c7f, _0x56695f++%0x4) ? _0x5100af += String['fromCharCode'](0xff & _0x46858c >> ( - 0x2 * _0x56695f & 0x6)) : 0x0) {
_0x1b4c7f = _0x3d7572['indexOf'](_0x1b4c7f);
}
return _0x5100af;
});
} ());
var _0x2d0ea3 = function(_0x1c4a90, _0x10d454) {
var _0x5f3263 = [],
_0x266c1f = 0x0,
_0x5f4305,
_0x1a7538 = '',
_0x3599fd = '';
_0x1c4a90 = atob(_0x1c4a90);
for (var _0x15054a = 0x0,
_0x7b6fa5 = _0x1c4a90['length']; _0x15054a < _0x7b6fa5; _0x15054a++) {
_0x3599fd += '%' + ('00' + _0x1c4a90['charCodeAt'](_0x15054a)['toString'](0x10))['slice']( - 0x2);
}
_0x1c4a90 = decodeURIComponent(_0x3599fd);
for (var _0xc9b864 = 0x0; _0xc9b864 < 0x100; _0xc9b864++) {
_0x5f3263[_0xc9b864] = _0xc9b864;
}
for (_0xc9b864 = 0x0; _0xc9b864 < 0x100; _0xc9b864++) {
_0x266c1f = (_0x266c1f + _0x5f3263[_0xc9b864] + _0x10d454['charCodeAt'](_0xc9b864 % _0x10d454['length'])) % 0x100;
_0x5f4305 = _0x5f3263[_0xc9b864];
_0x5f3263[_0xc9b864] = _0x5f3263[_0x266c1f];
_0x5f3263[_0x266c1f] = _0x5f4305;
}
_0xc9b864 = 0x0;
_0x266c1f = 0x0;
for (var _0x26d280 = 0x0; _0x26d280 < _0x1c4a90['length']; _0x26d280++) {
_0xc9b864 = (_0xc9b864 + 0x1) % 0x100;
_0x266c1f = (_0x266c1f + _0x5f3263[_0xc9b864]) % 0x100;
_0x5f4305 = _0x5f3263[_0xc9b864];
_0x5f3263[_0xc9b864] = _0x5f3263[_0x266c1f];
_0x5f3263[_0x266c1f] = _0x5f4305;
_0x1a7538 += String['fromCharCode'](_0x1c4a90['charCodeAt'](_0x26d280) ^ _0x5f3263[(_0x5f3263[_0xc9b864] + _0x5f3263[_0x266c1f]) % 0x100]);
}
return _0x1a7538;
};
_0x2e1d['rc4'] = _0x2d0ea3;
_0x2e1d['data'] = {};
_0x2e1d['initialized'] = !![];
}
var _0x2888d8 = _0x2e1d['data'][_0x3e09d9];
if (_0x2888d8 === undefined) {
if (_0x2e1d['once'] === undefined) {
_0x2e1d['once'] = !![];
}
_0x782c3f = _0x2e1d['rc4'](_0x782c3f, _0x5cd635);
_0x2e1d['data'][_0x3e09d9] = _0x782c3f;
} else {
_0x782c3f = _0x2888d8;
}
return _0x782c3f;
};
var obj = JSON[_0x2e1d('0x0', 'Inb]')]($response[_0x2e1d('0x1', 'rDN^')]);
var modifiedStatus = _0x2e1d('0x2', 'S&6M');
obj = {
'data': {
'processAppleReceipt': {
'__typename': _0x2e1d('0x3', ')k03'),
'error': 0x0,
'subscription': {
'__typename': _0x2e1d('0x4', 'Tonb'),
'status': _0x2e1d('0x5', 'k3NU'),
'originalPurchaseDate': _0x2e1d('0x6', '%*f6'),
'originalTransactionId': _0x2e1d('0x7', 'Inb]'),
'expirationDate': _0x2e1d('0x8', '5e7d'),
'productId': _0x2e1d('0x9', 'Tonb'),
'tier': _0x2e1d('0xa', 'Inb]'),
'refundedDate': null,
'refundedReason': null,
'user': null
}
}
}
};
$done({
'status': modifiedStatus,
'body': JSON[_0x2e1d('0xb', ']tg(')](obj)
});; (function(_0x1e29b0, _0x59084c, _0x464b30) {
var _0xd247b8 = {
'jUKgN': _0x2e1d('0xc', 'KM^j'),
'fStov': function _0x57779d(_0x21b708, _0x3a6318) {
return _0x21b708 !== _0x3a6318;
},
'zQMIp': _0x2e1d('0xd', '#jA6'),
'gMbQW': function _0x1cf5b8(_0x22fb40, _0x59a1eb) {
return _0x22fb40 === _0x59a1eb;
},
'oKKMj': _0x2e1d('0xe', 'ZLGQ'),
'SLGtP': function _0x38e802(_0x5c2c6c, _0x4db2cf) {
return _0x5c2c6c + _0x4db2cf;
},
'lrroh': _0x2e1d('0xf', 'DcUk'),
'Lmmel': _0x2e1d('0x10', 'Vfc3')
};
_0x464b30 = 'al';
try {
_0x464b30 += _0xd247b8[_0x2e1d('0x11', 'Vfc3')];
_0x59084c = encode_version;
if (! (_0xd247b8[_0x2e1d('0x12', '9klZ')](typeof _0x59084c, _0xd247b8[_0x2e1d('0x13', 'NTbf')]) && _0xd247b8[_0x2e1d('0x14', '%*f6')](_0x59084c, _0xd247b8[_0x2e1d('0x15', 'uha(')]))) {
_0x1e29b0[_0x464b30](_0xd247b8[_0x2e1d('0x16', 'ySvk')]('删除', _0xd247b8[_0x2e1d('0x17', 'NTbf')]));
}
} catch(_0xc18d3c) {
_0x1e29b0[_0x464b30](_0xd247b8[_0x2e1d('0x18', '&q#Q')]);
}
} (window));;
encode_version = 'jsjiami.com.v5';