fix chatgpt web mode arkose_token (#469, #543, #545)

This commit is contained in:
josc146
2023-10-30 12:58:04 +08:00
parent 74033b538f
commit 4859e9a905
18 changed files with 127 additions and 22 deletions
+12
View File
@@ -319,6 +319,18 @@ async function prepareForForegroundRequests() {
render(<NotificationForChatGPTWeb container={div} />, div)
}
if (location.pathname === '/') {
const input = document.querySelector('#prompt-textarea')
if (input) {
input.textContent = ' '
input.dispatchEvent(new Event('input', { bubbles: true }))
setTimeout(() => {
input.textContent = ''
input.dispatchEvent(new Event('input', { bubbles: true }))
}, 300)
}
}
await Browser.runtime.sendMessage({
type: 'SET_CHATGPT_TAB',
data: {},