This commit is contained in:
humingxNobyDaconfig --global user.email 53217160+NobyDa@users.noreply.github.comssh-keygen -t rsa -C humingx@yeah.nethumingx@yeah.net 2020-05-12 15:41:18 +08:00
parent 411c22f33c
commit 578a006c09
11 changed files with 0 additions and 625 deletions

View File

@ -1,54 +0,0 @@
/*
52pojie forum daily bonus script
Update 2019.12.29 15:30
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
Need to manually log in to the https://www.52pojie.cn/home.php?mod=space checkin to get cookie. if QX pops up to get a cookie success notification, you can disable this script.
Note that the following config is only a local script configuration, please put this script into Quantumult X/Script
script will be performed every day at 9 am. You can modify the execution time.
[task_local]
# 52pojie daily bonus script
0 9 * * * 52pojie_DailyBonus_QX.js
[rewrite_local]
# Get cookie. QX TF188+:
https:\/\/www\.52pojie\.cn\/home\.php\?mod=space url script-request-header 52pojie_GetCookie_QX.js
# MITM = www.52pojie.cn
*/
var bonus = {
url: 'https://www.52pojie.cn/home.php?mod=task&do=apply&id=2&mobile=no',
headers: {
"Cookie": $prefs.valueForKey("CookieWA"),
}
};
var date = new Date()
var week = ["Sunday","Monday","Tuseday","Wednesday","Thursday","Friday","Saturday"];
var month = ["Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."];
$task.fetch(bonus).then(response => {
if (response.body.match(/\u606d\u559c\u60a8/)) {
$notify("52pojie Daily bonus", "", week[date.getDay()] + ", " + month[date.getMonth()] + " " + date.getDate() + ", " + "Daily bonus success🎉")
} else {
if (response.body.match(/\u4e0b\u671f\u518d\u6765/)) {
$notify("52pojie Daily bonus", "", week[date.getDay()] + ", " + month[date.getMonth()] + " " + date.getDate() + ", " + "Repeat ⚠️")
} else {
if (response.body.match(/\u9700\u8981\u5148\u767b\u5f55/)) {
$notify("52pojie Daily bonus. Error. Cookies expire", "", "Please reopen the script to get‼")
} else {
$notify("52pojie Daily bonus", "", "Scripts need to be updated ‼️‼️")
}
}
}
}, reason => {
$notify("52pojie Daily bonus. Interface error‼", "", reason.error)
});

View File

@ -1,49 +0,0 @@
/*
52pojie forum daily bonus script
Update 2019.12.29 15:30
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
Need to manually log in to the https://www.52pojie.cn/home.php?mod=space checkin to get cookie. if QX pops up to get a cookie success notification, you can disable this script.
Note that the following config is only a local script configuration, please put this script into Quantumult X/Script
script will be performed every day at 9 am. You can modify the execution time.
[task_local]
# 52pojie daily bonus script
0 9 * * * 52pojie_DailyBonus_QX.js
[rewrite_local]
# Get cookie. QX TF188+:
https:\/\/www\.52pojie\.cn\/home\.php\?mod=space url script-request-header 52pojie_GetCookie_QX.js
# MITM = www.52pojie.cn
*/
var WAPJ = $request.headers["Cookie"];
if (WAPJ) {
if ($prefs.valueForKey("CookieWA") != undefined) {
if ($prefs.valueForKey("CookieWA") != WAPJ) {
var cookie = $prefs.setValueForKey(WAPJ, "CookieWA");
if (!cookie) {
$notify("更新吾爱破解签到Cookie失败‼", "", "")
} else {
$notify("更新吾爱破解签到Cookie成功 🎉", "", "")
}
}
} else {
var cookie = $prefs.setValueForKey(WAPJ, "CookieWA");
if (!cookie) {
$notify("首次写入吾爱破解Cookie失败‼", "", "")
} else {
$notify("首次写入吾爱破解Cookie成功 🎉", "", "")
}
}
}
$done({})

View File

@ -1,205 +0,0 @@
/*
TieBa Daily bonus
The script is made by @wechatu
Description :
When TieBa app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
script will be performed every day at 9 am. You can modify the execution time.
Note that the following config is only a local script configuration, please put both scripts into Quantumult X/Script, and the cookie script only works for TieBa apps in china apple store
[rewrite_local]
# Get TieBa cookie. QX TF188+:
https?:\/\/c\.tieba\.baidu\.com\/c\/s\/login url script-request-header TieBa_GetCookie_QX.js
# MITM = c.tieba.baidu.com
[task_local]
0 9 * * * TieBa_DailyBonus_QX.js
*/
var cookieVal = $prefs.valueForKey("CookieTB");
var useParallel = 0; //0自动切换,1串行,2并行(当贴吧数量大于30个以后,并行可能会导致QX崩溃,所以您可以自动切换)
var singleNotifyCount = 20; //想签到几个汇总到一个通知里,这里就填几个(比如我有13个要签到的,这里填了5,就会分三次消息通知过去)
var process = {
total: 0,
result: [
// {
// bar:'',
// level:0,
// exp:0,
// errorCode:0,
// errorMsg:''
// }
]
};
var url_fetch_sign = {
url: "https://tieba.baidu.com/mo/q/newmoindex",
headers: {
"Content-Type": "application/octet-stream",
Referer: "https://tieba.baidu.com/index/tbwise/forum",
Cookie: cookieVal,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16A366"
}
};
var url_fetch_add = {
url: "https://tieba.baidu.com/sign/add",
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
Cookie: cookieVal,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/14B100 UCBrowser/10.7.5.650 Mobile"
},
body: ""
};
function signTieBa() {
if (!cookieVal) {
$notify("贴吧签到", "签到失败", "未获取到cookie");
return;
}
$task.fetch(url_fetch_sign).then(response => {
// $notify("贴吧签到", "贴吧列表", response.body);
var body = JSON.parse(response.body);
var isSuccessResponse = body && body.no == 0 && body.error == "success" && body.data.tbs;
if (!isSuccessResponse) {
$notify("贴吧签到", "签到失败", (body && body.error) ? body.error : "接口数据获取失败");
return;
}
process.total = body.data.like_forum.length;
if (body.data.like_forum && body.data.like_forum.length > 0) {
if (useParallel == 1 || (useParallel == 0 && body.data.like_forum.length >= 30)) {
signBars(body.data.like_forum, body.data.tbs, 0);
} else {
for (const bar of body.data.like_forum) {
signBar(bar, body.data.tbs);
}
}
} else {
$notify("贴吧签到", "签到失败", "请确认您有关注的贴吧");
return;
}
}, reason => {
$notify("贴吧签到", "签到失败", "未获取到签到列表");
});
}
function signBar(bar, tbs) {
if (bar.is_sign == 1) { //已签到的,直接不请求接口了
process.result.push({
bar: `${bar.forum_name}`,
level: bar.user_level,
exp: bar.user_exp,
errorCode: 9999,
errorMsg: "已签到"
});
checkIsAllProcessed();
} else {
url_fetch_add.body = `tbs=${tbs}&kw=${bar.forum_name}&ie=utf-8`;
$task.fetch(url_fetch_add).then(response => {
try {
var addResult = JSON.parse(response.body);
if (addResult.no == 0) {
process.result.push({
bar: bar.forum_name,
errorCode: 0,
errorMsg: `获得${addResult.data.uinfo.cont_sign_num}积分,第${addResult.data.uinfo.user_sign_rank}个签到`
});
} else {
process.result.push({
bar: bar.forum_name,
errorCode: addResult.no,
errorMsg: addResult.error
});
}
} catch (e) {
$notify("贴吧签到", "贴吧签到数据处理异常", JSON.stringify(e));
}
checkIsAllProcessed();
}, reason => {
process.result.push({
bar: bar.forum_name,
errorCode: 999,
errorMsg: '接口错误'
});
checkIsAllProcessed();
});
}
}
function signBars(bars, tbs, index) {
//$notify("贴吧签到", `进度${index}/${bars.length}`, "");
if (index >= bars.length) {
//$notify("贴吧签到", "签到已满", `${process.result.length}`);
checkIsAllProcessed();
} else {
var bar = bars[index];
if (bar.is_sign == 1) { //已签到的,直接不请求接口了
process.result.push({
bar: `${bar.forum_name}`,
level: bar.user_level,
exp: bar.user_exp,
errorCode: 9999,
errorMsg: "已签到"
});
signBars(bars, tbs, ++index);
} else {
url_fetch_add.body = `tbs=${tbs}&kw=${bar.forum_name}&ie=utf-8`;
$task.fetch(url_fetch_add).then(response => {
try {
var addResult = JSON.parse(response.body);
if (addResult.no == 0) {
process.result.push({
bar: bar.forum_name,
errorCode: 0,
errorMsg: `获得${addResult.data.uinfo.cont_sign_num}积分,第${addResult.data.uinfo.user_sign_rank}个签到`
});
} else {
process.result.push({
bar: bar.forum_name,
errorCode: addResult.no,
errorMsg: addResult.error
});
}
} catch (e) {
$notify("贴吧签到", "贴吧签到数据处理异常", JSON.stringify(e));
}
signBars(bars, tbs, ++index)
}, reason => {
process.result.push({
bar: bar.forum_name,
errorCode: 999,
errorMsg: '接口错误'
});
signBars(bars, tbs, ++index);
});
}
}
}
function checkIsAllProcessed() {
//$notify("贴吧签到", `最终进度${process.result.length}/${process.total}`, "");
if (process.result.length != process.total) return;
for (var i = 0; i < Math.ceil(process.total / singleNotifyCount); i++) {
var notify = "";
var spliceArr = process.result.splice(0, singleNotifyCount);
var notifySuccessCount = 0;
for (const res of spliceArr) {
if (res.errorCode == 0 || res.errorCode == 9999) {
notifySuccessCount++;
}
if (res.errorCode == 9999) {
notify += `${res.bar}】已经签到,当前等级${res.level},经验${res.exp}
`;
} else {
notify += `${res.bar}${res.errorCode==0?'签到成功':'签到失败'}${res.errorCode==0?res.errorMsg:('原因:'+res.errorMsg)}
`;
}
}
$notify("贴吧签到", `签到${spliceArr.length}个,成功${notifySuccessCount}`, notify);
}
}
signTieBa()

View File

@ -1,47 +0,0 @@
/*
TieBa Checkin Get Cookie.
About the author:
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
When TieBa app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
Note that the following config is only a local script configuration, please put this scripts into Quantumult X/Script, and the cookie script only works for TieBa apps in china apple store
[rewrite_local]
# Get TieBa cookie. QX TF188+:
https?:\/\/c\.tieba\.baidu\.com\/c\/s\/login url script-request-header TieBa_GetCookie_QX.js
# MITM = c.tieba.baidu.com
*/
var headerCookie = $request.headers["Cookie"];
if (headerCookie) {
if ($prefs.valueForKey("CookieTB") != undefined) {
if ($prefs.valueForKey("CookieTB") != headerCookie) {
if (headerCookie.indexOf("BDUSS") != -1) {
var cookie = $prefs.setValueForKey(headerCookie, "CookieTB");
if (!cookie) {
$notify("更新贴吧Cookie失败‼", "", "");
} else {
$notify("更新贴吧Cookie成功 🎉", "", "");
}
}
}
} else {
if (headerCookie.indexOf("BDUSS") != -1) {
var cookie = $prefs.setValueForKey(headerCookie, "CookieTB");
if (!cookie) {
$notify("首次写入贴吧Cookie失败‼", "", "");
} else {
$notify("首次写入贴吧Cookie成功 🎉", "", "");
}
}
}
}
$done({})

View File

@ -1,50 +0,0 @@
/*
iQIYI Daily bonus script
Update 2020.1.2 17:00
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
When iQiyi app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
script will be performed every day at 9 am. You can modify the execution time.
Note that the following config is only a local script configuration, please put both scripts into Quantumult X/Script, and the cookie script only works for iQIYI apps in china apple store
[rewrite_local]
# Get iQIYI cookie. QX TF188+:
https?:\/\/.*\.iqiyi\.com\/.*authcookie= url script-request-header iQIYI_GetCookie_QX.js
# MITM = *.iqiyi.com
[task_local]
0 9 * * * iQIYI_DailyBonus_QX.js
*/
var bonus = {
url: 'https://tc.vip.iqiyi.com/taskCenter/task/queryUserTask?autoSign=yes&P00001=' + $prefs.valueForKey("CookieQY"),
};
$task.fetch(bonus).then(response => {
var obj = JSON.parse(response.body);
if (obj.msg == "成功") {
if (obj.data.signInfo.code == "A00000") {
console.log("success response: \n" + response.body);
var status = obj.data.signInfo.msg;
var AwardName = obj.data.signInfo.data.rewards[0].name;
var quantity = obj.data.signInfo.data.rewards[0].value;
var continued = obj.data.signInfo.data.continueSignDaysSum;
$notify("爱奇艺签到", "", status + "!获得" + AwardName + quantity + ", 已连续签到" + continued + "天 🎉");
} else {
console.log("failure response: \n" + response.body);
$notify("爱奇艺签到", "", "失败, " + obj.data.signInfo.msg + "⚠️");
}
} else {
$notify("爱奇艺签到,Cookie无效‼", "", response.body);
}
}, reason => {
$notify("爱奇艺签到,请求失败‼️‼️‼", "", reason.error);
});

View File

@ -1,48 +0,0 @@
/*
iQIYI Checkin Get Cookie.
Update 2019.12.31 0:30
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
When iQiyi app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
script will be performed every day at 9 am. You can modify the execution time.
Note that the following config is only a local script configuration, please put both scripts into Quantumult X/Script, and the cookie script only works for iQIYI apps in china apple store
[rewrite_local]
# Get iQIYI cookie. QX TF188+:
https?:\/\/.*\.iqiyi\.com\/.*authcookie= url script-request-header iQIYI_GetCookie_QX.js
# MITM = *.iqiyi.com
[task_local]
0 9 * * * iQIYI_DailyBonus_QX.js
*/
var regex = /authcookie=([A-Za-z0-9]+)/;
var iQIYI = regex.exec($request.url)[1];
if ($prefs.valueForKey("CookieQY") != undefined) {
if ($prefs.valueForKey("CookieQY") != iQIYI) {
var cookie = $prefs.setValueForKey(iQIYI, "CookieQY");
if (!cookie) {
$notify("更新爱奇艺签到Cookie失败‼", "", "")
} else {
$notify("更新爱奇艺签到Cookie成功 🎉", "", "")
}
}
} else {
var cookie = $prefs.setValueForKey(iQIYI, "CookieQY");
if (!cookie) {
$notify("首次写入爱奇艺Cookie失败‼", "", "")
} else {
$notify("首次写入爱奇艺Cookie成功 🎉", "", "")
}
}
$done({})

View File

@ -1,57 +0,0 @@
/*
52pojie Forum daily automatic bonus.
Description :
When using for the first time. Need to manually log in to the 52pojie forum to get cookie. When Surge pops up to get a successful notification, you can disable the HTTP request script.
Due to the validity of cookie, if the script pops up a notification of cookie invalidation in the future, you need to repeat the above steps.
Surge4.0 or Loon :
[Script]
// Daily bonus Script. Will be performed every day at 8 am. You can modify the execution time.
cron "0 8 * * *" script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/52pojieDailyBonus/52pojie.js
// Get Cookie Script :
http-request https:\/\/www\.52pojie\.cn\/home\.php\? script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/52pojieDailyBonus/Get-Cookie.js
// MITM = www.52pojie.cn
*/
var bonus = {
url: 'https://www.52pojie.cn/home.php?mod=task&do=apply&id=2&mobile=no',
headers: {
Cookie: $persistentStore.read("CookieWA"),
}
};
var date = new Date()
var week = ["Sunday","Monday","Tuseday","Wednesday","Thursday","Friday","Saturday"];
var month = ["Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."];
$httpClient.get(bonus, function(error, response, data) {
if (error) {
console.log(error);
$notification.post("52pojie Daily bonus. Interface error‼", "", error)
$done()
} else {
if (data.match(/(ÒÑÍê³É|\u606d\u559c\u60a8)/)) {
$notification.post("52pojie Daily bonus", "", week[date.getDay()] + ", " + month[date.getMonth()] + " " + date.getDate() + ", " + "Daily bonus success🎉")
$done()
} else {
if (data.match(/(ÄúÒÑ|\u4e0b\u671f\u518d\u6765)/)) {
$notification.post("52pojie Daily bonus", "", week[date.getDay()] + ", " + month[date.getMonth()] + " " + date.getDate() + ", " + "Repeat ⚠️")
$done()
} else {
if (data.match(/(ÏȵǼ|\u9700\u8981\u5148\u767b\u5f55)/)) {
$notification.post("52pojie Daily bonus. Error. Cookies expire", "", "Please reopen the script to get‼")
$done()
} else {
$notification.post("52pojie Daily bonus", "", "Scripts need to be updated ‼️‼️")
$done()
}
}
}
}
})
// If reprinted, please indicate the source. My TG channel @NobyDa

View File

@ -1,20 +0,0 @@
/*
52pojie Forum get cookie
Description :
Need to manually log in to the https://www.52pojie.cn/home.php?mod=space checkin to get cookie. If you receive a cookie success notification, you can disable this script.
Surge 4.0 : [Script]
http-request https:\/\/www\.52pojie\.cn\/home\.php\? script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/52pojieDailyBonus/Get-Cookie.js
MITM = www.52pojie.cn
*/
if ($request.url.indexOf('home') != -1) {
if ($request.headers['Cookie']) {
var headerWA = $request.headers['Cookie'];
$persistentStore.write(headerWA, "CookieWA");
$notification.post("Get Cookie success🎉", "", "You can disable the HTTP request script")
}
}
$done({})

View File

@ -1 +0,0 @@
# This file has been migrated to https://github.com/NobyDa/ND-AD

View File

@ -1,48 +0,0 @@
/*
iQIYI Daily bonus script
Update 2020.1.2 17:00
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
When iQiyi app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
script will be performed every day at 9 am. You can modify the execution time. and the cookie script only works for iQIYI apps in china apple store
[Script]
# iQIYI Daily bonus script
cron "0 9 * * *" script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/iQIYI-DailyBonus/iQIYI_DailyBonus.js
# Get Cookie
http-request https?:\/\/.*\.iqiyi\.com\/.*authcookie= script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/iQIYI-DailyBonus/iQIYI_GetCookie.js
# MITM = *.iqiyi.com
*/
$httpClient.get('https://tc.vip.iqiyi.com/taskCenter/task/queryUserTask?autoSign=yes&P00001=' + $persistentStore.read("CookieQY"), function(error, response, data) {
if (error) {
$notification.post("爱奇艺签到,请求失败‼️‼️‼", "", error);
} else {
var obj = JSON.parse(data);
if (obj.msg == "成功") {
if (obj.data.signInfo.code == "A00000") {
console.log("success response: \n" + data);
var status = obj.data.signInfo.msg;
var AwardName = obj.data.signInfo.data.rewards[0].name;
var quantity = obj.data.signInfo.data.rewards[0].value;
var continued = obj.data.signInfo.data.continueSignDaysSum;
$notification.post("爱奇艺签到", "", status + "!获得" + AwardName + quantity + ", 已连续签到" + continued + "天 🎉");
} else {
console.log("failure response: \n" + data);
$notification.post("爱奇艺签到", "", "失败, " + obj.data.signInfo.msg + "⚠️");
}
} else {
$notification.post("爱奇艺签到,Cookie无效‼", "", data);
}
}
})
$done()

View File

@ -1,46 +0,0 @@
/*
iQIYI Daily bonus script
Update 2019.12.31 0:30
About the author:
If reproduced, indicate the source
Telegram channel: @NobyDa
Telegram bots: @NobyDa_bot
Description :
When iQiyi app is opened, click "My", If notification gets cookie success, you can use the check in script. because script will automatically judgment whether the cookie is updated, so you dont need to disable it manually.
script will be performed every day at 9 am. You can modify the execution time. and the cookie script only works for iQIYI apps in china apple store
[Script]
# iQIYI Daily bonus script
cron "0 9 * * *" script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/iQIYI-DailyBonus/iQIYI_DailyBonus.js
# Get Cookie
http-request https?:\/\/.*\.iqiyi\.com\/.*authcookie= script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/iQIYI-DailyBonus/iQIYI_GetCookie.js
# MITM = *.iqiyi.com
*/
var regex = /authcookie=([A-Za-z0-9]+)/;
var iQIYI = regex.exec($request.url)[1];
if ($persistentStore.read("CookieQY") != null) {
if ($persistentStore.read("CookieQY") != iQIYI) {
var cookie = $persistentStore.write(iQIYI, "CookieQY");
if (!cookie) {
$notification.post("更新爱奇艺签到Cookie失败‼", "", "")
} else {
$notification.post("更新爱奇艺签到Cookie成功 🎉", "", "")
}
}
} else {
var cookie = $persistentStore.write(iQIYI, "CookieQY");
if (!cookie) {
$notification.post("首次写入爱奇艺Cookie失败‼", "", "")
} else {
$notification.post("首次写入爱奇艺Cookie成功 🎉", "", "")
}
}
$done({})