Thêm câu trả lời AI vào Google Search (được cung cấp bởi Google Gemma + GPT-4o!)
Đây là phiên bản của script này, nơi mã nguồn đã được cập nhật. Hiện tất cả các phiên bản.
Refactored update.bylineVisibility() to use single loop for easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
update.bylineVisibility()
Renamed listenerize.appDivCornerBtns() to .appHeaderBtns() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
listenerize.appDivCornerBtns()
.appHeaderBtns()
Hid Wider Sidebar button from showing on app hover in Anchor mode ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Hid Expand button from showing on app hover outside Anchor mode ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Revamped update.bylineVisibility() to dynamically calc avail space, added call to hide/show btns on app hover
± Refactored toggle.tooltip() to rely on onmouse<enter|leave> to reduce triggers ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.tooltip()
onmouse<enter|leave>
Removed no-longer used query src checks before 1st app show ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Shortened scriptCatLink to scLink in toggle.streaming(), edited whitespace in init for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
scriptCatLink
scLink
toggle.streaming()
Added section comment to toggle.sidebar() for readabillity ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.sidebar()
Deleted extra whitespace in toggle.proxyMode() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.proxyMode()
Corrected Font Size slider track CSS selectors ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Shortened CSS selectors ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Converted modeKey string concatenation in toggle.manualGet() to template literal for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modeKey
toggle.manualGet()
Renamed removeCondition in toggle.btnGlow() to more readable toRemove ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
removeCondition
toggle.btnGlow()
toRemove
Shortened Standby Button selector in toggle.autoGet() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.autoGet()
Converted configKey string concatenation in toggle.animations() to template literal for readability + condensed notify() call ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
configKey
toggle.animations()
notify()
Condensed callbacks in forEach loops ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
forEach
Corrected env name in debug log ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
env
Added auto-disable Wider Sidebar to Anchor mode ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Moved streamingSupported into env for improved structure ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
streamingSupported
Removed debug logs from toggle methods that already visually signal success ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Improved toggle.anchorMode()
toggle.anchorMode()
± Merged classlist manipulation into single cmd + moved to UI section
Lowered app div in Anchor Mode ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Condensed modals.hide() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modals.hide()
Moved no-user-select to start of classlist in modals.init() to not break $=-modal CSS selectors ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
no-user-select
modals.init()
$=-modal
Condensed modal dismiss handlers, merged into modals.handlers.dismiss for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modals.handlers.dismiss
Added disable user selection to modals.init() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Combined ID/add tooltip of Settings entries into 1 line for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Deleted stragging quote in modals.handlers.click() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modals.handlers.click()
Added position: sticky to app div style to activate z-index ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
position: sticky
Moved update.style.app() to update.appStyle() now that there's no tweaksStyle to update ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
update.style.app()
update.appStyle()
tweaksStyle
Replaced update.style.tweaks() that no longer handles tweaksStyle w/ update.answerPreMaxHeight() + update.bylineVisibility() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
update.style.tweaks()
update.answerPreMaxHeight()
Updated Wider Sidebar styles to shrink center column + not animate ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Removed no-longer needed right-padding from Google center column when no sidebar snippets exist ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Corrected center column children div selector in Wider Sidebar styles ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Halved delay before header buttons that zoom/fade-out on click re-appear ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Moved Wider/Sticky Sidebar styles from tweaksStyle to appStyle classes for improved performance + easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
appStyle
Moved Anchor/Expanded mode styles from tweaksStyle to appStyle classes for improved performance + easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Removed all debug logs from stable non-type methods of modals except useful stack log ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modals
Renamed emoji map in modals.scheme() to schemeEmojis for better clarity ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
modals.scheme()
schemeEmojis
Slowed modals.hide() fade-out +0.3s, decreased Settings entry hover-zoom -7% ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Refactored modal/button removals to rely on onanimationend for precise timing ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
onanimationend
Deleted visually disabled .glowing-btn::after{} styles/vars ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
.glowing-btn::after{}
Bumped resources ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Expanded transition style support to older browsers ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Updatd copyright years ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Condensed CSS color declarations ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Added main section comment to app.styles for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
app.styles
Abstracted CSS shadow vars for easier maintenance, edited whitespace for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Bumped chatgpt.js to 3.5.0 ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Added author info to About modal, moved chatgpt.js info down ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Hiển thị mọi phiên bản của script