From ff2679d51f914b437a63c07261f2cfdf4afdf8d8 Mon Sep 17 00:00:00 2001 From: fengbohan <1953356163@qq.com> Date: Sat, 19 Jul 2025 20:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=81=E4=B9=A6=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 0fcdf8f..8a7b3de 100644 --- a/main.js +++ b/main.js @@ -8,6 +8,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAdVBMVEX///////7+/v4kVZ729/lafbO2xd3x8/f5+vz8/Pzd4+4tW6GSp8xnh7nP2OgxXqLK1OZ1kb/s7/UgUZytvdhKcKw+aKgaTZlhgrbU3eqar9Dm6fFVd7CEnsZwjb4VSZfAy+BCbKq3xd58l8OXrM6nudaMo8kyjkGlAAABfklEQVQokT1Si5arIBCLDIqCiogP8FHtWvv/n3iH7vZyDjDMQAIJwLdlpVIlz0L8T0FAxDaTy5JBrWn52ZhxoO6tQ+ZyjT7fJSqRpYJAJte8qbDPmxKPY4vgXOqdhramwzp6B1GTKRJahjjVVdlQI3FauiTahkOmFfHyJ9qJduC2lHf4o69weiZYyLyAYvLWFe3O1apHa80AsZOpGfdhZrLHDfSDwpumFuVO5HqI8xot3xvrM5Qy+DGiqo3fTgbvteRRT36AHmlk2J/R26vlbHmuiMVrWtOlpoGPX2a2wV3BMjQiNSXakezVA50zfvbHyGTMQlcFnRNtRQXEl3u4lklWVRi6FNRuyTRD/5E7sXehvIlCBM6c3zBed3E/dNKqCdlg/bRIlENj/XHMxztphdUGxNxTKNhAPbz3/edjlEC0uRTLc6b81syu5K8fPOhxKtAvm5/NMw/vNRNfy1U9hUKpbnFNsyh8v0Pa0A/O1SyE+LrxV6mSdjH2gsPf/D//7BjTQny+YwAAAABJRU5ErkJggg== // @grant none // @run-at document-idle +// @license MI // ==/UserScript== (function() { @@ -14775,7 +14776,7 @@ } // 创建菜单按钮 - function createMenueButton(text, options = {}) { + function createMenuButton(text, options = {}) { const button = document.createElement('button'); button.textContent = text; const copiedStyles = { @@ -14813,12 +14814,12 @@ var query_button = document.getElementById("query"); // 创建菜单按钮 - const button = createMenueButton("统计加班时间", { + const button = createMenuButton("统计加班时间", { onClick: () => { get_work_time(); } }) - const button0 = createMenueButton('查当月', { + const button0 = createMenuButton('查当月', { onClick: () => { const month = getCustomMonthRange(0); const firstDay = month.firstDay; @@ -14832,7 +14833,7 @@ }, 500); } }); - const button1 = createMenueButton('查上月', { + const button1 = createMenuButton('查上月', { onClick: () => { const month = getCustomMonthRange(1); const firstDay = month.firstDay; @@ -14846,7 +14847,7 @@ }, 500); } }); - const button2 = createMenueButton('查上上月', { + const button2 = createMenuButton('查上上月', { onClick: () => { const month = getCustomMonthRange(2); const firstDay = month.firstDay; @@ -14860,7 +14861,7 @@ }, 500); } }); - const button3 = createMenueButton('查上上上月', { + const button3 = createMenuButton('查上上上月', { onClick: () => { const month = getCustomMonthRange(3); const firstDay = month.firstDay;