kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
chatgpt-api-old-v3
rodzic
af7ac799a6
commit
478e728c30
|
@ -420,15 +420,16 @@ export async function initializeNopechaExtension(
|
||||||
await page3.goto(extensionUrl, { waitUntil: 'networkidle2' })
|
await page3.goto(extensionUrl, { waitUntil: 'networkidle2' })
|
||||||
const editKey = await page3.waitForSelector('#edit_key .clickable')
|
const editKey = await page3.waitForSelector('#edit_key .clickable')
|
||||||
await editKey.click()
|
await editKey.click()
|
||||||
|
await delay(100)
|
||||||
|
|
||||||
for (let i = 0; i <= 30; i++) {
|
for (let i = 0; i <= 30; i++) {
|
||||||
await page3.keyboard.press('Backspace')
|
await editKey.press('Backspace')
|
||||||
}
|
}
|
||||||
|
|
||||||
await page3.keyboard.type(nopechaKey)
|
await editKey.type(nopechaKey)
|
||||||
await delay(1000)
|
await delay(500)
|
||||||
await page3.keyboard.press('Enter')
|
await editKey.press('Enter')
|
||||||
await delay(1000)
|
await delay(2500)
|
||||||
console.log('initialized nopecha extension with key', nopechaKey)
|
console.log('initialized nopecha extension with key', nopechaKey)
|
||||||
} else {
|
} else {
|
||||||
console.error(
|
console.error(
|
||||||
|
|
Ładowanie…
Reference in New Issue