Skip to content

Commit 480c6f5

Browse files
committed
Limited update Wider Chatbox in resize listener to sites that offer it ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent f0b0092 commit 480c6f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
// @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com!
236236
// @author Adam Lui
237237
// @namespace https://github.com/adamlui
238-
// @version 2025.6.8.2
238+
// @version 2025.6.9
239239
// @license MIT
240240
// @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
241241
// @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
@@ -806,7 +806,7 @@
806806
}
807807
}
808808

809-
// Add RESIZE LISTENER to update full screen setting/button + disable F11 flag + update chatbar
809+
// Add RESIZE LISTENER to update full screen setting/button + disable F11 flag + update widescreen/chatbar styles
810810
addEventListener('resize', () => {
811811
const fullscreenState = chatgpt.isFullScreen()
812812
if (config.fullscreen && !fullscreenState) { // exiting full screen
@@ -816,7 +816,8 @@
816816
if (env.site == 'chatgpt') chatbar.tweak() // update chatgpt.com chatbar inner width
817817
if (config.widescreen) {
818818
styles.update({ key: 'widescreen' })
819-
if (config.widerChatbox) styles.update({ key: 'chatbar' })
819+
if (sites[env.site].availFeatures.includes('widerChatbox') && config.widerChatbox)
820+
styles.update({ key: 'chatbar' })
820821
}
821822
})
822823

0 commit comments

Comments
 (0)