Adds AI answers to Brave Search (powered by GPT-4o!)
These are versions of this script where the code was updated. Show all versions.
Corrected failMatch init syntax ↞ [auto-sync from adamlui/chatgpt-apps]
failMatch
adamlui/chatgpt-apps
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]
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()
Removed extraneous colon from API endpoint log ↞ [auto-sync from adamlui/chatgpt-apps]
Improved handleProcessCompletion() in dataProcess.text()
handleProcessCompletion()
dataProcess.text()
± Moved failFlagsAndURLs test inside to cover all APIs
failFlagsAndURLs
Removed extraneous backtick ↞ [auto-sync from adamlui/chatgpt-apps]
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]
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()
Refactored restoreAppDiv() to process elems from top-to-bottom for readability ↞ [auto-sync from adamlui/chatgpt-apps]
restoreAppDiv()
Removed extraneous symbols ↞ [auto-sync from adamlui/chatgpt-apps]
Renamed saveAppDiv.content to more semantic saveAppDiv.html ↞ [auto-sync from adamlui/chatgpt-apps]
saveAppDiv.content
saveAppDiv.html
Fixed lingering tooltip on Minimize/Restore button clicks ↞ [auto-sync from adamlui/chatgpt-apps]
Removed remnants of handleRQevent() ↞ [auto-sync from adamlui/chatgpt-apps]
handleRQevent()
Replaced handleRQevent() w/ anonymous function for simplicity ↞ [auto-sync from adamlui/chatgpt-apps]
Refactored listenerize.replySection() for clarity
listenerize.replySection()
± Replaced function defs w/ obj prop assignments ± Re-ordered routines ↞ [auto-sync from adamlui/chatgpt-apps]
Added Standby button click listener re-assignment to restoreAppDiv() ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted listenerize.appDiv(), added to restoreAppDiv() ↞ [auto-sync from adamlui/chatgpt-apps]
listenerize.appDiv()
Fixed disappearing app div ↞ [auto-sync from adamlui/chatgpt-apps]
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()
Refined rqPrompt to be less explicit for stealth ↞ [auto-sync from adamlui/chatgpt-apps]
Show all script versions