Commit Graph

163 Commits

Author SHA1 Message Date
Magnus Müller ec43c5c81e Fix misleading extension log message
- Track actual loaded extension names instead of hardcoding them
- Log message now accurately reflects which extensions loaded successfully
- Count and names will match even if some extensions fail to load
- Fixes bug where log mentioned 'Reader View' which was removed from extension list
2025-07-19 16:06:53 +02:00
Magnus Müller 7b87d3324f Only keep ClearURLs 2025-07-19 16:04:19 +02:00
Magnus Müller 42753241cf Add ClearURLs and Reader View extensions for improved extraction
- Add ClearURLs for automatic URL tracking parameter removal
- Add Reader View (Mozilla Readability-based) for content extraction
- Reader View requires manual activation but can be triggered via Playwright
- Update descriptions to reflect automation-optimized extension set
- These additions improve content extraction capabilities while maintaining clean automation
2025-07-19 16:00:35 +02:00
Magnus Müller 1a522b2251 Simplify to essential extensions only to prevent welcome tabs
- Remove Decentraleyes (nice-to-have performance boost, but uBlock Origin covers most tracking)
- Remove ClearURLs (URL cleaning, but not critical for automation)
- Remove FastForward (likely causing welcome tabs, most automation doesn't hit link shorteners)
- Keep only uBlock Origin (essential ad/tracker blocking) and I still don't care about cookies (essential cookie banner handling)
- Set default back to True since these 2 core extensions should not cause welcome tab issues
- Update descriptions to reflect minimal essential set

This gives maximum automation reliability with minimal extension overhead.
2025-07-19 15:56:32 +02:00
Magnus Müller 0ea8ccbff6 Add Chrome flags to suppress extension welcome tabs
- Add --disable-extensions-http-throttling to prevent extension communication issues
- Add --disable-extension-activity-logging to reduce extension logging overhead
- Add --extensions-on-chrome-urls to allow extensions on chrome:// pages
- Add --disable-default-apps to prevent default app welcome screens

These flags help prevent extensions from opening welcome/onboarding tabs that interfere with automation.
2025-07-19 15:53:19 +02:00
Magnus Müller 76adb03633 Merge remote-tracking branch 'origin/main' into feature/optimize-browser-extensions 2025-07-19 15:47:01 +02:00
Magnus Müller e0da77b545 Disable extensions by default 2025-07-19 15:41:04 +02:00
Magnus Müller c3f2fbba1e True extension 2025-07-19 11:48:27 +02:00
Magnus Müller 65f4c01bce Disable extension by default comparison 2025-07-19 11:02:21 +02:00
Magnus Müller 48b1c5d202 No extension 2025-07-19 03:25:37 +02:00
Magnus Müller 59992e236a Optimize browser extensions for automation
- Update 'I don't care about cookies' to 'I still don't care about cookies' (community-maintained)
- Add Decentraleyes for CDN tracking protection and performance
- Add ClearURLs for automatic URL tracking parameter removal
- Add FastForward for automatic link shortener bypass
- Remove Privacy Badger (requires learning over multiple sessions)
- Remove 'Don't track me Google' (redundant with other extensions)
- Remove 'Block image' (requires manual activation, unusable in automation)

Final extension set: 5 fully automatic extensions optimized for single-session browser automation
2025-07-19 02:29:31 +02:00
Magnus Müller 05fe25a454 Change cookie extension to i still dont care about cookies 2025-07-19 02:13:12 +02:00
Magnus Müller ce5ba6bc06 Install by default 2025-07-16 21:51:26 +02:00
Magnus Müller 10448eb97a Load addblocker and cookie banner 2025-07-16 21:51:16 +02:00
Magnus Müller 48c9035566 Merge remote-tracking branch 'origin/main' into laminar-ignore-input-output 2025-07-14 13:23:45 +02:00
Nick Sweeting 73fe288370 only warn storage_state conflict with user_data_dir when not tmp user_data_dir 2025-07-09 14:00:17 -07:00
Magnus Müller 6407c10918 laminar-ignore input output 2025-07-09 22:27:22 +02:00
Nick Sweeting 986b385eb3 use all docker args if chromium_sandbox=False 2025-07-08 06:16:44 -07:00
Nick Sweeting ecedc0cfcb Update browser_use/browser/profile.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-08 02:03:54 -04:00
Nick Sweeting 3dfb6f8d14 always use CDP for local browser instead of playwright 2025-07-07 22:44:39 -07:00
Magnus Müller 6cf09effbc Refactor observability import in browser profile module
- Moved the `observe_debug` import from `observability` to `browser_use.observability` for better module organization and clarity.
2025-07-07 13:08:07 +02:00
Magnus Müller 5bde6dbe98 Enhance observability by adding debug observation points in browser profile and session classes
- Added `@observe_debug` decorators to methods in `BrowserProfile` and `BrowserSession` to track display configuration, connection methods, and setup processes.
- Updated `eval/service.py` to initialize Laminar with specific disabled instruments and corrected the usage of the `observe` decorator for the `run_agent_with_browser` function.
2025-07-07 12:55:22 +02:00
Nick Sweeting 13048669e2 reset browser connection when screenshot fails 2025-06-26 19:07:09 -07:00
Nick Sweeting 8dfad7e557 tweak chrome launch args in docker to fix screenshots 2025-06-26 18:48:46 -07:00
Nick Sweeting 3cf9f3410c fix config issues 2025-06-21 04:03:58 -07:00
Nick Sweeting 7eca549919 warn if using deterministic rendering 2025-06-21 03:14:46 -07:00
Nick Sweeting 49e9fd4ff2 move env var config to utils file 2025-06-21 03:14:46 -07:00
yasithdev 8ea4b4c71a centralize playwright/patchwright imports, and update typing/checks to reduce lint errors 2025-06-16 22:57:20 -04:00
Nick Sweeting fdf4fd6b9c Update browser_use/browser/profile.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-13 20:33:17 -04:00
Nick Sweeting ac0948e106 move prepare_user_data_dir to BrowserSession class 2025-06-13 17:04:40 -07:00
Nick Sweeting 46cfa54c0d setup better aliases for old config keys 2025-06-13 17:03:31 -07:00
Nick Sweeting 582c039c15 make save_context and other file operations async, setup traces and other dirs on startup 2025-06-12 18:38:12 -07:00
Nick Sweeting 9a08e3b031 add better logging with reference ids for each object 2025-06-10 02:10:57 -07:00
Nick Sweeting 2ebb9db6f1 tweak logging and emoji 2025-06-09 21:18:04 -07:00
Nick Sweeting e71f8719f9 change default user_data_dir to be None 2025-06-09 21:00:33 -07:00
Nick Sweeting f12ba13915 remove redundant populate_by_name deprecated arg 2025-06-09 18:35:59 -07:00
Nick Sweeting 6d2826b37a show 4 chars of id instead of 3 2025-06-05 23:28:53 -07:00
Nick Sweeting cf6a0d9fbf improve chrome launch error handling when user_data_dir is bad 2025-06-05 18:22:02 -07:00
Nick Sweeting d3c14e1740 add BrowserSession stealth option 2025-06-05 02:21:10 -07:00
Nick Sweeting 767a75e2bf rename downloads_dir to downloads_path 2025-06-05 02:17:57 -07:00
Nick Sweeting d41ee112b0 fix downloads check on click timing out 2025-05-30 03:56:42 -07:00
Nick Sweeting a85ae8ca3c merge save_downloads_path and downloads_dir duplicate options 2025-05-29 14:51:21 -07:00
Nick Sweeting 4391eeba4d re-enable scrollbars in screenshots 2025-05-29 11:45:06 -07:00
Nick Sweeting 4b48900af9 show warning when BrowserSession gets conflicting config params 2025-05-27 23:34:23 -07:00
Nick Sweeting f5bb3828a0 re-add support for cookies_file param 2025-05-27 20:50:31 -07:00
Alezander9 bf13e9dca7 remove problematic env display inherit code 2025-05-26 20:12:09 -07:00
Nick Sweeting 74afa65d69 remove dead code, cleanup examples and tests 2025-05-26 18:38:30 -07:00
Nick Sweeting f19adf9bb3 remove dead code, cleanup examples and tests 2025-05-26 18:37:52 -07:00
Nick Sweeting c2db247bac Add support for browser-use -p 'some prompt here...' oneshot CLI (#1797) 2025-05-26 18:30:14 -07:00
Nick Sweeting 94c6d50253 fix screen and viewport logic 2025-05-26 17:35:56 -07:00