Skip to content

Commit 6025d16

Browse files
committed
Updated footer methods to work w/ new UI ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]
1 parent 86f0e13 commit 6025d16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

starters/chrome/extension/lib/chatgpt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,20 +621,20 @@ const chatgpt = {
621621
focusChatbar() { chatgpt.getChatBox()?.focus(); },
622622

623623
footer: {
624-
get() { return document.querySelector('main form')?.parentNode.parentNode.nextElementSibling; },
624+
get() { return document.querySelector('.min-h-4'); },
625625

626626
hide() {
627627
const footer = chatgpt.footer.get();
628628
if (!footer) return console.error('Footer element not found!');
629629
if (footer.style.visibility == 'hidden') return console.info('Footer already hidden!');
630-
footer.style.visibility = 'hidden'; footer.style.height = '3px';
630+
footer.style.display = 'none';
631631
},
632632

633633
show() {
634634
const footer = chatgpt.footer.get();
635635
if (!footer) return console.error('Footer element not found!');
636636
if (footer.style.visibility != 'hidden') return console.info('Footer already shown!');
637-
footer.style.visibility = footer.style.height = 'inherit';
637+
footer.style.display = 'inherit'
638638
}
639639
},
640640

starters/chrome/extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "ChatGPT Extension",
44
"short_name": "ChatGPT 🧩",
55
"description": "A Chromium extension template to start using chatgpt.js like a boss!",
6-
"version": "2024.12.5",
6+
"version": "2024.12.7",
77
"author": "KudoAI",
88
"homepage_url": "https://github.com/KudoAI/chatgpt.js-chrome-starter",
99
"icons": {

0 commit comments

Comments
 (0)