Adds AI answers to Google Search (powered by Google Gemma + GPT-4o!)
These are versions of this script where the code was updated. Show all versions.
Added auto-close to Streaming Mode Unavailable in OpenAI alert on proxy toggle click ↞ [auto-sync from adamlui/chatgpt-apps]
adamlui/chatgpt-apps
Removed no-longer necessary conditions from chatbar auto-focus since appShow() update ↞ [auto-sync from adamlui/chatgpt-apps]
appShow()
Fixed Auto-Scroll mode to work w/ updated appShow() ↞ [auto-sync from adamlui/chatgpt-apps]
Shrank mobile font-size/line-height ↞ [auto-sync from adamlui/chatgpt-apps]
Added scroll-to-top on mobile if user interacted ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced querySelector w/ chatTextarea in handleSubmit() ↞ [auto-sync from adamlui/chatgpt-apps]
querySelector
chatTextarea
handleSubmit()
Moved augmentQuery() from handleRQevent() to handleSubmit() for more logical flow
augmentQuery()
handleRQevent()
yourReply
Added query augment stripping to handleSubmit() in appShow() + get/show related queries in getShowReply() ↞ [auto-sync from adamlui/chatgpt-apps]
getShowReply()
Refined math query augment ↞ [auto-sync from adamlui/chatgpt-apps]
Increased no proxy response timeout before tryDiffAPI() +2s if not streaming
tryDiffAPI()
... since text processing of finished stream response takes longer ↞ [auto-sync from adamlui/chatgpt-apps]
Added spacing if multi-msgs passed to appAlert() ↞ [auto-sync from adamlui/chatgpt-apps]
appAlert()
Added line break in appShow() for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Removed no-longer needed // eslint-disable-line no-undefs ↞ [auto-sync from adamlui/chatgpt-apps]
// eslint-disable-line no-undef
Fixed math to always render ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted augmentQuery(), augmented related queries ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected replyForm init in handleSubmit() ↞ [auto-sync from adamlui/chatgpt-apps]
replyForm
Added Standby Mode check before showing answer in appShow() ↞ [auto-sync from adamlui/chatgpt-apps]
Overhauled appShow() to only build stuff if missing for improved efficiency ↞ [auto-sync from adamlui/chatgpt-apps]
Reduced gap preceding 'View changes' link in Update Available alert ↞ [auto-sync from adamlui/chatgpt-apps]
Updated GoogleGPT descriptions ↞ [auto-sync from adamlui/chatgpt-apps]
Title-cased foundState entries in appAlert() to correct switchPhrase init + shorten routine ↞ [auto-sync from adamlui/chatgpt-apps]
foundState
switchPhrase
Renamed alert() to siteAlert() to avoid potential namespace conflicts ↞ [auto-sync from adamlui/chatgpt-apps]
alert()
siteAlert()
Added proxy toggle suggestion to 429 errs ↞ [auto-sync from adamlui/chatgpt-apps]
Condensed hyperlink routine in appAlert() + refined fallback in foundState detection ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced all appendChild() w/ shorter append() ↞ [auto-sync from adamlui/chatgpt-apps]
appendChild()
append()
Disabled chatbar auto-focus in standby mode ↞ [auto-sync from adamlui/chatgpt-apps]
Added ease transition to corner button hover, removed unnecessary !important in CSS, re-ordered style props for readability ↞ [auto-sync from adamlui/chatgpt-apps]
!important
Replaced 'alert' w/ 'modal' in modal ID var names ↞ [auto-sync from adamlui/chatgpt-apps]
Reversed order of AI models in GoogleGPT descriptions ↞ [auto-sync from adamlui/chatgpt-apps]
Shortened 'button' in class/var names to 'btn' ↞ [auto-sync from adamlui/chatgpt-apps]
Added // @noframes for compatibility w/ frame-injecting scripts ↞ [auto-sync from adamlui/chatgpt-apps]
// @noframes
Added scheme selection modal + darkmode modal button hover styles ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted refreshMenu() ↞ [auto-sync from adamlui/chatgpt-apps]
refreshMenu()
Added Chinese ?as eligible suffix for Suffix Mode ↞ [auto-sync from 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]
Added Google Gemma to GoogleGPT descriptions ↞ [auto-sync from adamlui/chatgpt-apps]
Improved isDarkMode() for mobile
isDarkMode()
Fixed mobile width
Tightened timing of getShowReply.received in processStream() ↞ [auto-sync from adamlui/chatgpt-apps]
getShowReply.received
processStream()
Set app width to exact sidebar width + added rendered markdown style ↞ [auto-sync from adamlui/chatgpt-apps]
Added 3s timeout to proxy API requests before retryDiffAPI() ↞ [auto-sync from adamlui/chatgpt-apps]
retryDiffAPI()
Unwrapped + formatted code blocks w/ line breaks + added h-scrolling ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced pedantic: true method of Google flex-wrap circumvention w/ 100% reliable arbitrary hard width ↞ [auto-sync from adamlui/chatgpt-apps]
pedantic: true
Added code highlighting ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected condition for detecting if user replied for chatbar auto-focus ↞ [auto-sync from adamlui/chatgpt-apps]
Removed test commented code ↞ [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
Removed .googlegpt > pre > p bottom offset since markdown renders pedantic: true now ↞ [auto-sync from adamlui/chatgpt-apps]
.googlegpt > pre > p
Fixed marked.js bug moves app to bottom, updated padding/margin ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected spacebar key name for FF pre-v37 ↞ [auto-sync from adamlui/chatgpt-apps]
Show all script versions