為 DuckDuckGo 添加 AI 答案(由 GPT-4o 提供支援!)
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
Enlarged log app name prefix font size in FF ↞ [auto-sync from adamlui/chatgpt-apps]
adamlui/chatgpt-apps
Bumped chatgpt.js to 3.2.1 ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted URLs into app.urls for improved maintainability ↞ [auto-sync from adamlui/chatgpt-apps]
app.urls
Corrected failMatch init syntax ↞ [auto-sync from adamlui/chatgpt-apps]
failMatch
Added logging of exact fail flag if matched to dataProcess methods
dataProcess
± Changed log.info() to log.debug() for cleaner console when Debug Mode off ± Changed log labels 'Response' to more specific 'Response text' ↞ [auto-sync from adamlui/chatgpt-apps]
log.info()
log.debug()
Moved get.userscriptManager() def back out to hoist for early config init ↞ [auto-sync from adamlui/chatgpt-apps]
get.userscriptManager()
config
Wrapped session functions in session for readability, shortened names ↞ [auto-sync from adamlui/chatgpt-apps]
session
Moved getUserscriptManager() into get + alphabetized methods for readability ↞ [auto-sync from adamlui/chatgpt-apps]
getUserscriptManager()
get
Added Debug Mode, improved logging
± Limited logging to errors when Debug Mode off ± Expanded log methods to accept unlimited args ± Added coloring to log methods
Disabled ESLint for no-unused-vars in func sig for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Condensed log method defs using loop ↞ [auto-sync from adamlui/chatgpt-apps]
Added log.caller resets to log methods for unprefixed logs ↞ [auto-sync from adamlui/chatgpt-apps]
log.caller
Moved log caller prefix separator inits from callers to log methods for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Added background/colors to log prefixes ↞ [auto-sync from adamlui/chatgpt-apps]
Renamed log.prefix to log.caller since app name/symbol is prefix too ↞ [auto-sync from adamlui/chatgpt-apps]
log.prefix
Moved browser flags into obj for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Separated static app data from config for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Fixed Settings modal offset on click-drag ↞ [auto-sync from adamlui/chatgpt-apps]
Shortened notif init in notify() ↞ [auto-sync from adamlui/chatgpt-apps]
notif
notify()
Added caller.status check to api.tryNew() to reduce checks pre-calls ↞ [auto-sync from adamlui/chatgpt-apps]
caller.status
api.tryNew()
Improved handleProcessCompletion() in dataProcess.text()
handleProcessCompletion()
dataProcess.text()
± Moved failFlagsAndURLs test inside to cover all APIs
failFlagsAndURLs
Enabled placeholders in suggested answers + auto-highlight on click vs. auto-send
± Refined rqPrompt for precision in generating answers for correct role ↞ [auto-sync from adamlui/chatgpt-apps]
rqPrompt
Limited answer suggestions to reply questions only ↞ [auto-sync from adamlui/chatgpt-apps]
Tweaked rqPrompt to bypass new Free Chat API detection ↞ [auto-sync from adamlui/chatgpt-apps]
Added dismissal of active Font Size slider on Minimize/Restore button clicks ↞ [auto-sync from adamlui/chatgpt-apps]
Removed unneeded delay to fontSizeSlider.toggle('off') ↞ [auto-sync from adamlui/chatgpt-apps]
fontSizeSlider.toggle('off')
Added modal elem styles ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced unused mutations arg w/ _ for readability ↞ [auto-sync from adamlui/chatgpt-apps]
mutations
_
Added compatibility flags, expanded to Streaming toggle listener ↞ [auto-sync from adamlui/chatgpt-apps]
Disabled Streaming Mode toggle from moving if browser unsupported ↞ [auto-sync from adamlui/chatgpt-apps]
Centered modal titles on mobile, added line-height, tweaked margins ↞ [auto-sync from adamlui/chatgpt-apps]
Tweaked portrait About modal text margins ↞ [auto-sync from adamlui/chatgpt-apps]
Added overflow wrapping to About modal text ↞ [auto-sync from adamlui/chatgpt-apps]
Changed modals to CSS grids for auto-centered header icon
± Tweaked styles accordingly ↞ [auto-sync from adamlui/chatgpt-apps]
Renamed hostContainer to appDivContainer for improved clarity ↞ [auto-sync from adamlui/chatgpt-apps]
hostContainer
appDivContainer
Improved hostContainer init to await promise resolution upon load ↞ [auto-sync from adamlui/chatgpt-apps]
Moved (!isMobile) condition out of setTimeout() in toggle.minimized() to avoid unnecessary execution ↞ [auto-sync from adamlui/chatgpt-apps]
(!isMobile)
setTimeout()
toggle.minimized()
Removed extraneous symbols ↞ [auto-sync from adamlui/chatgpt-apps]
Fixed lingering tooltip on Minimize/Restore button clicks ↞ [auto-sync from adamlui/chatgpt-apps]
Added line break for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced handleRQevent() w/ anonymous function for simplicity ↞ [auto-sync from adamlui/chatgpt-apps]
handleRQevent()
Refactored listenerize.replySection() for clarity
listenerize.replySection()
± Replaced function defs w/ obj prop assignments ± Re-ordered routines ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted listenerize.appDiv() ↞ [auto-sync from adamlui/chatgpt-apps]
listenerize.appDiv()
Abstracted listenerize methods ↞ [auto-sync from adamlui/chatgpt-apps]
listenerize
Re-ordered CSS for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Disabled rendering of empty stream chunks ↞ [auto-sync from adamlui/chatgpt-apps]
Added retry diff API on no text streamed ↞ [auto-sync from adamlui/chatgpt-apps]
Tweaked/merged modal close button styles ↞ [auto-sync from adamlui/chatgpt-apps]
Deleted dot from modal.classList.add() ↞ [auto-sync from adamlui/chatgpt-apps]
modal.classList.add()
顯示所有腳本版本