From ad409bb24073c9225751ffa2317287ce3b5aa7d1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 24 May 2021 13:35:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- V2ex-Enhanced.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/V2ex-Enhanced.user.js b/V2ex-Enhanced.user.js index 45f4c8e..d0a6911 100644 --- a/V2ex-Enhanced.user.js +++ b/V2ex-Enhanced.user.js @@ -222,6 +222,7 @@ } else if (document.getElementById('gift_v2excellent')) { // 兼容 [V2ex Plus] 扩展 document.getElementById('gift_v2excellent').click(); GM_setValue('menu_clockInTime', timeNow); // 写入签到时间以供后续比较 + console.info('[V2EX 增强] 自动签到完成!') } else { // 都没有找到,说明已经签过到了 console.info('[V2EX 增强] 已经签过到了。') } @@ -345,7 +346,7 @@ function linksBlank(css) { if (!menu_value('menu_linksBlank')) return let links = document.querySelectorAll(css);if (!links) return - Array.from(links).forEach(function (_this) { + links.forEach(function (_this) { _this.target = '_blank' }); }