|
225 | 225 | // @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com |
226 | 226 | // @author Adam Lui |
227 | 227 | // @namespace https://github.com/adamlui |
228 | | -// @version 2025.1.16 |
| 228 | +// @version 2025.1.17 |
229 | 229 | // @license MIT |
230 | 230 | // @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06 |
231 | 231 | // @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06 |
|
241 | 241 | // @match *://chatgpt.com/* |
242 | 242 | // @match *://chat.openai.com/* |
243 | 243 | // @connect cdn.jsdelivr.net |
244 | | -// @connect update.greasyfork.org |
| 244 | +// @connect gm.autoclearchatgpt.com |
245 | 245 | // @require https://cdn.jsdelivr.net/npm/@kudoai/[email protected]/dist/chatgpt.min.js#sha256-+C0x4BOFQc38aZB3pvUC2THu+ZSvuCxRphGdtRLjCDg= |
246 | 246 | // @resource brsCSS https://assets.aiwebextensions.com/styles/rising-stars/dist/black.min.css?v=3289404#sha256-CTj6Ndngq+TsPlNpQ6Ej39PQKSDpmxyKUFohhc91ruQ= |
247 | 247 | // @resource wrsCSS https://assets.aiwebextensions.com/styles/rising-stars/dist/white.min.css?v=3289404#sha256-tOOIvIe6O5/x2A5E7s9kP4+zw0d4EEDfRgXQLq2KwLs= |
|
253 | 253 | // @grant GM_xmlhttpRequest |
254 | 254 | // @grant GM.xmlHttpRequest |
255 | 255 | // @noframes |
256 | | -// @downloadURL https://update.greasyfork.org/scripts/460805/autoclear-chatgpt-history.user.js |
257 | | -// @updateURL https://update.greasyfork.org/scripts/460805/autoclear-chatgpt-history.meta.js |
| 256 | +// @downloadURL https://gm.autoclearchatgpt.com |
| 257 | +// @updateURL https://gm.autoclearchatgpt.com |
258 | 258 | // @homepageURL https://www.autoclearchatgpt.com |
259 | 259 | // @supportURL https://support.autoclearchatgpt.com |
260 | 260 | // @contributionURL https://github.com/sponsors/adamlui |
|
283 | 283 | // Init APP data |
284 | 284 | const app = { |
285 | 285 | version: GM_info.script.version, configKeyPrefix: 'autoclearChatGPThistory', |
286 | | - chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], urls: {}, |
| 286 | + chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], |
| 287 | + urls: { update: 'https://gm.autoclearchatgpt.com' }, |
287 | 288 | latestResourceCommitHash: '06d6690' // for cached app.json + messages.json + navicon in toggles.sidebar.insert() |
288 | 289 | } |
289 | 290 | app.urls.resourceHost = `https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@${app.latestResourceCommitHash}` |
|
292 | 293 | onload: resp => resolve(JSON.parse(resp.responseText)) |
293 | 294 | })) |
294 | 295 | Object.assign(app, { ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }}) |
295 | | - app.urls.update = app.urls.greasyFork.replace('https://', 'https://update.') |
296 | | - .replace(/(\d+)-?([a-z-]*)$/i, (_, id, name) => `${id}/${ name || 'script' }.meta.js`) |
297 | 296 | app.msgs = { |
298 | 297 | appName: app.name, |
299 | 298 | appAuthor: app.author.name, |
|
0 commit comments