Commit Graph

16 Commits

Author SHA1 Message Date
aladac c3eb4a0a92 Fix networkidle timeouts and Firefox cookie domain normalization
- Replace networkidle with domcontentloaded + 5s race in goto, click,
  and session_restore — SPAs with persistent connections (LinkedIn,
  Gmail) never reach networkidle
- Normalize .www. cookie domains in Firefox importer — Playwright
  silently drops cookies with .www.example.com domains

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 13:26:53 +02:00
aladac aac616a37c Fix Firefox cookie expiry conversion for Playwright
Some Firefox cookies store expiry in milliseconds instead of seconds.
Detect values beyond year 2100 and convert to seconds. Also map
zero/negative expiry to -1 for Playwright session cookies.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 13:09:15 +02:00
aladac 1d3192cffd Add Firefox cookie import and stealth mode
- Firefox cookie importer: reads cookies.sqlite with WAL-safe copy,
  profile detection via profiles.ini, cross-platform paths, domain filtering
- Stealth mode: opt-in via launch(stealth: true), patches navigator.webdriver,
  plugins/mimeTypes, permissions API, WebGL renderer, iframe isolation,
  languages, plus realistic Safari UA and context hardening
- Import tool now accepts 'safari' | 'firefox' source
- STEALTH.md reference documentation
- Upgraded @types/node to v25 for node:sqlite support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 23:03:15 +02:00
Adam Ladachowski 1c4a7b5ef9 💬 Commit message: Update 2026-02-14 07:26:55, 21 files, 749 lines
📁 Files changed: 21
📝 Lines changed: 749

  • browser.d.ts
  • browser.d.ts.map
  • browser.js
  • browser.js.map
  • mcp.js
  • mcp.js.map
  • safari.d.ts
  • safari.d.ts.map
  • safari.js
  • safari.js.map
  • safari.test.d.ts
  • safari.test.d.ts.map
  • safari.test.js
  • safari.test.js.map
  • types.d.ts
  • types.d.ts.map
  • browser.ts
  • mcp.ts
  • safari.test.ts
  • safari.ts
  • types.ts
2026-02-14 07:26:55 +01:00
Adam Ladachowski d9f88a37c9 💬 Commit message: Update 2026-02-11 18:40:23, 20 files, 434 lines
📁 Files changed: 20
📝 Lines changed: 434

  • .mcp.json
  • plugin.json
  • settings.json
  • CLAUDE.md
  • analyze.md
  • compare.md
  • end.md
  • extract.md
  • fill.md
  • goto.md
  • restore.md
  • save.md
  • scrape.md
  • screenshot.md
  • start.md
  • mcp.js
  • mcp.js.map
  • package-lock.json
  • package.json
  • mcp.ts
2026-02-11 18:40:23 +01:00
Adam Ladachowski 3b6e915b47 Add fullscreen and preview modes
- Add --fullscreen flag for macOS native fullscreen (AppleScript)
- Add --preview flag to highlight elements before actions
- Add --preview-delay to configure highlight duration
- Update README with new options

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 17:42:44 +01:00
Adam Ladachowski 3014cf98e8 Remove HTTP server mode, keep MCP + CLI only
Drop express dependency and HTTP server in favor of MCP-only architecture.
CLI still works for quick screenshots and queries.

- Delete src/server.ts and src/server.test.ts
- Remove express, @types/express, supertest from dependencies
- Update CLI to show help when no URL provided
- Remove server exports from index.ts

-33 packages removed, 757 lines deleted.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-11 12:31:42 +01:00
Adam Ladachowski f5df8c67f3 💬 Commit message: Update 2026-02-11 12:18:05, 14 files, 1838 lines
📁 Files changed: 14
📝 Lines changed: 1838

  • CLAUDE.md
  • README.md
  • TODO.md
  • browser.d.ts
  • browser.d.ts.map
  • browser.js
  • browser.js.map
  • mcp.js
  • mcp.js.map
  • types.d.ts
  • types.d.ts.map
  • browser.ts
  • mcp.ts
  • types.ts
2026-02-11 12:18:06 +01:00
Adam Ladachowski f7df5d8f54 💬 Commit message: Update 2026-02-11 04:16:38, 12 files, 588 lines
📁 Files changed: 12
📝 Lines changed: 588

  • TODO.md
  • browser.d.ts
  • browser.d.ts.map
  • browser.js
  • browser.js.map
  • mcp.js
  • mcp.js.map
  • types.d.ts
  • types.d.ts.map
  • browser.ts
  • mcp.ts
  • types.ts
2026-02-11 04:16:38 +01:00
Adam Ladachowski 5a7466b67d 💬 Commit message: Update 2026-02-11 04:13:54, 13 files, 595 lines
📁 Files changed: 13
📝 Lines changed: 595

  • PLAN.md
  • TODO.md
  • browser.d.ts
  • browser.d.ts.map
  • browser.js
  • browser.js.map
  • mcp.js
  • mcp.js.map
  • types.d.ts
  • types.d.ts.map
  • browser.ts
  • mcp.ts
  • types.ts
2026-02-11 04:13:54 +01:00
Adam Ladachowski fd7ae5818d Fix MCP server name to browse
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 04:53:34 +01:00
Adam Ladachowski 09c34b804f 💬 Commit message: Update 2026-02-08 04:49:18, 8 files, 120 lines
📁 Files changed: 8
📝 Lines changed: 120

  • settings.json
  • .mcp.json
  • README.md
  • save.md
  • cli.js
  • cli.js.map
  • package.json
  • cli.ts
2026-02-08 04:49:18 +01:00
Adam Ladachowski 82dbae8a9c 💬 Commit message: Update 2026-02-08 04:31:06, 2 files, 4 lines
📁 Files changed: 2
📝 Lines changed: 4

  • mcp.js
  • mcp.js.map
2026-02-08 04:31:06 +01:00
Adam Ladachowski df37c89e49 💬 Commit message: Update 2026-02-08 04:14:33, 6 files, 36 lines
📁 Files changed: 6
📝 Lines changed: 36

  • cli.js
  • cli.js.map
  • mcp.js
  • mcp.js.map
  • cli.ts
  • mcp.ts
2026-02-08 04:14:33 +01:00
Adam Ladachowski ceb4d4ee58 💬 Commit message: Update 2026-02-08 04:06:19, 2 files, 6 lines
📁 Files changed: 2
📝 Lines changed: 6

  • mcp.js
  • mcp.js.map
2026-02-08 04:06:19 +01:00
Adam Ladachowski bc1f3d9d73 Add Claude Code plugin support with MCP prompts and resources
- Add .claude-plugin/plugin.json manifest (name: browse)
- Add 11 slash commands: start, end, goto, screenshot, scrape, analyze, extract, fill, compare, save, restore
- Add MCP resources: browser://state, browser://html, browser://screenshot
- Add MCP prompts: analyze_page, extract_data, navigate_to, fill_form, compare_screenshots
- Add session management tools: close, session_save, session_restore
- Include dist/ for plugin installation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 03:08:02 +01:00