mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-03 04:18:16 +08:00
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user