Skip to content

Commit

Permalink
Added chatgpt.hideFooter()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed May 9, 2024
1 parent 56e7500 commit d247f09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
return navigator.languages[0] || navigator.language || navigator.browserLanguage ||
navigator.systemLanguage || navigator.userLanguage || ''; },

hideFooter: function() { chatgpt.getFooterDiv().style.display = 'none'; },
hideHeader: function() { chatgpt.getHeaderDiv().style.display = 'none'; },

history: {
Expand Down
11 changes: 11 additions & 0 deletions docs/USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- [getScrollToBottomButton](#getscrolltobottombutton)
- [getSendButton](#getsendbutton)
- [getStopGeneratingButton](#getstopgeneratingbutton)
- [hideFooter](#hidefooter)
- [hideHeader](#hideheader)
- [Library APIs](#library-apis)
- [autoRefresh `api`](#autorefresh-api)
Expand Down Expand Up @@ -1161,6 +1162,16 @@ const stopBtn = chatgpt.getStopGeneratingButton();
stopBtn.click();
```

### hideFooter

Hides the footer div.

Example code:

```js
chatgpt.hideFooter()
```

### hideHeader

Hides the header div.
Expand Down

0 comments on commit d247f09

Please sign in to comment.