Skip to content

Commit 8aa074f

Browse files
committed
Condensed sidebar init in toggles.sidebar.insert() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-talk]
1 parent ee032ae commit 8aa074f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.4.24.1
228+
// @version 2025.4.26
229229
// @license MIT
230230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -852,7 +852,7 @@
852852

853853
insert() {
854854
if (this.status?.startsWith('insert') || document.querySelector(`.${this.class}`)) return
855-
const sidebar = document.querySelectorAll('nav')[env.browser.isMobile ? 1 : 0] ; if (!sidebar) return
855+
const sidebar = document.querySelectorAll('nav')[+env.browser.isMobile] ; if (!sidebar) return
856856
this.status = 'inserting' ; if (!this.div) this.create()
857857
sidebar.children[1].before(this.div) ; this.status = 'inserted'
858858
},

0 commit comments

Comments
 (0)