diff --git a/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js b/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js index b620458..d2b91a2 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.5 +// @version 1.0.6 // @author lifegpc // @description 支持移动端页面 // @license MIT @@ -119,6 +119,8 @@ const $ = this.mainScript.libs.$; 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('楼主', ''); $el.find('a.b').each(function () { const name = $(this).attr('hld-mark-before-name') || $(this).text().replace('[', '').replace(']', '') const uid = ($(this).attr('href') && $(this).attr('href').indexOf('uid=') > -1) ? $(this).attr('href').split('uid=')[1] + '' : '' @@ -130,10 +132,26 @@ $(this).after(marksDom); } }) + $el.find(".posterInfoLineB").each(function () { + $(this).prepend(``) + }) } } }, - style: `` + style: `.hld__mobile_extra-icon { + background-color: transparent; + margin: 0px; + border-left-width: 0px; + border-left-style: solid; + border-color: inherit; + padding: 0.625em 1.2em; + line-height: 1.8em; + display: inline-block; + } + .hld__mobile_extra-icon svg { + height: 1.8em; + width: 1.3em; + }` } registerPlugin(MobileSupport)