Skip to content

Commit e0a4743

Browse files
committed
Updated selectors.btns.newChat to work on mobile ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]
1 parent ca01e14 commit e0a4743

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extension/lib/chatgpt.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ const chatgpt = {
2828
createImage: 'button[data-testid="composer-create-image"]',
2929
deepResearch: 'button[data-testid="composer-deep-research"]',
3030
login: 'button[data-testid*=login]',
31-
newChat: 'a[data-testid=create-new-chat-button],' // sidebar button (when logged in)
32-
+ 'button:has(path[d^="M3.06957"]),' // Cycle Arrows icon (Temp chat mode)
33-
+ 'a:has(> svg > path[d^="M15.6729"])', // Pencil icon (recorded chat mode)
31+
newChat: 'a[href="/"]:has(svg),' // Pencil button (when logged in)
32+
+ 'button:has([d^="M3.06957"])', // Cycle Arrows button (in temp chat logged out)
3433
regen: 'button[data-testid*=regenerate],' // oval button in place of chatbar on errors
3534
// 'Try Again' entry of model selector below msg
3635
+ 'div[role=menuitem] div:has(svg):has(path[d^="M3.06957"])',

0 commit comments

Comments
 (0)