diff --git a/wuhu-torn-helper.js b/wuhu-torn-helper.js index 8b24e2b..d67b660 100644 --- a/wuhu-torn-helper.js +++ b/wuhu-torn-helper.js @@ -1,6 +1,7 @@ !async function () { 'use strict'; const start_timestamp = Date.now(); + if (document.title.toLowerCase().includes('just a moment')) return; // unsafewindow副本 const UWCopy = window.unsafeWindow; try { @@ -3858,6 +3859,15 @@ background-size: 100% auto !important; domText: '📜️ 传单助手', clickFunc: adHelper }); + // 守望者 + menu_list.push({ + domType: 'button', + domId: '', + domText: '🛡️ 守望者', + clickFunc: function () { + safeKeeper(); + }, + }); // 更新历史 menu_list.push({ domType: 'button', domId: '', domText: '🐞 更新历史', clickFunc: () => { @@ -3912,13 +3922,13 @@ color:black; (window['initializeTooltip']) && (window['initializeTooltip']('#wh-popup-cont', 'white-tooltip')); }, }); - // 测试按钮 + // 测试 if (isDev()) menu_list.push({ domType: 'button', - domId: 'wh-test-btn', - domText: '测试按钮', - clickFunc: async function () { - await companyDeposit(); + domId: '', + domText: '📐️ 测试', + clickFunc: function () { + WHNotify('芜湖助手', {sysNotify: true, timeout: 3}) }, }); } @@ -6750,7 +6760,7 @@ margin: 0 0 3px;
当前版本: ${version}
当前版本: ${version.slice(-1) === '$' ? 'DEV' : version}
最新版本:
到底是谁在打他?
', '守望者 (测试中)'); + let p = document.createElement('p'); + let uid = document.createElement('input'); + let start = document.createElement('button'); + let stop = document.createElement('button'); + + let count = 0; + let id = null; + + uid.type = 'text'; + start.innerHTML = '开'; + stop.innerHTML = '关'; + p.innerHTML = '状态:已关'; + + start.addEventListener('click', () => { + if (id !== null) return; + p.innerHTML = '状态:已开'; + id = setInterval(async () => { + let res = await (await fetch(url + uid.value)).text(); + console.log(count++, JSON.parse(res.split('