add script for launch browser with preload extensions with puppeteer, so that can lead user copy cookie manually.

This commit is contained in:
geekgeekrun
2024-03-01 09:53:24 +08:00
parent ff61eb2bf5
commit d0c8dc0410
6 changed files with 609 additions and 4 deletions
@@ -44,6 +44,11 @@ export async function initPuppeteer () {
StealthPlugin = importResult[1].default
}
puppeteer.use(StealthPlugin())
return {
puppeteer,
StealthPlugin
}
}
const bossCookies = readStorageFile('boss-cookie.json')