Skip to content

fix(web): distinguish login walls from captcha frames - #10

Merged
Verlintas merged 1 commit into
mainfrom
fix/web-state-real-regression
Nov 8, 2026
Merged

Verlintas merged 1 commit into
mainfrom
fix/web-state-real-regression

Conversation

@Verlintas

Copy link
Copy Markdown
Owner

目标

在真机上回归 HN / Reddit / Stack Overflow,并修正网页状态识别,避免把可读内容页误报成验证码。

变更

  • 登录墙优先于隐藏 captcha iframe:old Reddit 登录墙 → LOGIN_REQUIRED。
  • 内容页的隐藏 captcha iframe 不再误报:新版 Reddit 搜索 → READY。
  • 识别 Just a moment... / Human verification:Stack Overflow → CAPTCHA。
  • 只有隐藏 captcha 且文本短/元素少时才判 CAPTCHA;登录页优先按 URL/密码框/登录文案判断。
  • 文档记录真机矩阵,移除过时的只读措辞。

真机结果(Xiaomi 17 Pro Max,devtest,daily 数据未动)

  • HN Algolia:open + wait 12s → 83 个结果元素/标题,READY
  • Reddit 新版:公开搜索 READY,标题/链接可读
  • Reddit old:登录墙 LOGIN_REQUIRED
  • Stack Overflow:/nocaptcha CAPTCHA
  • Wikipedia:READY
  • HN network:未捕获资源(worker/SSR),不影响 wait/snapshot 读取

验证

  • test / lintDebug / assembleDebug / assembleRelease、许可证头、三语 strings、58 工具 schema 全过
  • 新增登录墙 / 隐藏 captcha iframe 的单元测试

Prioritize login walls over hidden captcha iframes, ignore hidden captcha frames on content pages, and recognize Just a moment / Human verification. Record the HN Algolia, new Reddit, old Reddit, Stack Overflow and Wikipedia real-device results in the docs, and remove stale read-only wording.
@Verlintas
Verlintas merged commit c77bb74 into main Nov 8, 2026
1 check passed
@Verlintas
Verlintas deleted the fix/web-state-real-regression branch November 8, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant