Skip to content

Commit ad5756a

Browse files
committed
since ChatGPT has relaxed the web API request restrictions, it is no longer necessary to simulate input to retrieve data (#869)
1 parent 6e56201 commit ad5756a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content-script/index.jsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,17 @@ async function prepareForForegroundRequests() {
389389
)
390390
return
391391

392-
if (location.pathname === '/') {
393-
const input = document.querySelector('#prompt-textarea')
394-
if (input) {
395-
input.textContent = ' '
396-
input.dispatchEvent(new Event('input', { bubbles: true }))
397-
setTimeout(() => {
398-
input.textContent = ''
399-
input.dispatchEvent(new Event('input', { bubbles: true }))
400-
}, 300)
401-
}
402-
}
392+
// if (location.pathname === '/') {
393+
// const input = document.querySelector('#prompt-textarea')
394+
// if (input) {
395+
// input.textContent = ' '
396+
// input.dispatchEvent(new Event('input', { bubbles: true }))
397+
// setTimeout(() => {
398+
// input.textContent = ''
399+
// input.dispatchEvent(new Event('input', { bubbles: true }))
400+
// }, 300)
401+
// }
402+
// }
403403

404404
await Browser.runtime.sendMessage({
405405
type: 'SET_CHATGPT_TAB',

0 commit comments

Comments
 (0)