rebrowser-playwright-core 1.64.100 → 1.64.102
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/README.md +4 -0
- package/lib/coreBundle.js +5 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
>
|
|
6
6
|
> 🪄 It's designed to be a drop-in replacement for the original `playwright-core` without changing your codebase. Each major and minor version of this repo matches the original repo, patch version could differ due to changes related to the patch itself.
|
|
7
7
|
>
|
|
8
|
+
> 📦 Install it in place of `playwright-core`: `npm install playwright-core@npm:rebrowser-playwright-core` ([details](https://github.com/rebrowser/rebrowser-patches#is-there-an-easy-drop-in-replacement)). Everything below this box is the original `playwright-core` README.
|
|
9
|
+
>
|
|
10
|
+
> 🔍 On GitHub, each version branch has two commits, the original package and then the patched one, so the second commit shows exactly what changed. Release notes are in [rebrowser-patches releases](https://github.com/rebrowser/rebrowser-patches/releases).
|
|
11
|
+
>
|
|
8
12
|
> ☝️ Make sure to read: [Patches for Puppeteer and Playwright](https://rebrowser.net/docs/patches-for-puppeteer-and-playwright)
|
|
9
13
|
>
|
|
10
14
|
> 🐛 Please report any issues in the [`rebrowser-patches`](https://github.com/rebrowser/rebrowser-patches/issues) repo.
|
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.102",
|
|
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",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://github.com/rebrowser/rebrowser-patches/issues"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://
|
|
29
|
+
"homepage": "https://github.com/rebrowser/rebrowser-patches#readme",
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=20"
|
|
32
32
|
},
|