Adaugă răspunsuri AI la Google Search (alimentat de Google Gemma + GPT-4o!)
Acestea sunt versiunile scriptului în care codul a fost actualizat. Arată toate versiunile.
Shortened regex in dataProcess.text() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
dataProcess.text()
Removed redundant x-requested-with from api.createHeaders() until more GET APIs are added for assessment ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
x-requested-with
api.createHeaders()
Moved scLink init inside env.scriptManager.supportsStreaming block in toggle.streaming() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
scLink
env.scriptManager.supportsStreaming
toggle.streaming()
Added ToYaml.com/GET API support ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Bumped app.latestResourceCommitHash ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
app.latestResourceCommitHash
Trigger messages.json sync ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Removed Edge/Brave browser check before suggesting TM when Streaming Mode unsupported ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Updated apis[api].expectedOrigin.headers, abstracted majority ones to createHeaders() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
apis[api].expectedOrigin.headers
createHeaders()
Fixed GPTforLove API stopped working ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Re-enabled Streaming Mode in Chromium browsers ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Condensed stripQueryAugments(), eliminated backtracking potential from regex ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
stripQueryAugments()
Changed query augment delimiters to {{}} to support stripQueryAugments() from any src ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
{{}}
Replaced hardcoded vals w/ new lastUserMsg in api.createPayload() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
lastUserMsg
api.createPayload()
Alphabetized props in api.createPayload() for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Moved payload init outside Promise executor in get.related() to avoid async inside for proper error propagation (https://sonarcloud.io/organizations/adamlui/rules?open=javascript%3AS6544&rule_key=javascript%3AS6544) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
get.related()
async
Added FREEGPT API support ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Fixed Reply Language setting stopped persisting (https://greasyfork.org/scripts/478597-googlegpt/discussions/273838) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
Moved non-div check from modals.init() to .open() to support .observeRemoval() too ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
modals.init()
.open()
.observeRemoval()
Added early return to modals.init() if modal undefined to support non-div .open()s ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
modal
Replaced || w/ ?? in settings.load() for proper nullish val handling ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
||
??
settings.load()
Added settings.controls[key].defaultVal + reversed settings.load() to init true for toggles if val missing to eliminate dependency on reverse key naming ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
settings.controls[key].defaultVal
true
Moved header byline right +1px, converted font-size from rem to px to eliminate dependency on Google styles ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Shortened init settings.load() arg using Object.keys(settings.controls) ↞ [auto-sync from https://github.com/adamlui/userscripts]
Object.keys(settings.controls)
Replaced string concatenation of key names in settings methods w/ template literals for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Added skip to alert update unavailable on app.latestVer not extracted ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
app.latestVer
Renamed latestAssetCommitHash to latestResourceCommitHash + urls.assetHost to urls.resourceHost ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
latestAssetCommitHash
latestResourceCommitHash
urls.assetHost
urls.resourceHost
Updated media.googlegpt.io URLs to assets.googlegpt.io ones ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Disabled unneeded update.bylineVisibility() on phones ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
update.bylineVisibility()
Condensed inline listener check for rwt() in Google tracking stripper ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
rwt()
Condensed keys normalization in settings.load() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
keys
Moved fillStarryBG() into dom ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
fillStarryBG()
dom
Renamed header btns parent consts to align w/ ID ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Updated header btns parent selectors + restored NodeList support to dom.getComputedWidth() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
NodeList
dom.getComputedWidth()
Deleted commented CSS for testing ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Improved dom.getComputedWidth()
± Added support for multi-args ± Replaced for of loop w/ forEach for readability ± Centralized elem validation ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
for of
forEach
Centralized DOM utils into dom obj ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Optimized header style for phones (https://github.com/adamlui/ai-web-extensions/issues/120) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Forced app-hover-only elems to show on touch devices (https://github.com/adamlui/ai-web-extensions/issues/120) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Reversed state change check in toggle.anchorMode() for early return to reduce nesting ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.anchorMode()
Renamed listenerize to addListeners to not sound weird ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
listenerize
addListeners
Shortened header button elem class names ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Replaced JS hide/show elems w/ CSS for improved efficiency/reliability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
Refactored update.bylineVisibility() to use single loop for easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
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
Added section comment to toggle.sidebar() for readabillity ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
toggle.sidebar()
Arata toate versiunile scriptului