Skip to content

Commit 783eceb

Browse files
committed
1 parent 0822176 commit 783eceb

1 file changed

Lines changed: 7 additions & 19 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.9.6
151+
// @version 2025.9.6.1
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -201,7 +201,7 @@
201201
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@f7e2f2d/assets/js/components/chatbot/buttons.js#sha256-Srg5wWTmP3Zv2OkTLEHeX7HKeKjeYnRgdIFhdRJMuik=
202202
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@0329ace/assets/js/components/chatbot/icons.js#sha256-p89CrELJj8rguE8M4IjdMA4CYwX7iid+RNzvX3oOT2A=
203203
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@bfdb063/assets/js/components/chatbot/menus.js#sha256-ZOZBraa/OmK/AKDtJucT9+i5uuq3suasT3kjJl0UBdA=
204-
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@97173cc/assets/js/components/chatbot/replyBubble.js#sha256-sOVj/ESmlNMLCA13w2ZzqP5hVtcnqlQpbY9yvkFWNek=
204+
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@1dfd40d/assets/js/components/chatbot/replyBubble.js#sha256-VsTgaqE8IrQP7ywc7KE9OGL63uLfEO8DdwK2po6CXas=
205205
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@6fd9b53/assets/js/components/chatbot/tooltip.js#sha256-RbmcNuh/DiKIH+Ch2KYrIo48pLAUd/445leqYwBGEXw=
206206
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@bb5451a/assets/js/lib/chatbot/api.js#sha256-nCFc1tcSAfGJT260Sn07YGEczKPrhXdj8UlrKi+ac8M=
207207
// @require https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@ecaeb55/assets/js/lib/chatbot/feedback.js#sha256-9Hm3fBS96DtWFdT5VwGDGvwZMpYIRfxGAQRaCGECeqA=
@@ -535,18 +535,6 @@
535535

536536
window.update = {
537537

538-
replyPreMaxHeight() { // for various mode toggles
539-
const replyPre = app.div.querySelector('.reply-pre'),
540-
relatedQueries = app.div.querySelector(`.${app.slug}-related-queries`),
541-
shorterPreHeight = innerHeight - relatedQueries?.offsetHeight - 245,
542-
longerPreHeight = innerHeight - 255
543-
if (replyPre) replyPre.style.maxHeight = (
544-
config.stickySidebar ? (
545-
relatedQueries?.offsetHeight > 0 ? `${shorterPreHeight}px` : `${longerPreHeight}px` )
546-
: config.anchored ? `${ longerPreHeight - ( config.expanded ? 115 : 365 ) }px` : 'none'
547-
)
548-
},
549-
550538
appBottomPos() { app.div.style.bottom = `${ config.minimized ? 61 - app.div.offsetHeight : -7 }px` },
551539

552540
appStyle() { // used in toggle.animations() + update.scheme() + main's app init
@@ -1135,7 +1123,7 @@
11351123

11361124
// Apply changed state to UI
11371125
app.div.classList.toggle('anchored', config.anchored)
1138-
update.rqVisibility() ; update.replyPreMaxHeight() ; update.bylineVisibility() ; update.chatbarWidth()
1126+
update.rqVisibility() ; replyBubble.updateMaxHeight() ; update.bylineVisibility() ; update.chatbarWidth()
11391127
if (modals.settings.get()) { // update visual state of Settings toggle
11401128
const anchorToggle = document.querySelector('[id*=anchor] input')
11411129
if (anchorToggle.checked != config.anchored) modals.settings.toggle.switch(anchorToggle)
@@ -1254,7 +1242,7 @@
12541242
get.related(app.msgChain[app.msgChain.length - 1]?.content || searchQuery)
12551243
.then(queries => show.related(queries))
12561244
.catch(err => { log.error(err.message) ; api.tryNew(get.related) })
1257-
update.replyPreMaxHeight()
1245+
replyBubble.updateMaxHeight()
12581246
feedback.notify(`${app.msgs.menuLabel_relatedQueries} ${menus.toolbar.state.words[+!config.rqDisabled]}`)
12591247
},
12601248

@@ -1271,7 +1259,7 @@
12711259

12721260
// Apply new state to UI
12731261
app.div.classList.toggle(mode, config[configKeyName])
1274-
update.replyPreMaxHeight() ; update.bylineVisibility() ; update.chatbarWidth()
1262+
replyBubble.updateMaxHeight() ; update.bylineVisibility() ; update.chatbarWidth()
12751263
if (mode == 'wider') // toggle icons everywhere
12761264
document.querySelectorAll(`#${app.slug} svg.widescreenTall, #${app.slug} svg.widescreenWide`)
12771265
.forEach(icon => icon.replaceWith(
@@ -1610,7 +1598,7 @@
16101598
}, (idx+1) *50)
16111599
})
16121600

1613-
update.replyPreMaxHeight() ; get.related.replyIsQuestion = null
1601+
replyBubble.updateMaxHeight() ; get.related.replyIsQuestion = null
16141602
}
16151603
},
16161604

@@ -1814,7 +1802,7 @@
18141802
;[replyPre, ...replyPre.querySelectorAll('*')].forEach(elem =>
18151803
renderMathInElement(elem, { delimiters: app.katexDelimiters, throwOnError: false }))
18161804

1817-
if (config.stickySidebar) update.replyPreMaxHeight()
1805+
if (config.stickySidebar) replyBubble.updateMaxHeight()
18181806

18191807
// Auto-scroll if active
18201808
if (config.autoScroll && !env.browser.isMobile && config.proxyAPIenabled && !config.streamingDisabled) {

0 commit comments

Comments
 (0)