Skip to content

fix: avoid in-page redirect in facebook search#642

Merged
jackwener merged 2 commits intojackwener:mainfrom
Astro-Han:fix/facebook-search
Mar 31, 2026
Merged

fix: avoid in-page redirect in facebook search#642
jackwener merged 2 commits intojackwener:mainfrom
Astro-Han:fix/facebook-search

Conversation

@Astro-Han
Copy link
Copy Markdown
Contributor

Description

Fix facebook/search so it navigates to the search results page in the pipeline before extracting DOM data, instead of triggering window.location.href inside evaluate.

Related issue: #625

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

  • npx vitest run src/clis/facebook/search.test.ts --project adapter
  • npm test
  • pnpm exec tsc --noEmit && pnpm run build

Astro-Han and others added 2 commits March 31, 2026 22:21
Replace `waitUntil: none` + separate `wait: 4` step with `settleMs: 4000`
on the navigate step. This is consistent with other Facebook adapters
(feed.yaml, memories.yaml, profile.yaml) and lets the navigate step
handle the timing in one place.
@jackwener jackwener force-pushed the fix/facebook-search branch from a034b9b to 9308985 Compare March 31, 2026 14:25
@jackwener jackwener merged commit 519b3cf into jackwener:main Mar 31, 2026
9 checks passed
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.

2 participants