From df05baddf7528d1e2d69408842458fc3018ff595 Mon Sep 17 00:00:00 2001 From: Adam Lui Date: Sun, 1 Dec 2024 12:40:30 -0800 Subject: [PATCH] Updated `.getNewChatButton()` selector --- chatgpt.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chatgpt.js b/chatgpt.js index a60183e36..fa93f0535 100644 --- a/chatgpt.js +++ b/chatgpt.js @@ -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"])'); },