為 Google Search 添加 AI 答案(由 Google Gemma + GPT-4o 提供支援!)
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
Refactored camelCase(input)
camelCase(input)
index
.flatMap()
()
Added config.appName
config.appName
Loosened string equality comparison
Clarified comment
Moved var/function inits up
Increased probability of KudoAI footer text shown
Added utm_ontent insetion to footerl links
utm_ontent
Relaced createSVGelem() w/ createSVGpath()
createSVGelem()
createSVGpath()
Excluded non-self GoogleGPT groups from footer
Made displayText optional in createAnchor()
displayText
createAnchor()
Added createAnchor()
Shortened arg nam in createSVGelem()
Added config.feedbackURL, shortened footer init
config.feedbackURL
Added 2nd dimensions to SVGs for wider compatibility
Implemented loops for setting 3+ attrs on elems
Added tooltip loading to footer text
Updated sidebar selector in hostContainer init
hostContainer
Added utm_source insertion to campaign destination URLs
Updated campaignsURL
campaignsURL
Added exclusion of self-groups in active campaign routine
... for other apps
Excluded GoogleGPT campaigns
Removed unused groupName
groupName
Revamped active text campaign routine
± Updated advertiser index JSON URL ± Shuffled advertiser list before selection
adsURL
textAdsURL
active
Moved ctaAnchor init into getShowReply(), added footerLink arg
ctaAnchor
getShowReply()
footerLink
... to googleGPTshow()
googleGPTshow()
Localized 'Share feedback' CTA
Added // @compatible waterfox
// @compatible waterfox
Darkened related query icons
Added // @compatible kiwi
// @compatible kiwi
Lightened related query icon light scheme color
Added related query icons + feedback footer
H-aligned mobile speech balloon tip
Reduced mobile v-margins
Replaced isDarkMode() in notify() w/ flag
isDarkMode()
notify()
Moved UI flag inits up, added isMobile
isMobile
Reduced mobile top margin
Added top margin in mobile view
Hard-added light background for mobile support
Hid WSB menu cmd + btn from mobile, re-ordered listener attachments
Adjusted chatbar size based on more conditions
± Moved chatbar sizing from googleGPTstyle to inline in googleGPTshow(answer) ± Moved hasSidebar to UI flag inits in stylize elements section ± Moved style tweaks section down
googleGPTstyle
googleGPTshow(answer)
hasSidebar
Updated Send button position based on Google sidebar
± Moved Send button positioning from googleGPTstyle to inline in googleGPTshow(answer) ± Renamed config.relatedQueriesDisabled to config.rqDisabled
config.relatedQueriesDisabled
config.rqDisabled
Updated wsbStlye + chatbar width
wsbStlye
Prepended const to answerPre init
const
answerPre
Re-positioned app name, updated speech balloon tip position
± Moved speech balloon tip positioning from googleGPTstyle to inline in googleGPTshow(answer) ± Added Google sidebar on/off cases
Updated wsbStyle to support Google side snippets
wsbStyle
Shrank bottom-padding of loading alert, added to error alerts
Corrected margin assignment, increased header font sizes
Moved error catching to completion of speakAudio.play()
speakAudio.play()
Prepended const to speakAudio init
speakAudio
Added web API to audio playback of answers
Separated classes in replySection.classList.add()
replySection.classList.add()
... when showing loading status
顯示所有腳本版本