From 4a63628607eafae5ac337cb41470f4066f4ec97b Mon Sep 17 00:00:00 2001 From: lifegpc Date: Wed, 28 Feb 2024 12:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=8A=E6=B8=B8=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=9A=20=E6=9F=A5=E7=9C=8B=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=97=B6=E9=94=99=E8=AF=AF=E5=9C=B0=E5=B0=86?= =?UTF-8?q?=E5=85=B6=E6=A0=87=E8=AE=B0=E4=B8=BA=E6=A5=BC=E4=B8=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js | 4 ++-- NGA_BBS_plugins/MobileSupport/MobileSupport.user.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js b/NGA_BBS_plugins/MobileSupport/MobieSupport.userscripts.js index f226e61..45721c8 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.9 +// @version 1.0.10 // @author lifegpc // @description 支持移动端页面 // @license MIT @@ -102,7 +102,7 @@ const author = $('#postauthor0.userlink').text().replace('楼主', ''); const tid = authorMark.getQueryString('tid') const authorStr = `${tid}:${author}` - if (author && !authorMark.postAuthor.includes(authorStr) && !window.location.href.includes('authorid')) { + if (author && !authorMark.postAuthor.includes(authorStr) && ['authorid=', 'pid='].every(k => !window.location.href.includes(k))) { authorMark.postAuthor.unshift(authorStr) > 10 && authorMark.postAuthor.pop() this.mainScript.setValue('hld__NGA_post_author', authorMark.postAuthor.join(',')) } diff --git a/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js b/NGA_BBS_plugins/MobileSupport/MobileSupport.user.js index 77d9eac..f0c88ef 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.9 +// @version 1.0.10 // @author lifegpc // @description 支持移动端页面 // @license MIT @@ -103,7 +103,7 @@ const author = $('#postauthor0.userlink').text().replace('楼主', ''); const tid = authorMark.getQueryString('tid') const authorStr = `${tid}:${author}` - if (author && !authorMark.postAuthor.includes(authorStr) && !window.location.href.includes('authorid')) { + if (author && !authorMark.postAuthor.includes(authorStr) && ['authorid=', 'pid='].every(k => !window.location.href.includes(k))) { authorMark.postAuthor.unshift(authorStr) > 10 && authorMark.postAuthor.pop() this.mainScript.setValue('hld__NGA_post_author', authorMark.postAuthor.join(',')) }