updated chatgpt_getRegenerateButton to correctly handling a change in the ChatGPT web interface. related to #43
This commit is contained in:
parent
8052b68648
commit
5bd85500bf
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ async function chatgpt_isIdle() {
|
|||
|
||||
function chatgpt_getRegenerateButton() {
|
||||
for (const mainSVG of document.querySelectorAll('main svg')) {
|
||||
if (mainSVG.querySelector('path[d*="M4.5 2.5C5.05228"]')) // regen icon found
|
||||
if (mainSVG.querySelector('path[d*="M3.07 10.876C3.623"]')) // regen icon found
|
||||
return mainSVG.parentNode.parentNode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue