Skip to content

Commit ad409bb

Browse files
committed
优化 代码
1 parent 6247806 commit ad409bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

V2ex-Enhanced.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
} else if (document.getElementById('gift_v2excellent')) { // 兼容 [V2ex Plus] 扩展
223223
document.getElementById('gift_v2excellent').click();
224224
GM_setValue('menu_clockInTime', timeNow); // 写入签到时间以供后续比较
225+
console.info('[V2EX 增强] 自动签到完成!')
225226
} else { // 都没有找到,说明已经签过到了
226227
console.info('[V2EX 增强] 已经签过到了。')
227228
}
@@ -345,7 +346,7 @@
345346
function linksBlank(css) {
346347
if (!menu_value('menu_linksBlank')) return
347348
let links = document.querySelectorAll(css);if (!links) return
348-
Array.from(links).forEach(function (_this) {
349+
links.forEach(function (_this) {
349350
_this.target = '_blank'
350351
});
351352
}

0 commit comments

Comments
 (0)