rebrowser-playwright-core 1.64.100 → 1.64.101
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/lib/coreBundle.js +5 -3
- package/package.json +1 -1
package/lib/coreBundle.js
CHANGED
|
@@ -45057,11 +45057,13 @@ ${remoteDebuggingHint(channel)}`);
|
|
|
45057
45057
|
chromeArguments.push(`--proxy-bypass-list=${proxyBypassRules.join(";")}`);
|
|
45058
45058
|
}
|
|
45059
45059
|
if (process.env["REBROWSER_PATCHES_WEBDRIVER_FIX"] !== "0") {
|
|
45060
|
+
const featuresPrefix = "--disable-features=";
|
|
45061
|
+
const patchedArguments = chromeArguments.filter((arg2) => arg2 !== "--disable-ipc-flooding-protection" && arg2 !== "--disable-popup-blocking").map((arg2) => arg2.startsWith(featuresPrefix) ? featuresPrefix + arg2.substring(featuresPrefix.length).split(",").filter((f) => f !== "ThirdPartyStoragePartitioning").join(",") : arg2);
|
|
45060
45062
|
const blinkPrefix = "--disable-blink-features=";
|
|
45061
45063
|
const userBlinkFeatures = args.filter((arg2) => arg2.startsWith(blinkPrefix)).flatMap((arg2) => arg2.substring(blinkPrefix.length).split(",")).map((f) => f.trim()).filter(Boolean);
|
|
45062
|
-
|
|
45063
|
-
|
|
45064
|
-
return
|
|
45064
|
+
patchedArguments.push(blinkPrefix + [.../* @__PURE__ */ new Set(["AutomationControlled", ...userBlinkFeatures])].join(","));
|
|
45065
|
+
patchedArguments.push(...args.filter((arg2) => !arg2.startsWith(blinkPrefix)));
|
|
45066
|
+
return patchedArguments;
|
|
45065
45067
|
}
|
|
45066
45068
|
chromeArguments.push(...args);
|
|
45067
45069
|
return chromeArguments;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebrowser-playwright-core",
|
|
3
|
-
"version": "1.64.
|
|
3
|
+
"version": "1.64.101",
|
|
4
4
|
"description": "A drop-in replacement for playwright-core patched with rebrowser-patches. It allows to pass modern automation detection tests.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rebrowser",
|