Skip to content

Commit

Permalink
Bumped getNewChatButton() ↞ [auto-sync from https://github.com/adam…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 20, 2024
1 parent c86b48a commit daa753e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion chrome/extension/lib/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ const chatgpt = {

footer: { get() { return document.querySelector('main form')?.parentNode.parentNode.nextElementSibling; }},
getFooterDiv() { return chatgpt.footer.get(); },
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="/"]'); },
getSendButton() { return document.querySelector('[data-testid="send-button"]'); },
isDarkMode() { return document.documentElement.classList.toString().includes('dark'); },
Expand Down
5 changes: 4 additions & 1 deletion firefox/extension/lib/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ const chatgpt = {

footer: { get() { return document.querySelector('main form')?.parentNode.parentNode.nextElementSibling; }},
getFooterDiv() { return chatgpt.footer.get(); },
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="/"]'); },
getSendButton() { return document.querySelector('[data-testid="send-button"]'); },
isDarkMode() { return document.documentElement.classList.toString().includes('dark'); },
Expand Down

0 comments on commit daa753e

Please sign in to comment.