|
235 | 235 | // @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com! |
236 | 236 | // @author Adam Lui |
237 | 237 | // @namespace https://github.com/adamlui |
238 | | -// @version 2025.5.3.6 |
| 238 | +// @version 2025.5.7 |
239 | 239 | // @license MIT |
240 | 240 | // @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e |
241 | 241 | // @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e |
|
257 | 257 | // @connect raw.githubusercontent.com |
258 | 258 | // @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.8.0/dist/chatgpt.min.js#sha256-Xg6XXZ7kcc/MTdlKwUq1rc41WiEwuqhl7DxIjIkzRhc= |
259 | 259 | // @require https://cdn.jsdelivr.net/npm/json5@2.2.3/dist/index.min.js#sha256-S7ltnVPzgKyAGBlBG4wQhorJqYTehj5WQCrADCKJufE= |
260 | | -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@428d766/chromium/extension/lib/chatbar.js#sha256-dOQ+IkzzPztLgLoiVSzGiROhcBliZM0lMwXF6M4K+CU= |
| 260 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@08e72f4/chromium/extension/lib/chatbar.js#sha256-dQgUD9PbQsjyePD5paZAN1X+9G22rWYkLHSl8JGDeKk= |
261 | 261 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@18e7761/chromium/extension/lib/dom.js#sha256-rP6JUMICp0FsCFfrNN76ywu64oxM8vfbkI7pB0nQ/iM= |
262 | 262 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@f5d7836/chromium/extension/lib/settings.js#sha256-dCeRO2Su7atg+DzVFKLt+kc+MM2kzb1pC3dSilmnp1k= |
263 | 263 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@ef624b2/chromium/extension/lib/styles.js#sha256-q6ZSwsPUyIxhI9xyPPrj91b2pK6bCoBM6m23z2xTB3k= |
264 | 264 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@455c4f4/chromium/extension/lib/ui.js#sha256-rzAeaLiz0XTgJ3nYypW87DWB2vq7FZ8OlzjBYJulu6o= |
265 | | -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@455c4f4/chromium/extension/components/buttons.js#sha256-dMvZtnBWkfXoZhr5WTS+RPcaUKYr+HOGH9qy7wiUmhI= |
| 265 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@08e72f4/chromium/extension/components/buttons.js#sha256-3e/pyyCpMmbUtxxUMEUKldfhEuXfdPQYmbfwSLs/vZI= |
266 | 266 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@428d766/chromium/extension/components/icons.js#sha256-w3zANZpb+eBEyTdFehaYG5va5HfdPCbbHPED50hnbRg= |
267 | 267 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@428d766/chromium/extension/components/modals.js#sha256-FyXQwy7yk5XgI8tAYQrq4rVBzMgB+5W2ktYtULiahfI= |
268 | | -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@bceee58/chromium/extension/components/tooltip.js#sha256-vs8vWb1hWEbIrHQoHW4kjeuLamZPdmGz5bbK3iCj8GM= |
| 268 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@08e72f4/chromium/extension/components/tooltip.js#sha256-sOQURwz5NH8IDO0DkHHjfw7vznGPv7qCVzs66oc4wjc= |
269 | 269 | // @resource rpgCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/gray.min.css#sha256-48sEWzNUGUOP04ur52G5VOfGZPSnZQfrF3szUr4VaRs= |
270 | 270 | // @resource rpwCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/white.min.css#sha256-6xBXczm7yM1MZ/v0o1KVFfJGehHk47KJjq8oTktH4KE= |
271 | 271 | // @grant GM_setValue |
|
319 | 319 | const app = { |
320 | 320 | version: GM_info.script.version, configKeyPrefix: `${env.site} Widescreen`, |
321 | 321 | chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], urls: {}, |
322 | | - latestResourceCommitHash: '196be4d' // for cached app.json + sites.json5 + messages.json |
| 322 | + latestResourceCommitHash: '50c7504' // for cached app.json + sites.json5 + messages.json |
323 | 323 | } |
324 | 324 | app.urls.resourceHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.latestResourceCommitHash}` |
325 | 325 | const remoteAppData = await new Promise(resolve => xhr({ |
|
773 | 773 | } |
774 | 774 | styles.tweaks.update() // sync TCB/NCB/HH/HF/BA |
775 | 775 | styles.chatbar.update() // sync WCB |
776 | | - chatbar.tweak() // update ChatGPT chatbar inner width or hack other sites' button positions |
| 776 | + if (env.site != 'perplexity') chatbar.tweak() // update ChatGPT chatbar inner width or hack Poe btn pos |
777 | 777 | buttons[config.btnsVisible ? 'insert' : 'remove']() // update button visibility |
778 | 778 | if (options?.updatedKey == 'btnAnimationsDisabled' && !config.btnAnimationsDisabled) // apply/remove fx |
779 | 779 | // ...to visually signal location + preview fx applied by Button Animations toggle-on |
|
0 commit comments