Adds ChatGPT answers to DuckDuckGo sidebar (powered by GPT-4o!)
These are versions of this script where the code was updated. Show all versions.
Added Chinese ?as eligible suffix for Suffix Mode ↞ [auto-sync from adamlui/chatgpt-apps]
adamlui/chatgpt-apps
Disabled Auto-Scroll menu item + auto-focus chatbar on mobile to avoid auto-popup OSD keyboard ↞ [auto-sync from adamlui/chatgpt-apps]
Tightened timing of getShowReply.received in processStream() ↞ [auto-sync from adamlui/chatgpt-apps]
getShowReply.received
processStream()
Added 3s timeout to proxy API requests before retryDiffAPI() ↞ [auto-sync from adamlui/chatgpt-apps]
retryDiffAPI()
Made scrollbars thin in Firefox ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected condition for detecting if user replied for chatbar auto-focus ↞ [auto-sync from adamlui/chatgpt-apps]
Removed markdown prompt from GPTforLove's payload.systemMessage for nicer formatted output ↞ [auto-sync from adamlui/chatgpt-apps]
payload.systemMessage
Added Streaming Mode menu toggle visibility to unsupported users w/ info alert on click ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected spacebar key name for FF pre-v37 ↞ [auto-sync from adamlui/chatgpt-apps]
Added fallback event.keys + event.keyCodes to widen compatibility ↞ [auto-sync from adamlui/chatgpt-apps]
event.key
event.keyCode
Bumped hash in config.assetHostURL to latest asset commit ↞ [auto-sync from adamlui/chatgpt-apps]
config.assetHostURL
Added Auto-Scroll mode, fixed auto-focus chatbar only if app above fold or user replied to non-stream ↞ [auto-sync from adamlui/chatgpt-apps]
Moved site notification style from updateTweaksStyle() to updateAppStyle() ↞ [auto-sync from adamlui/chatgpt-apps]
updateTweaksStyle()
updateAppStyle()
Fixed margins of rendered markdown ordered lists to prevent scrollbar appearance ↞ [auto-sync from adamlui/chatgpt-apps]
Updated key/func names to align w/ pertinent API name ↞ [auto-sync from adamlui/chatgpt-apps]
Removed erroneously added footerContent arg from appShow() in processStream() ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
footerContent
appShow()
adamlui/chatgpt-apps/duckduckgpt
Fixed AIchatOS streaming, added acculatesText prop to apis ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
acculatesText
apis
Corrected arg name ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Added missing ) in condition ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
)
Corrected switch phrase refs in appAlert() hyperlink routine ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
appAlert()
Reverted condesning of int'l msg load request since recursively called ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Condensed int'l msg load request ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Replaced all Math.random() w/ more random chatgpt.randomFloat() ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Math.random()
chatgpt.randomFloat()
Re-padded site notifications ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Revised appAlert() to hyperlink Proxy Mode switching in login msgs ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Shortened alert_ifIssuePersists ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
alert_ifIssuePersists
Moved .toUpperCase() outside || group in state.word to avoid undefined err for English users ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
.toUpperCase()
||
state.word
Internationalized state.word ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Inserted > in pre selectors to not involve rendered Markdown pres ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
>
pre
Replaced '>>' w/ '»' in console logs ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Renamed retryDiffHost() to tryDiffAPI() ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
retryDiffHost()
tryDiffAPI()
Added Streaming Mode for Tampermonkey Proxy Mode users
± Revised consoleErr() to allow 2nd arg for congruency w/ console.error() ± Merged proxyRetryOrAlert() w/retryDiffHost()for simplicity ↞ [auto-sync fromadamlui/chatgpt-apps/duckduckgpt`]
consoleErr()
console.error()
proxyRetryOrAlert() w/
for simplicity ↞ [auto-sync from
Moved main routine up + renamed ids to apiIDs + moved inits + removed whitespace + revised header comments for readability
ids
apiIDs
Shortened all response arg names to resp ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
response
resp
Renamed app<Info|Error>() to console<Info|Err>() to distinguish vs. appAlert() shows in app div ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
app<Info|Error>()
console<Info|Err>()
Expanded conditions in appAlert() to delete cookies + add .loading to non-English users ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
.loading
Renamed convo to msgChain ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
convo
msgChain
Added click switch on/off Proxy Mode alert to toggle, re-ordered func defs ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Revised/condensed appAlerts, refactored appAlert() to accept multi-args/arrays ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
appAlerts
Added Android/iOS logos ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Added hover zooms to corner buttons ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Corrected margin-bottom of rendered markdown headings ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
margin-bottom
Reduced gaps after rendered markdown headings ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Reduced v-padding of rendered markdown unordered lists ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Removed unused callback arg from getShowReply(), moved retryDiffHost() def to top-level
callback
getShowReply()
... to support call from getShowReply()'s XHR onerror ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
onerror
Removed erroneously inserted footerContents as args from appShow()s in processText() ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
footerContents
processText()
Added MixerBox API support ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Made msgs load for non-English users only for faster app load ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
Added () to ternarys in updateTooltip() for correct tooltip fallback ↞ [auto-sync from adamlui/chatgpt-apps/duckduckgpt]
()
updateTooltip()
Show all script versions