From 3378ce059b50b93d89617d65f0bb8e782a1faf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Thu, 5 Sep 2024 17:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=89=AA=E5=88=87=E6=9D=BF?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tampermonkey.js | 88 ++++++++++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 37 deletions(-) diff --git a/tampermonkey.js b/tampermonkey.js index b40c103..89f1a81 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -47,7 +47,7 @@ const api = {}; // 监听页面关闭事件,用于关闭最后一个通知 - window.addEventListener('beforeunload', function(event) { + window.addEventListener("beforeunload", function (event) { api.closeLastNotification(); }); @@ -62,10 +62,10 @@ options = options || {}; // 创建一个新的