Skip to content

Commit 83658a0

Browse files
committed
Condensed update.replyPrefix() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 15a06dd commit 83658a0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 3 additions & 4 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.15.1
151+
// @version 2025.9.16
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
@@ -325,7 +325,7 @@
325325
}))
326326
window.apis = Object.assign(Object.create(null), await new Promise(resolve => xhr({
327327
method: 'GET', onload: ({ responseText }) => resolve(Object.fromEntries(
328-
Object.entries(JSON5.parse(responseText)).filter(([, api]) => !api.disabled))),
328+
Object.entries(JSON5.parse(responseText))/*.filter(([, api]) => !api.disabled)*/)),
329329
url: `${app.urls.aiwebAssets}/data/ai-chat-apis.json5`
330330
})))
331331
apis.AIchatOS.userID = '#/chat/' + Date.now()
@@ -1075,8 +1075,7 @@
10751075
},
10761076

10771077
replyPrefix() {
1078-
const firstP = app.div.querySelector('pre p')
1079-
if (!firstP) return
1078+
const firstP = app.div.querySelector('pre p') ; if (!firstP) return
10801079
const prefixNeeded = env.ui.app.scheme == 'dark'
10811080
&& !config.bgAnimationsDisabled && !/shuffle|summarize/.test(get.reply.src)
10821081
const prefixExists = firstP.textContent.startsWith('>> ')

0 commit comments

Comments
 (0)