Skip to content

Commit

Permalink
Fixed buttons don't re-insert when nav'ing to/from new GPTs page (ada…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 3, 2024
1 parent 70c8f97 commit bc9f6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.12.3.1
// @version 2024.12.3.2
// @license MIT
// @compatible chrome
// @compatible firefox
Expand Down Expand Up @@ -1014,7 +1014,7 @@
} else if (canvasWasOpen && !chatgpt.canvasIsOpen()) {
btns.insert() ; chatbar.tweak() ; canvasWasOpen = false }
}
if (!document.getElementById('wideScreen-btn') && btns.status != 'inserting') {
if (!document.getElementById('wideScreen-btn') && chatbar.get() && btns.status != 'inserting') {
btns.status = 'missing' ; btns.insert() }
if (/chatgpt|openai/.test(env.site)) { // Update button colors on ChatGPT scheme or temp chat toggle
const chatbarIsBlack = !!document.querySelector('div[class*="bg-black"]:not([id$="-btn"])')
Expand Down

0 comments on commit bc9f6ca

Please sign in to comment.