Skip to content

Commit a1f13ac

Browse files
authored
v1.5.0: 整合代码
1 parent 33cfe4e commit a1f13ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tsdmAutoSignAndWork.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
// @noframes
99
// ==/UserScript==
1010

11-
let { signed = '0', worked = '0' } = localStorage;
12-
let action = {};
11+
let signed = localStorage.getItem('signed') | 0;
12+
let worked = localStorage.getItem('worked') | 0;
1313
let today = new Date();
1414
let date = today.getFullYear() + today.getMonth() + today.getDate();
1515
let now = today.getTime();
16+
let action = {};
1617
let [e_work, e_sign] = document.querySelectorAll('#mn_Nfded_menu > li > a');
1718

1819
if (location.pathname === '/forum.php' && document.getElementById('tsdm_newpm')) {

0 commit comments

Comments
 (0)