You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await page.waitForTimeout(50000); // Rest your eyes for five seconds
// other actions...
await browser.close();
})();
The problem Is that AvailWidth and AvailHeight are not the same like OuterHeight and OuterWidth.
screenshot: https://prnt.sc/uos5t0
And Is there a way to change ColorDepth and PixelDepth In webkit?
The text was updated successfully, but these errors were encountered:
Found it myself use this: https://developer.mozilla.org/en-US/docs/Web/API
example:
Object.defineProperty(window.screen, 'availHeight', {
value: '667',
configurable: true // necessary to change value more than once
});
Im using webkit my code:
const { webkit, devices } = require('playwright');
const iPhone = devices['iPhone 6'];
(async () => {
const browser = await webkit.launch({ headless: false });
const context = await browser.newContext({
...iPhone
});
await context.addInitScript({
path: 'evasions.js'
});
const page = await context.newPage();
await page.goto('https://bot.sannysoft.com/');
await page.waitForTimeout(50000); // Rest your eyes for five seconds
// other actions...
await browser.close();
})();
The problem Is that AvailWidth and AvailHeight are not the same like OuterHeight and OuterWidth.
screenshot: https://prnt.sc/uos5t0
And Is there a way to change ColorDepth and PixelDepth In webkit?
The text was updated successfully, but these errors were encountered: