Skip to content

Commit

Permalink
Updated footer methods to work w/ new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored Dec 8, 2024
1 parent 2832a62 commit 86f0e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,20 +621,20 @@ const chatgpt = {
focusChatbar() { chatgpt.getChatBox()?.focus(); },

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

hide() {
const footer = chatgpt.footer.get();
if (!footer) return console.error('Footer element not found!');
if (footer.style.visibility == 'hidden') return console.info('Footer already hidden!');
footer.style.visibility = 'hidden'; footer.style.height = '3px';
footer.style.display = 'none';
},

show() {
const footer = chatgpt.footer.get();
if (!footer) return console.error('Footer element not found!');
if (footer.style.visibility != 'hidden') return console.info('Footer already shown!');
footer.style.visibility = footer.style.height = 'inherit';
footer.style.display = 'inherit'
}
},

Expand Down

0 comments on commit 86f0e13

Please sign in to comment.