Last active
August 22, 2025 06:24
-
-
Save T1ckbase/3b762018076f5068292d6ebdc914e77c to your computer and use it in GitHub Desktop.
Revisions
-
T1ckbase revised this gist
Aug 22, 2025 . 2 changed files with 11 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import { chromium, devices } from 'playwright-core'; const browser = await chromium.launch({ headless: false, args: ['--disable-blink-features=AutomationControlled'], // @ts-ignore assistantMode: true, }); const context = await browser.newContext({ ...devices['Desktop Chrome'], }); -
T1ckbase created this gist
Mar 26, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ // https://bot.sannysoft.com // https://www.browserscan.net/bot-detection // https://fingerprintjs.github.io/BotD/main/ // Webdriver const defaultGetter = Object.getOwnPropertyDescriptor(Navigator.prototype, 'webdriver').get; // defaultGetter.apply(navigator); // true // defaultGetter.toString(); // 'function get webdriver() { [native code] }' Object.defineProperty(Navigator.prototype, 'webdriver', { set: undefined, enumerable: true, configurable: true, get: new Proxy(defaultGetter, { apply: (target, thisArg, args) => { // emulate getter call validation Reflect.apply(target, thisArg, args); return false; }}) }); // const patchedGetter = Object.getOwnPropertyDescriptor(Navigator.prototype, 'webdriver').get; // patchedGetter.apply(navigator); // false // patchedGetter.toString(); // 'function () { [native code] }' // CDP console.debug = () => {};