Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension loading issue #262

Open
tramodule opened this issue Jan 14, 2025 · 1 comment
Open

extension loading issue #262

tramodule opened this issue Jan 14, 2025 · 1 comment
Labels
triage This ticket will be looked at shortly

Comments

@tramodule
Copy link

Description

--load-extension doesnt operate as expected

Full steps to reproduce the issue

args: [
--load-extension=${CAPTCHA_SONIC_EXTENSION_PATH}
],

Issue Type

No response

Operating System

No response

Do you use Docker?

None

@tramodule tramodule added the triage This ticket will be looked at shortly label Jan 14, 2025
@najibyahya
Copy link

najibyahya commented Jan 14, 2025

try this

const { connect } = require("puppeteer-real-browser");  
  
async function test() {  
    const extensionPath = 'C:\\Discord-Token-Login\\extension';  
  
    const { browser, page } = await connect({  
        headless: false,  
        args: [  
            `--disable-extensions-except=${extensionPath}`,  
            `--load-extension=${extensionPath}`  
        ],  
        customConfig: {},  
        turnstile: true,  
        connectOption: {},  
        disableXvfb: false,  
        ignoreAllFlags: false  
        // proxy:{  
        //     host:'<proxy-host>',  
        //     port:'<proxy-port>',  
        //     username:'<proxy-username>',  
        //     password:'<proxy-password>'  
        // }  
    });  
  
    await page.goto('https://discord.com/login');  
}  
  
test().catch(console.error);  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This ticket will be looked at shortly
Projects
None yet
Development

No branches or pull requests

2 participants