@rezkam/browser-tools 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/scripts/browser-control.mjs +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @rezkam/browser-tools
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b8a738f: Headless launches no longer report automation or Chrome's default 800x600 screen. They disable the `AutomationControlled` Blink feature so `navigator.webdriver` is false, and present a 1920x1080 screen with a 1920x1040 window, so bot defenses that reject those headless signals treat the browser like a windowed one.
|
|
8
|
+
|
|
3
9
|
## 1.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rezkam/browser-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Sandboxed, owner-token-protected Chrome automation for AI agents: control pages, record and review GIFs, capture HAR and raw CDP events, send CDP calls, and manage Chrome profiles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -1027,7 +1027,9 @@ export function chromeLaunchArgs({ port = DEFAULT_PORT, profileName = null, mana
|
|
|
1027
1027
|
];
|
|
1028
1028
|
// New headless runs the full browser (extensions and the copied profile still load) without opening
|
|
1029
1029
|
// a window. Old --headless is a separate lightweight engine that ignores extensions, so keep =new.
|
|
1030
|
-
|
|
1030
|
+
// Bot defenses reject navigator.webdriver and headless Chrome's default 800x600 screen, so a
|
|
1031
|
+
// headless launch hides the automation flag and reports a common desktop display.
|
|
1032
|
+
if (headless) args.push('--headless=new', '--disable-blink-features=AutomationControlled', '--window-size=1920,1040', '--screen-info={1920x1080}');
|
|
1031
1033
|
// A headless launch otherwise advertises a "HeadlessChrome" User-Agent. When the copied profile is
|
|
1032
1034
|
// signed in to Google, that headless fingerprint trips Google's session-theft protection and logs the
|
|
1033
1035
|
// source profile out, while a windowed launch (normal Chrome UA) does not. Present the normal UA so a
|