同步上游修复: 查看用户回复时错误地将其标记为楼主

This commit is contained in:
2024-02-28 12:50:29 +08:00
parent fe40723edb
commit 4a63628607
2 changed files with 4 additions and 4 deletions

View File

@@ -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(','))
}

View File

@@ -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(','))
}