Skip to content

Commit 2c6bb2a

Browse files
author
cl0925
committed
115lx.js
1 parent a862a38 commit 2c6bb2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3762
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!/Lightroom-2.js
2+

10010qx.js

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
var tel = "16620042889";
2+
//上行引号内填入联通号码,使用前请登陆一次联通支付宝小程序
3+
//有问题请通过Telegram反馈 https://t.me/Leped_Bot
4+
var remainTime = "-";
5+
var remainFee = "-";
6+
var remainFlow = "-";
7+
var queryTime = "-";
8+
9+
function get_basic(tel) {
10+
console.log("get_basic")
11+
let basicurl = {
12+
url: "https://mina.10010.com/wxapplet/bind/getIndexData/alipay/alipaymini?user_id=" + tel,
13+
headers: {},
14+
};
15+
$task.fetch(basicurl).then(response => {
16+
console.log(response.body)
17+
var obj = JSON.parse(response.body);
18+
remainFee = obj.dataList[0].number;
19+
remainTime = obj.dataList[2].number;
20+
get_detail(remainFee, remainTime, tel)
21+
}, reason => {
22+
$notify("10010", tel + '登录失败', reason.error);
23+
});
24+
}
25+
26+
function get_detail(remainFee, remainTime, tel) {
27+
let used = [0, 0, 0];
28+
let quota = [1, 1, 1];
29+
let remain = [1, 1, 1];
30+
let pieData = [
31+
[],
32+
[],
33+
[],
34+
[]
35+
];
36+
let dataurl = {
37+
url: "https://mina.10010.com/wxapplet/bind/getCombospare/alipay/alipaymini?stoken=&user_id=" + tel,
38+
headers: {},
39+
};
40+
$task.fetch(dataurl).then(response => {
41+
var obj1 = JSON.parse(response.body);
42+
queryTime = obj1.queryTime;
43+
var det = obj1.woFeePolicy;
44+
console.log(det);
45+
(used = [0, 0, 0]), (quota = [0, 0, 0]), (remain = []);
46+
for (const i in det) {
47+
if (i == "indexVf") {
48+
$notification.post("error", "AOBH! Restart or Clear APP Cache!", "");
49+
return;
50+
}
51+
var allVal = det[i].addUpUpper;
52+
if (allVal != 0) {
53+
var type = det[i].elemType,
54+
useVal = det[i].xUsedValue,
55+
typeName = det[i].feePolicyName,
56+
canUseVal = det[i].canUseResourceVal,
57+
unit = det[i].totalUnitVal;
58+
if (type == 3) {
59+
quota[2] += parseFloat(allVal);
60+
if (canUseVal != 0) {
61+
if (det[i].canUseUnitVal == "GB") canUseVal = canUseVal * 1024;
62+
pieData[2].push([typeName, Number(canUseVal), "MB"]);
63+
}
64+
if (useVal != 0) {
65+
if (det[i].usedUnitVal == "GB") useVal = useVal * 1024;
66+
used[2] += parseFloat(useVal);
67+
pieData[2].unshift([typeName + " 已用", Number(useVal), "MB"]);
68+
}
69+
} else {
70+
quota[type - 1] += parseInt(allVal);
71+
used[type - 1] += parseInt(useVal);
72+
if (canUseVal != 0)
73+
pieData[type - 1].push([typeName, Number(canUseVal), unit]);
74+
if (useVal != 0)
75+
pieData[type - 1].unshift([
76+
typeName + " 已用",
77+
Number(useVal),
78+
unit
79+
]);
80+
}
81+
}
82+
}
83+
used.forEach((ele, i) => {
84+
remain.push(quota[i] - ele);
85+
});
86+
var setUnit = i => {
87+
if (i < 1024) return i.toFixed(2) + " MB";
88+
else return (i / 1024).toFixed(2) + " GB";
89+
};
90+
var rFlow = setUnit(remain[2]).split(" ");
91+
$notify("10010", "截止至 " + queryTime, "剩余语音 " + remainTime + "分" + "\n话费余额 " + remainFee + "元" + "\n流量剩余 " + rFlow[0] + rFlow[1]);
92+
}, reason => {
93+
$notify("10010", tel + '登录失败', reason.error);
94+
});
95+
}
96+
97+
get_basic(tel)

115lx.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
使用方法:
3+
注意:该脚本无破解离线功能,只是给新版115的App添加创建离线任务的方法。
4+
1.在[Script]分组下添加下面这行配置
5+
http-response ^http:\/\/115\.com\/lx.*$ script-path=https://raw.githubusercontent.com/ikanam/Surge-Scripts/master/115lx.js, requires-body=true
6+
2.[MITM]分组添加hostname = *.115.com
7+
3.在115Aapp中通过网页打开http://115.com/lx?taskdg=1(可在记录中保存该地址打开, 也可添加下面的配置将首页的签到按钮跳转重定向到离线下载页面)
8+
[URL Rewrite]
9+
^http:\/\/115\.com\/\?ct=sign$ http://115.com/lx?taskdg=1 header
10+
4.快速创建下载任务的快捷指令: https://www.icloud.com/shortcuts/31e3a877cec340a48192aa081e25c05e
11+
*/
12+
var body = $response.body;
13+
body = body.replace("UDown", 'XXXXXXXXX'); // 使重定向判断条件失效
14+
let clearJS = `<script type="text/javascript">
15+
$(function(){
16+
function actionSheetAction(index) {
17+
if (index == 4) { return; }
18+
$.ajax({
19+
url: '/web/lixian/?ct=lixian&ac=task_clear',
20+
dataType: 'json',
21+
data: {flag: index},
22+
type: 'POST',
23+
cache: false,
24+
success: function (r) {
25+
window.location.reload();
26+
},
27+
error: function(){
28+
console.log('清空失败');
29+
}
30+
});
31+
}
32+
function clearAction() {
33+
OOFJS.common.actionSheet('选择清空的操作', ['清空已完成任务', '清空全部任务', '清空失败任务', '清空进行中任务'], actionSheetAction);
34+
}
35+
setTimeout(function(){OOFJS.common.addRightBarItem('清空', clearAction);}, 200);
36+
});
37+
</script>`
38+
body = body.replace("</body>", clearJS + '\n</body>'); // 注入清空任务相关JS
39+
$done({body});

91surge.js

+28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Aweme.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
[URL Rewrite]
3+
^https://(.*)\.snssdk\.com/aweme/v2/ https://$1.snssdk.com/aweme/v1/ 302
4+
5+
[Script]
6+
http-response ^https://[\s\S]*\/aweme/v1/(feed|aweme/post|follow/feed)/ requires-body=1,max-size=-1,script-path=https://Choler.github.io/Surge/Script/Aweme.js
7+
8+
[MITM]
9+
hostname = *.amemv.com, *.snssdk.com
10+
*/
11+
12+
let arr = {
13+
"allow_download": true,
14+
"share_type": 0,
15+
"show_progress_bar": 0,
16+
"draft_progress_bar": 0,
17+
"allow_duet": true,
18+
"allow_react": true,
19+
"prevent_download_type": 2,
20+
"allow_dynamic_wallpaper": false
21+
};
22+
let body = $response.body.replace(/watermark=1/g, "watermark=0");
23+
var obj = JSON.parse(body);
24+
if (obj.aweme_list) {
25+
for (var i = obj.aweme_list.length - 1; i >= 0; i--) {
26+
if (obj.aweme_list[i].is_ads == true) {
27+
obj.aweme_list.splice(i, 1);
28+
}
29+
if (obj.aweme_list[i].poi_info) {
30+
delete obj.aweme_list[i].poi_info;
31+
}
32+
if (obj.aweme_list[i].sticker_detail) {
33+
delete obj.aweme_list[i].sticker_detail;
34+
}
35+
if (obj.aweme_list[i].simple_promotions) {
36+
delete obj.aweme_list[i].simple_promotions;
37+
}
38+
obj.aweme_list[i].status.reviewed = 1;
39+
obj.aweme_list[i].video_control = arr;
40+
}
41+
$done({body: JSON.stringify(obj)});
42+
} else if (obj.data) {
43+
for (var i = obj.data.length - 1; i >= 0; i--) {
44+
if (obj.data[i].aweme) {
45+
if (obj.data[i].aweme.poi_info) {
46+
delete obj.data[i].aweme.poi_info;
47+
}
48+
if (obj.data[i].aweme.simple_promotions) {
49+
delete obj.data[i].aweme.simple_promotions;
50+
}
51+
obj.data[i].aweme.status.reviewed = 1;
52+
obj.data[i].aweme.video_control = arr;
53+
} else {
54+
obj.data.splice(i, 1);
55+
}
56+
}
57+
$done({body: JSON.stringify(obj)});
58+
} else {
59+
$done({body});
60+
}

Bahamut.js

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Didaqingdan.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
TickTick (Tick list) unlock pro
3+
QX:
4+
^https:\/\/(ticktick|dida365)\.com\/api\/v2\/user\/status url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/DiDaQingDan.js
5+
6+
hostname = dida365.com, ticktick.com
7+
@supported 96440338D30B
8+
*/
9+
10+
var _0xf36b=["\x62\x6F\x64\x79","\x70\x61\x72\x73\x65","\x70\x72\x6F\x45\x6E\x64\x44\x61\x74\x65","\x32\x30\x39\x39\x2D\x30\x31\x2D\x30\x31\x54\x30\x30\x3A\x30\x30\x3A\x30\x30\x2E\x30\x30\x30\x2B\x30\x30\x30\x30","\x6E\x65\x65\x64\x53\x75\x62\x73\x63\x72\x69\x62\x65","\x70\x72\x6F","\x73\x74\x72\x69\x6E\x67\x69\x66\x79"];var body=$response[_0xf36b[0]];var obj=JSON[_0xf36b[1]](body);obj[_0xf36b[2]]= _0xf36b[3];obj[_0xf36b[4]]= false;obj[_0xf36b[5]]= true;body= JSON[_0xf36b[6]](obj);$done(body)

ITHome.js

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// 去除 IT 之家新闻列表广告
2+
3+
/*
4+
let obj = {
5+
"toplist": [],
6+
"newslist": [
7+
{
8+
"newsid": 463445,
9+
"title": "优酷视频会员限时3.5折大促:酷喵VIP会员年卡168元",
10+
"postdate": "2019-12-17T15:28:04.733",
11+
"orderdate": "2019-12-17T15:28:04.733",
12+
"description": "优酷VIP会员大促,酷喵VIP会员年卡限时低至3.5折168元。",
13+
"image": "http://img.ithome.com/newsuploadfiles/thumbnail/2019/12/463445_240.jpg?r=1576567684733",
14+
"hitcount": 1407,
15+
"commentcount": 29,
16+
"cid": 93,
17+
"sid": 0,
18+
"url": "/0/463/445.htm",
19+
"aid": 2
20+
},
21+
{
22+
"newsid": 463444,
23+
"title": "比亚迪将于12月20日解锁华为手机NFC车钥匙功能",
24+
"postdate": "2019-12-17T15:26:08.623",
25+
"orderdate": "2019-12-17T15:26:08.623",
26+
"description": "根据比亚迪官方的消息,12月20日,在比亚迪技术体验创享会上,比亚迪DiLink将与华为钱包合作,解锁手机NFC车钥匙功能",
27+
"image": "http://img.ithome.com/newsuploadfiles/thumbnail/2019/12/463444_240.jpg?r=1576567568623",
28+
"hitcount": 4623,
29+
"commentcount": 99,
30+
"cid": 160,
31+
"sid": 0,
32+
"url": "/0/463/444.htm"
33+
}
34+
],
35+
}
36+
*/
37+
38+
let obj = JSON.parse($response.body);
39+
let data = obj["newslist"];
40+
let del_num = [];
41+
for (item of data) {
42+
if ("aid" in item) {
43+
del_num.unshift(data.indexOf(item))
44+
}
45+
};
46+
for (n of del_num) {
47+
data.splice(n, 1)
48+
};
49+
obj["newslist"] = data;
50+
$done({ body: JSON.stringify(obj) });

0 commit comments

Comments
 (0)