Skip to content

Commit

Permalink
Updated .getNewChatButton() selector
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored Dec 1, 2024
1 parent 7afb045 commit df05bad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,10 @@ const chatgpt = {
getHeaderDiv() { return chatgpt.header.get(); },
getLastPrompt() { return chatgpt.getChatData('active', 'msg', 'user', 'latest'); },
getLastResponse() { return chatgpt.getChatData('active', 'msg', 'chatgpt', 'latest'); },
getNewChatButton() { return document.querySelector('button[data-testid*="new-chat-button"]'); },

getNewChatButton() {
return document.querySelector('button[data-testid*="new-chat-button"], button:has([d^="M15.6729"])'); },

getNewChatLink() { return document.querySelector('nav a[href="/"]'); },
getRegenerateButton() { return document.querySelector('button:has([d^="M3.06957"])'); },

Expand Down

0 comments on commit df05bad

Please sign in to comment.