Skip to content

Commit 1bd1cfb

Browse files
committed
Added skip to alert update unavailable on app.latestVer not extracted
1 parent 3543bd7 commit 1bd1cfb

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.1.5
6+
// @version 2025.1.8
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -497,8 +497,8 @@
497497

498498
// Compare versions, alert if update found
499499
log.debug('Comparing versions...')
500-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
501-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
500+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
501+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
502502
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
503503
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
504504
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

autoclear-chatgpt-history/greasemonkey/autoclear-chatgpt-history.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.1.7.1
228+
// @version 2025.1.8
229229
// @license MIT
230230
// @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
231231
// @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
@@ -439,8 +439,8 @@
439439
onload: resp => {
440440

441441
// Compare versions, alert if update found
442-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
443-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
442+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
443+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
444444
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
445445
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
446446
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.5.3
151+
// @version 2025.1.8
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -674,8 +674,8 @@
674674

675675
// Compare versions, alert if update found
676676
log.debug('Comparing versions...')
677-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
678-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
677+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
678+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
679679
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
680680
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
681681
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

chatgpt-auto-continue/greasemonkey/chatgpt-auto-continue.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
// @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
220220
// @author Adam Lui
221221
// @namespace https://github.com/adamlui
222-
// @version 2025.1.7.1
222+
// @version 2025.1.8
223223
// @license MIT
224224
// @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon48.png?v=8b39fb4
225225
// @icon64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
@@ -414,8 +414,8 @@
414414
onload: resp => {
415415

416416
// Compare versions, alert if update found
417-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
418-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
417+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
418+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
419419
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
420420
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
421421
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

chatgpt-auto-refresh/greasemonkey/chatgpt-auto-refresh.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.1.8.1
223+
// @version 2025.1.8.2
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -476,8 +476,8 @@
476476
onload: resp => {
477477

478478
// Compare versions, alert if update found
479-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
480-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
479+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
480+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
481481
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
482482
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
483483
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

chatgpt-auto-talk/greasemonkey/chatgpt-auto-talk.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.1.8
228+
// @version 2025.1.8.1
229229
// @license MIT
230230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -426,8 +426,8 @@
426426
onload: resp => {
427427

428428
// Compare versions, alert if update found
429-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
430-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
429+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
430+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
431431
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
432432
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
433433
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

chatgpt-infinity/greasemonkey/chatgpt-infinity.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
// @description:zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
200200
// @author Adam Lui
201201
// @namespace https://github.com/adamlui
202-
// @version 2025.1.7.1
202+
// @version 2025.1.8
203203
// @license MIT
204204
// @icon https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/with-robot/icon48.png?v=69e434b
205205
// @icon64 https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/with-robot/icon64.png?v=69e434b
@@ -492,8 +492,8 @@
492492
onload: resp => {
493493

494494
// Compare versions, alert if update found
495-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
496-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
495+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
496+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
497497
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
498498
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
499499
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

chatgpt-widescreen/greasemonkey/chatgpt-widescreen-mode.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
// @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com!
236236
// @author Adam Lui
237237
// @namespace https://github.com/adamlui
238-
// @version 2025.1.7
238+
// @version 2025.1.8
239239
// @license MIT
240240
// @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
241241
// @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
@@ -479,8 +479,8 @@
479479
onload: resp => {
480480

481481
// Compare versions, alert if update found
482-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
483-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
482+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
483+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
484484
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
485485
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
486486
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.5.1
151+
// @version 2025.1.8
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -682,8 +682,8 @@
682682

683683
// Compare versions, alert if update found
684684
log.debug('Comparing versions...')
685-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
686-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
685+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
686+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
687687
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
688688
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
689689
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.1.5.1
152+
// @version 2025.1.8
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -862,8 +862,8 @@
862862

863863
// Compare versions, alert if update found
864864
log.debug('Comparing versions...')
865-
app.latestVer = /@version +(.*)/.exec(resp.responseText)[1]
866-
for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
865+
app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
866+
if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
867867
const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
868868
latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
869869
if (currentSubVer > latestSubVer) break // out of comparison since not outdated

0 commit comments

Comments
 (0)