|
3 | 3 | // @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o! |
4 | 4 | // @author KudoAI |
5 | 5 | // @namespace https://kudoai.com |
6 | | -// @version 2025.5.16.17 |
| 6 | +// @version 2025.5.16.18 |
7 | 7 | // @license MIT |
8 | 8 | // @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c |
9 | 9 | // @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c |
|
143 | 143 | window.app = { |
144 | 144 | version: GM_info.script.version, chatgptjsVer: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], |
145 | 145 | commitHashes: { |
146 | | - app: '1f49579', // for cached <app|messages>.json |
| 146 | + app: '2ab9034', // for cached <app|messages>.json |
147 | 147 | aiweb: '2a51ece' // for cached <ai-chat-apis|code-languages|katex-delimiters|sogou-tts-lang-codes>.json |
148 | 148 | } |
149 | 149 | } |
|
177 | 177 | }) |
178 | 178 | } |
179 | 179 | Object.assign(app, { ...remoteData.app, urls: { ...app.urls, ...remoteData.app.urls }, msgs: remoteData.msgs }) |
180 | | - app.urls.aiweAssets = app.urls.aiweAssets.replace('@latest', `@${app.commitHashes.aiweb}`) |
| 180 | + app.urls.aiwebAssets = app.urls.aiwebAssets.replace('@latest', `@${app.commitHashes.aiweb}`) |
181 | 181 | app.alerts = { |
182 | 182 | waitingResponse: `${app.msgs.alert_waitingFor} ${app.name} ${app.msgs.alert_response}...`, |
183 | 183 | login: `${app.msgs.alert_login} @ `, |
|
192 | 192 | } |
193 | 193 | app.katexDelimiters = await new Promise(resolve => xhr({ // used in show.reply() |
194 | 194 | method: 'GET', onload: resp => resolve(JSON.parse(resp.responseText)), |
195 | | - url: `${app.urls.aiweAssets}/data/katex-delimiters.json` |
| 195 | + url: `${app.urls.aiwebAssets}/data/katex-delimiters.json` |
196 | 196 | })) |
197 | 197 |
|
198 | 198 | // Init API data |
199 | 199 | window.apis = Object.assign(Object.create(null), await new Promise(resolve => xhr({ |
200 | 200 | method: 'GET', onload: resp => resolve(JSON5.parse(resp.responseText)), |
201 | | - url: `${app.urls.aiweAssets}/data/ai-chat-apis.json5` |
| 201 | + url: `${app.urls.aiwebAssets}/data/ai-chat-apis.json5` |
202 | 202 | }))) |
203 | 203 | apis.AIchatOS.userID = '#/chat/' + Date.now() |
204 | 204 |
|
|
1487 | 1487 | if (!app.div.querySelector('code')) return |
1488 | 1488 |
|
1489 | 1489 | // Init general language data |
1490 | | - window.codeLangData ||= await get.json(`${app.urls.aiweAssets}/data/code-languages.json`) |
| 1490 | + window.codeLangData ||= await get.json(`${app.urls.aiwebAssets}/data/code-languages.json`) |
1491 | 1491 | .catch(err => log.error(err.message)) |
1492 | 1492 |
|
1493 | 1493 | // Add buttons to every block |
|
0 commit comments