brave-real-playwright-core 1.55.0-brave.2025.9.11.18 → 1.55.0-brave.2025.9.11.20

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 CHANGED
@@ -46,7 +46,7 @@ await page.goto('https://bot-detector.rebrowser.net/');
46
46
 
47
47
  - **playwright-core**: v1.55.0
48
48
  - **rebrowser-patches**: Latest stealth optimizations
49
- - **Brave optimization**: v2025.09.11.18
49
+ - **Brave optimization**: v2025.09.11.20
50
50
 
51
51
  ## 🔗 Links
52
52
 
@@ -280,30 +280,6 @@ class CRSession extends import_instrumentation.SdkObject {
280
280
  process.env["REBROWSER_PATCHES_DEBUG"] && console.log(`[rebrowser-patches][getIsolatedWorld] result:`, createIsolatedWorldResult);
281
281
  return createIsolatedWorldResult.executionContextId;
282
282
  }
283
- __re__getStealthScript() {
284
- return `
285
- (function() {
286
- if ('webdriver' in navigator) {
287
- delete navigator.webdriver;
288
- }
289
- Object.defineProperty(navigator, 'webdriver', {
290
- get: () => undefined,
291
- configurable: true,
292
- enumerable: false
293
- });
294
- if (window.chrome) {
295
- delete window.chrome.runtime;
296
- delete window.chrome.loadTimes;
297
- delete window.chrome.csi;
298
- }
299
- ['_phantom', '__nightmare', 'callPhantom', '_selenium',
300
- '__selenium_unwrapped', '__puppeteer__', 'puppeteer',
301
- '__playwright__', 'playwright'].forEach(indicator => {
302
- if (window[indicator]) delete window[indicator];
303
- });
304
- })();
305
- `;
306
- }
307
283
  }
308
284
  class CDPSession extends import_instrumentation.SdkObject {
309
285
  constructor(parentSession, sessionId) {
@@ -38,20 +38,6 @@ var import_stackTrace = require("../../utils/isomorphic/stackTrace");
38
38
  var import_utilityScriptSerializers = require("../../utils/isomorphic/utilityScriptSerializers");
39
39
  var js = __toESM(require("../javascript"));
40
40
  var dom = __toESM(require("../dom"));
41
-
42
- const REBROWSER_PLAYWRIGHT_STEALTH_SCRIPT = `
43
- (function() {
44
- if ('webdriver' in navigator) {
45
- delete navigator.webdriver;
46
- }
47
- Object.defineProperty(navigator, 'webdriver', {
48
- get: () => undefined,
49
- configurable: false,
50
- enumerable: false
51
- });
52
- })();
53
- `;
54
-
55
41
  var import_protocolError = require("../protocolError");
56
42
  class CRExecutionContext {
57
43
  constructor(client, contextPayload) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-playwright-core",
3
- "version": "1.55.0-brave.2025.09.11.18",
3
+ "version": "1.55.0-brave.2025.09.11.20",
4
4
  "description": "Brave-optimized Playwright Core with comprehensive stealth patches and error stack sanitization",
5
5
  "keywords": [
6
6
  "playwright",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "brave": {
48
48
  "optimized": true,
49
- "version": "2025.09.11.18",
49
+ "version": "2025.09.11.20",
50
50
  "features": [
51
51
  "error-stack-sanitization",
52
52
  "ultra-fast-timing",