Adds ChatGPT answers to Google Search sidebar
These are versions of this script where the code was updated. Show all versions.
Bumped chatgpt.js to 2.7.1
Inserted latest locale commit hash to config.assetHostURL to preserve potentially deleted msg keys
config.assetHostURL
Bumped chatpgt.js to 2.7.0 + generate-ip to 2.4.1
Updated chat.openai.com URLs to chatgpt.com ↞ [auto-sync from adamlui/chatgpt-apps]
adamlui/chatgpt-apps
Bumped chatgpt.js to 2.6.10
Added 'Send reply' tooltip removal on click-sends ↞ [auto-sync from adamlui/userscripts]
adamlui/userscripts
Renamed rqEventHandler() to more parallel handleRQevent() ↞ [auto-sync from adamlui/userscripts]
rqEventHandler()
handleRQevent()
Reverted erroneous find/replace edit ↞ [auto-sync from adamlui/userscripts]
Excluded related query submissions from triggering chatbar auto-focus ↞ [auto-sync from adamlui/userscripts]
Added auto-focus chatbar on 2nd+ loads ↞ [auto-sync from adamlui/userscripts]
Updated ChatGPT session endpoint URL ↞ [auto-sync from adamlui/userscripts]
Replaced raw.githubusercontent.com URLs w/ cdn.jsdelivr.net ones
Updated raw.githubusercontent.com config.assetHostURL to cdn.jsdelivr.net one
Bumped chatgpt.js to 2.6.9 + generate-ip to 2.2.12
Replaced config.assetHostURL w/ media.googlegpt.io in appLogoImg.src
media.googlegpt.io
appLogoImg.src
Loosened comparison operators for smaller filesize
Replaced using alt as fallback for header logo src w/ appLogoImg.onerror
appLogoImg.onerror
... to hide ugly broken image icon in Chromium browsers
Shortened .kudo-ai class name to .kudoai ↞ [auto-sync from adamlui/userscripts]
.kudo-ai
.kudoai
Eliminated isChromium for simplicity
isChromium
Removed whitespace for readability
Refactored msg fetcher for readability + if en/messages.json ever goes missing
const messages
msgs
Abstracted updateAppLogoSrc() + updateAppStyle() to align w/ BraveGPT + DDGPT codebases
updateAppLogoSrc()
updateAppStyle()
... and in case Google Search ever auto-updates UI on scheme changes in future
Updated isDarkMode() to rely on new DOM status elem
isDarkMode()
Updated isDarkMode() to work w/ new UI, bumped generate-ip to 2.2.7
Bumped generate-ip to 2.2.4
Bumped generate-ip to 2.2.3
Bumped generate-ip to 2.2.1
Bumped chatgpt.js to 2.6.8
Added generate-ip as runtime dependency
Bumped KaTeX to 0.16.10
Bumped chagpt.js to 2.6.7
Added hyphens to script name regex in config.updateURL
config.updateURL
Further reduced potential for backtracking in config.updateURL regex
Improved regex
± Eliminated potential for exponential/polynomial backracking in msgHref.replace regex by increasing specificity in capturing groups
msgHref.replace
Eliminated potential for polynomial backtracking in regex
... by increasing specificity of capturing group
Removed title attr's from Sticky/Wider Sidebar buttons
... to disable browser-native tooltips
Integrated Web Audio API + GM.xmlHttpRequest() in TTS routine
GM.xmlHttpRequest()
... to bypass potential future CSP restrictions
Added string conversion to replyDialect.rate to support Sogou API update
replyDialect.rate
Bumped chatgpt.js to 2.6.6
Bumped chatgpt.js to 2.6.5
Alphabetized args in loadSetting() call for readability
loadSetting()
Removed unicode from description meta
Replaced OpenAI API endpoint (KudoAI/duckduckgpt#44), disabled streaming (KudoAI/duckduckgpt#42)
Added SRI hashes to external resources
Replaced chatgpt.js import URL w/ npm one
Bumped chatgpt.js to 2.6.4
Updated copyright years ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced appFooter elem w/ more semantic type
appFooter
Added ISO 639-1 support to Japanese regex in dialectMap
dialectMap
Added casing to replyLanguage init for menu aesthetics
replyLanguage
Show all script versions