add screenshot show

This commit is contained in:
geekgeekrun
2026-01-15 12:46:16 +08:00
parent 69ec879967
commit 860847963b
7 changed files with 119 additions and 24 deletions
@@ -1468,8 +1468,9 @@ export async function mainLoop (hooks) {
height: 900 - 140,
}
})
hooks.puppeteerLaunched?.call()
hooks.puppeteerLaunched?.call(browser)
page = (await browser.pages())[0]
hooks.pageGotten?.call(page)
//set cookies
hooks.cookieWillSet?.call(bossCookies)
for(let i = 0; i < bossCookies.length; i++){