Skip to content

Commit

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

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

history: {
isLoaded: function() {
return new Promise(resolve => {
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)
- [hideHeader](#hideheader)
- [Library APIs](#library-apis)
- [autoRefresh `api`](#autorefresh-api)
- [activate](#activate)
Expand Down Expand Up @@ -1160,6 +1161,16 @@ const stopBtn = chatgpt.getStopGeneratingButton();
stopBtn.click();
```

### hideHeader

Hides the header div.

Example code:

```js
chatgpt.hideHeader()
```

# Library APIs

## autoRefresh `api`
Expand Down

0 comments on commit 5659498

Please sign in to comment.