更新
This commit is contained in:
parent
a175777f79
commit
6a6c125055
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wuhu-torn-helper",
|
"name": "wuhu-torn-helper",
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"uglify-js": "^3.16.1"
|
"uglify-js": "^3.16.1"
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -2879,6 +2879,8 @@
|
|||||||
{ key: 'companyBWCollapse', val: true },
|
{ key: 'companyBWCollapse', val: true },
|
||||||
// 清除多余的脚本
|
// 清除多余的脚本
|
||||||
{ key: 'removeScripts', val: true },
|
{ key: 'removeScripts', val: true },
|
||||||
|
// 外海警告
|
||||||
|
{ key: 'abroadWarning', val: true },
|
||||||
|
|
||||||
// 危险行为⚠️
|
// 危险行为⚠️
|
||||||
{ key: 'dangerZone', val: false },
|
{ key: 'dangerZone', val: false },
|
||||||
@ -3044,6 +3046,14 @@
|
|||||||
tip: '(仅PC) 飞行页面将显示一个内建的闹钟,落地前声音提醒,需要打开浏览器声音权限',
|
tip: '(仅PC) 飞行页面将显示一个内建的闹钟,落地前声音提醒,需要打开浏览器声音权限',
|
||||||
isHide: true,
|
isHide: true,
|
||||||
});
|
});
|
||||||
|
// 外海警告
|
||||||
|
setting_list.push({
|
||||||
|
domType: 'checkbox',
|
||||||
|
domId: '',
|
||||||
|
domText: ' 外海警告',
|
||||||
|
dictName: 'abroadWarning',
|
||||||
|
tip: '海外落地后每30秒通知警告',
|
||||||
|
});
|
||||||
|
|
||||||
// 公司
|
// 公司
|
||||||
setting_list.push({
|
setting_list.push({
|
||||||
@ -4493,6 +4503,17 @@ display:none;
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 海外落地
|
||||||
|
if (href.includes('index.php') && document.querySelector('#travel-home') !== null) {
|
||||||
|
// 添加回城按钮
|
||||||
|
addActionBtn('直接回城', getHome, $zhongNode);
|
||||||
|
// 海外警告
|
||||||
|
if (getWhSettingObj()['abroadWarning']) {
|
||||||
|
let c = 1;
|
||||||
|
setInterval(() => WHNotify(`警告:您已海外落地${c++ * 30}秒`, { sysNotify: true }), 30000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 起飞提醒
|
// 起飞提醒
|
||||||
if (href.contains(/travelagency\.php/) && getWhSettingObj()['energyAlert']) {
|
if (href.contains(/travelagency\.php/) && getWhSettingObj()['energyAlert']) {
|
||||||
const $$ = $('.content-wrapper');
|
const $$ = $('.content-wrapper');
|
||||||
@ -10100,6 +10121,9 @@ z-index:100001;
|
|||||||
btn.innerHTML = txt;
|
btn.innerHTML = txt;
|
||||||
btn.addEventListener('click', func);
|
btn.addEventListener('click', func);
|
||||||
mainBtnNode.querySelector('button').after(btn);
|
mainBtnNode.querySelector('button').after(btn);
|
||||||
|
addActionBtn = function () {
|
||||||
|
log('错误:附加按钮已存在')
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// 守望者
|
// 守望者
|
||||||
@ -10224,5 +10248,27 @@ z-index:100001;
|
|||||||
WHNotify('计划中');
|
WHNotify('计划中');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 直接回城
|
||||||
|
async function getHome() {
|
||||||
|
if (typeof window['getAction'] !== 'function') return;
|
||||||
|
let backHomeAction = function () {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
window['getAction']({
|
||||||
|
type: "post",
|
||||||
|
action: 'travelagency.php',
|
||||||
|
data: {
|
||||||
|
step: 'backHomeAction'
|
||||||
|
},
|
||||||
|
success: function (msg) {
|
||||||
|
resolve(msg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
WHNotify(await backHomeAction());
|
||||||
|
WHNotify('成功,即将刷新页面……');
|
||||||
|
setTimeout(location.reload, 3000);
|
||||||
|
}
|
||||||
|
|
||||||
$zhongNode.initTimer.innerHTML = `助手加载时间 ${Date.now() - start_timestamp}ms`;
|
$zhongNode.initTimer.innerHTML = `助手加载时间 ${Date.now() - start_timestamp}ms`;
|
||||||
}();
|
}();
|
||||||
Loading…
x
Reference in New Issue
Block a user