Skip to content

Commit

Permalink
Added chatgpt.sidebar.exists() + aliases ↞ [auto-sync from `KudoAI/…
Browse files Browse the repository at this point in the history
…chatgpt.js`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 12, 2024
1 parent 21d2dc9 commit 4e06191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starters/chrome/extension/lib/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
return newElement.id; // Return the element id
},

exists() { return !!chatgpt.getNewChatLink(); },
hide() { this.isOn() ? this.toggle() : console.info('Sidebar already hidden!'); },
show() { this.isOff() ? this.toggle() : console.info('Sidebar already shown!'); },
isOff() { return !this.isOn(); },
Expand Down Expand Up @@ -1903,6 +1904,7 @@ const cjsFuncAliases = [
['deactivateAutoRefresh', 'deactivateAutoRefresher', 'deactivateRefresher', 'deactivateSessionRefresher'],
['detectLanguage', 'getLanguage'],
['executeCode', 'codeExecute'],
['exists', 'isAvailable', 'isExistent', 'isPresent'],
['exportChat', 'chatExport', 'export'],
['getFooterDiv', 'getFooter'],
['getHeaderDiv', 'getHeader'],
Expand Down

0 comments on commit 4e06191

Please sign in to comment.