|
235 | 235 | // @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-poe.com! |
236 | 236 | // @author Adam Lui |
237 | 237 | // @namespace https://github.com/adamlui |
238 | | -// @version 2025.11.2 |
| 238 | +// @version 2025.11.4 |
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 |
|
262 | 262 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@882c0c5/chromium/extension/lib/feedback.js#sha256-mhqPUMG1+fq9dybeU8n5B+eXuuCeUd5lLpJXRS3en1Y= |
263 | 263 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@882c0c5/chromium/extension/lib/i18n.js#sha256-byvnlCP8l97tNJfgZeXDL+fLIKmS3GaiGwy5JNdmKYI= |
264 | 264 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@c4b372d/chromium/extension/lib/settings.js#sha256-W7Dzfld01bDMsK3OnsTBLuUdtCgdoWR3Cl6ucMbzek0= |
265 | | -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@ce7b078/chromium/extension/lib/styles.js#sha256-CWZ64rV6tQRfQpcsOR2f0YUbKgMLhZFelXTxCqBdqGk= |
266 | | -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@f2cc4bd/chromium/extension/lib/sync.js#sha256-r0/chKRn75oNfRFL4J32zzIuBPnrW1pk/gzbZcemsAM= |
| 265 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@6033dd7/chromium/extension/lib/styles.js#sha256-nd6HWECxWP+m/VCRIIzTGYth05xUN459GJMp4CMDxGc= |
| 266 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@6033dd7/chromium/extension/lib/sync.js#sha256-RM5RswmLzWMgt9AvjZjbjttIONBEY/83paVZH5Q8a2g= |
267 | 267 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@ab7ee52/chromium/extension/lib/ui.js#sha256-5WwgnfGRtHsRP06nmjhqARB0T508syxAh5UWFMEFA+c= |
268 | 268 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@ab7ee52/chromium/extension/components/buttons.js#sha256-B1h7ZHhgwuEy8XoER0AjnWC36Rq8MViHoaZM26k7XHY= |
269 | 269 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@511d193/chromium/extension/components/icons.js#sha256-6eK7coHHFB4zBfl8XXtjojrnfbBOFiEgYfQtz/Whv2E= |
|
326 | 326 | window.app = { |
327 | 327 | version: GM_info.script.version, configKeyPrefix: `${env.site} Widescreen`, |
328 | 328 | chatgptjsVer: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], |
329 | | - commitHashes: { app: 'ce211e1' } // for cached <app|messages>.json + sites.json5 |
| 329 | + commitHashes: { app: '660fbb9' } // for cached <app|messages>.json + sites.json5 |
330 | 330 | } |
331 | 331 | app.urls = { |
332 | 332 | resourceHost: `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@${app.commitHashes.app}` } |
|
820 | 820 | } |
821 | 821 | } |
822 | 822 |
|
823 | | - // Monitor NODE CHANGES to maintain button visibility + update colors/styles |
| 823 | + // Monitor NODE CHANGES to maintain button visibility + update colors/styles + spam block |
824 | 824 | let isTempChat = false, canvasWasOpen = chatgpt.canvasIsOpen(), prevPath = location.pathname |
825 | 825 | new MutationObserver(async () => { |
826 | 826 |
|
|
849 | 849 | prevPath = location.pathname |
850 | 850 | } |
851 | 851 |
|
| 852 | + // Apply Spam Block |
| 853 | + if (!config.blockSpamDisabled && sites[env.site]?.selectors?.spam) sync.spamBlock() |
| 854 | + |
852 | 855 | }).observe(document[env.site == 'poe' ? 'head' : 'body'], { attributes: true, subtree: true }) |
853 | 856 |
|
854 | 857 | // Monitor SCHEME PREF changes to update sidebar toggle + modal colors |
|
0 commit comments