From 436ff24ddd2dc8b8421504983cd3b49ddca2d5ab Mon Sep 17 00:00:00 2001 From: C xkey Date: Wed, 4 Oct 2023 04:41:49 +0000 Subject: [PATCH] Update localization_web.js --- sc_doctor/localization_web.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sc_doctor/localization_web.js b/sc_doctor/localization_web.js index b0f8ea8..c71a8b0 100644 --- a/sc_doctor/localization_web.js +++ b/sc_doctor/localization_web.js @@ -21,13 +21,12 @@ // @require https://cdn.bootcdn.net/ajax/libs/timeago.js/4.0.2/timeago.full.min.js // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js // ==/UserScript== -window.addEventListener('load', function(event) { - // 当页面加载完成时,执行我们的脚本 - myScript(); - alltranslate(); -}); + var currentUrl = window.location.href; +myScript(); +alltranslate(); + // 监听页面中的鼠标点击事件 function myScript() {