|
220 | 220 | // @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
|
221 | 221 | // @author Adam Lui
|
222 | 222 | // @namespace https://github.com/adamlui
|
223 |
| -// @version 2025.5.13.4 |
| 223 | +// @version 2025.5.14 |
224 | 224 | // @license MIT
|
225 | 225 | // @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
|
226 | 226 | // @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
|
|
297 | 297 | method: 'GET', url: `${app.urls.resourceHost}/assets/data/app.json`,
|
298 | 298 | onload: resp => resolve(JSON.parse(resp.responseText))
|
299 | 299 | }))
|
300 |
| - Object.assign(app, { ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }}) |
301 |
| - app.msgs = { |
302 |
| - appName: app.name, |
303 |
| - appAuthor: app.author.name, |
304 |
| - appDesc: '*SAFELY* keeps ChatGPT sessions fresh, eliminating constant network errors + Cloudflare checks (all from the background!)', |
305 |
| - menuLabel_autoRefresh: 'Auto-Refresh', |
306 |
| - menuLabel_toggleVis: 'Toggle Visibility', |
307 |
| - menuLabel_modeNotifs: 'Mode Notifications', |
308 |
| - menuLabel_refreshInt: 'Refresh Interval', |
309 |
| - menuLabel_about: 'About', |
310 |
| - menuLabel_donate: 'Please send a donation', |
311 |
| - about_author: 'Author', |
312 |
| - about_and: '&', |
313 |
| - about_contributors: 'contributors', |
314 |
| - about_version: 'Version', |
315 |
| - about_poweredBy: 'Powered by', |
316 |
| - about_openSourceCode: 'Open source code', |
317 |
| - about_latestChanges: 'Latest changes', |
318 |
| - prompt_updateInt: 'Update refresh interval (in secs)', |
319 |
| - helptip_toggleVis: 'Show Auto-Refresh toggle in sidebar', |
320 |
| - helptip_modeNotifs: 'Show notifications when toggling modes/settings', |
321 |
| - helptip_refreshInt: 'Average delay between refreshes (in seconds)', |
322 |
| - alert_intUpdated: 'Interval updated', |
323 |
| - alert_willRefresh: 'ChatGPT session will auto-refresh every', |
324 |
| - alert_choosePlatform: 'Choose a platform', |
325 |
| - alert_updateAvail: 'Update available', |
326 |
| - alert_newerVer: 'An update to', |
327 |
| - alert_isAvail: 'is available', |
328 |
| - alert_upToDate: 'Up-to-date', |
329 |
| - alert_showYourSupport: 'Show your support', |
330 |
| - alert_isOSS: 'is open-source software built & maintained for free through 100% volunteer efforts', |
331 |
| - alert_despiteAffliction: 'Despite being severely afflicted by', |
332 |
| - alert_longCOVID: 'long COVID', |
333 |
| - alert_since2020: 'since 2020', |
334 |
| - alert_byDonatingResults: 'by donating, you help me to continue improving, fixing bugs, adding new features, and making the software even better', |
335 |
| - alert_yourContrib: 'Your contribution', |
336 |
| - alert_noMatterSize: 'no matter the size', |
337 |
| - alert_directlySupports: 'directly supports my unpaid efforts to ensure this project remains free and open for all to use', |
338 |
| - alert_tyForSupport: 'Thank you for your support', |
339 |
| - alert_isUpToDate: 'is up-to-date', |
340 |
| - btnLabel_moreAIextensions: 'More AI Extensions', |
341 |
| - btnLabel_rateUs: 'Rate Us', |
342 |
| - btnLabel_discuss: 'Discuss', |
343 |
| - btnLabel_getSupport: 'Get Support', |
344 |
| - btnLabel_checkForUpdates: 'Check for Updates', |
345 |
| - btnLabel_update: 'Update', |
346 |
| - btnLabel_dismiss: 'Dismiss', |
347 |
| - link_viewChanges: 'View changes', |
348 |
| - unit_secs: 'secs', |
349 |
| - state_enabled: 'enabled', |
350 |
| - state_disabled: 'disabled', |
351 |
| - state_on: 'on', |
352 |
| - state_off: 'off' |
353 |
| - } |
354 |
| - |
355 |
| - // LOCALIZE app.msgs for non-English users |
356 |
| - if (!env.browser.language.startsWith('en')) { |
357 |
| - const localizedMsgs = await new Promise(resolve => { |
| 300 | + Object.assign(app, { |
| 301 | + ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }, |
| 302 | + msgs: await new Promise(resolve => { |
358 | 303 | const msgHostDir = app.urls.resourceHost + '/greasemonkey/_locales/',
|
359 |
| - msgLocaleDir = ( env.browser.language ? env.browser.language.replace('-', '_') : 'en' ) + '/' |
| 304 | + msgLocaleDir = ( env.browser.language ? env.browser.language.replace('-', '_') : 'en' ) + '/' |
360 | 305 | let msgHref = msgHostDir + msgLocaleDir + 'messages.json', msgXHRtries = 0
|
361 | 306 | function fetchMsgs() { xhr({ method: 'GET', url: msgHref, onload: handleMsgs })}
|
362 | 307 | function handleMsgs(resp) {
|
|
376 | 321 | }
|
377 | 322 | fetchMsgs()
|
378 | 323 | })
|
379 |
| - Object.assign(app.msgs, localizedMsgs) |
380 |
| - } |
| 324 | + }) |
381 | 325 |
|
382 | 326 | // Init SETTINGS
|
383 | 327 | window.config = {}
|
|
868 | 812 | background-color: var(--switch-disabled-bg-color) ; box-shadow: none }
|
869 | 813 | .${this.class} > span > span { /* knob span */
|
870 | 814 | position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;
|
871 |
| - background-color: white ; left: -3px ; bottom: 1.25px ; |
| 815 | + background-color: white ; left: 2px ; bottom: 1.25px ; |
872 | 816 | box-shadow: var(--knob-box-shadow) ;
|
873 | 817 | -webkit-box-shadow: var(--knob-box-shadow) ; -moz-box-shadow: var(--knob-box-shadow) ;
|
874 | 818 | transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;
|
|
0 commit comments