mirror of
https://github.com/lencx/Noi.git
synced 2024-09-11 19:57:19 +03:00
Merge pull request #165 from ls-jingbo-jin/noi-ask-update-chatgpt-submit-button-selector
Noi-ask Extensions: Update ChatGPT submit btn selector
This commit is contained in:
commit
92b414419b
@ -48,7 +48,10 @@ class OpenAIAsk extends NoiAsk {
|
|||||||
static url = 'https://chatgpt.com';
|
static url = 'https://chatgpt.com';
|
||||||
|
|
||||||
static submit() {
|
static submit() {
|
||||||
const btn = document.querySelector('button[data-testid="send-button"]');
|
const forms = document.querySelectorAll('main form');
|
||||||
|
const form = forms[forms.length - 1];
|
||||||
|
const buttons = form.querySelectorAll('button');
|
||||||
|
const btn = buttons[buttons.length - 1];
|
||||||
if (btn) this.autoClick(btn);
|
if (btn) this.autoClick(btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user