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(``) })