Aldonas AI-respondojn al Google Search (ebligita de Google Gemma + GPT-4o!)
Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn
Wrapped session functions in session for readability, shortened names ↞ [auto-sync from adamlui/chatgpt-apps]
session
adamlui/chatgpt-apps
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]
config
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')
Lowered green opacity in RGB shift of app icon ↞ [auto-sync from adamlui/chatgpt-apps]
Added modal elem styles ↞ [auto-sync from adamlui/chatgpt-apps]
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]
Condensed Google tracking-stripper ↞ [auto-sync from adamlui/chatgpt-apps]
Renamed hostContainer to appDivContainer for improved clarity ↞ [auto-sync from adamlui/chatgpt-apps]
hostContainer
appDivContainer
Moved (!isMobile) condition out of setTimeout() in toggle.minimized() to avoid unnecessary execution ↞ [auto-sync from adamlui/chatgpt-apps]
(!isMobile)
setTimeout()
toggle.minimized()
Fixed lingering tooltip on Minimize/Restore button clicks ↞ [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()
Refined rqPrompt to be less explicit for stealth ↞ [auto-sync from adamlui/chatgpt-apps]
Updated Free Chat API endpoint URL ↞ [auto-sync from adamlui/chatgpt-apps]
Trimmed 0px to 0 in CSS ↞ [auto-sync from adamlui/chatgpt-apps]
0px
0
Removed get.reply.status check from xhr.onerror in get.reply() to accommodate Streaming Mode reader considers errors done ↞ [auto-sync from adamlui/chatgpt-apps]
get.reply.status
xhr.onerror
get.reply()
Moved filter styling from modals.settings.createAppend() to icons.googleGPT.update()
modals.settings.createAppend()
icons.googleGPT.update()
... to support RGB shift + live scheme updates ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 3.1.0 ↞ [auto-sync from adamlui/chatgpt-apps]
Moved .no-mobile-tap-outline from corner btn spans to container div ↞ [auto-sync from adamlui/chatgpt-apps]
.no-mobile-tap-outline
Bumped chatgpt.js to 3.0.2 ↞ [auto-sync from adamlui/chatgpt-apps]
Appended exclamation mark to tooltip status on Copy btn clicks ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped config.latestAssetCommitHash ↞ [auto-sync from adamlui/chatgpt-apps]
config.latestAssetCommitHash
Limited XHR request for msgs init to non-English user languages ↞ [auto-sync from adamlui/chatgpt-apps]
Show all script versions