Repository navigation
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 1 high |
| CodeStyle | 4 minor |
| Complexity | 1 medium 2 minor |
🟢 Metrics 39 complexity · 0 duplication
Metric Results Complexity 39 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
PureNGA 3.5.2 在翻页时偶尔漏掉楼主高亮。相邻页面会预加载,但注入逻辑共用同一个 WebView 引用,页面切换时可能漏掉当前页。
隐藏 ID 帖还有一个匹配问题。NGA 页面显示的是楼主化名,插件拿到的是匿名标识,直接比较会匹配失败。
改动
finishLoad和onPageFinished分别使用自己对应的 WebView,确保每页收到自己的高亮数据。pid定位并给昵称上色。MutationObserver响应楼层变化,移除定时轮询。重复注入时复用监听器,自定义脚本每个文档只执行一次。验证
在 NGA 9.9.69 + LSPosed API 102 上用独立测试包验证:
assembleRelease编译通过。