From 069539f62a488e910fdcb6a832bf9b2884344802 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 22 Feb 2024 14:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B1=82=E4=B8=BB=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=8F=90=E5=8F=96BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js | 6 +++--- NGA_BBS_plugins/MobileSupport/MobileSupport.user.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js b/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js index ae66ad2..f226e61 100644 --- a/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js +++ b/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js @@ -1,7 +1,7 @@ // ==UserScript== // @name NGA优化摸鱼体验插件-移动端支持 // @namespace https://github.com/lifegpc/userscript/tree/master/NGA_BBS_plugins/MobileSupport -// @version 1.0.8 +// @version 1.0.9 // @author lifegpc // @description 支持移动端页面 // @license MIT @@ -124,7 +124,7 @@ const marks = markAndBan.getUserMarks({ name, uid }) if (marks) { let marksDom = '' - marks.marks.forEach(item => marksDom += `${item.mark}`); + marks.marks.forEach(item => marksDom += `${item.mark}`); $(this).after(marksDom); } }) @@ -135,7 +135,7 @@ const markAndBan = this.mainScript.getModule('MarkAndBan'); if (markAndBan) { const currentUid = $el.find("a.userlink").attr("href").split("uid=")[1] + ''; - const currentName = $el.find("a.userlink").text().replace('楼主', ''); + const currentName = $el.find("a.userlink")[0].innerText.replace('楼主', ''); $el.find(".posterInfoLineB").each(function () { $(this).prepend(``) }) diff --git a/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js b/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js index 902ab35..77d9eac 100644 --- a/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js +++ b/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name NGA优化摸鱼体验插件-移动端支持 // @namespace https://github.com/lifegpc/userscript/tree/master/NGA_BBS_plugins/MobileSupport -// @version 1.0.8 +// @version 1.0.9 // @author lifegpc // @description 支持移动端页面 // @license MIT @@ -125,7 +125,7 @@ const marks = markAndBan.getUserMarks({ name, uid }) if (marks) { let marksDom = '' - marks.marks.forEach(item => marksDom += `${item.mark}`); + marks.marks.forEach(item => marksDom += `${item.mark}`); $(this).after(marksDom); } }) @@ -136,7 +136,7 @@ const markAndBan = this.mainScript.getModule('MarkAndBan'); if (markAndBan) { const currentUid = $el.find("a.userlink").attr("href").split("uid=")[1] + ''; - const currentName = $el.find("a.userlink").text().replace('楼主', ''); + const currentName = $el.find("a.userlink")[0].innerText.replace('楼主', ''); $el.find(".posterInfoLineB").each(function () { $(this).prepend(``) })