Skip to content

Commit af53499

Browse files
committed
Deleted unneeded braces from handleChunk() in dataProcess.stream() for readability
1 parent 653314f commit af53499

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
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.26.4
6+
// @version 2025.1.26.5
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
@@ -2666,13 +2666,13 @@
26662666
apis.GPTforLove.parentID = chunkObjs[0].id || null // for contextual replies
26672667
chunkObjs.forEach(obj => replyChunk += obj.delta || '') // accumulate AI reply text
26682668
}
2669-
} else if (callerAPI == 'MixerBox AI') { // extract/normalize AI reply data
2669+
} else if (callerAPI == 'MixerBox AI') // extract/normalize AI reply data
26702670
replyChunk = [...respChunk.matchAll(/data:(.*)/g)] // arrayify data
26712671
.filter(match => !/message_(?:start|end)|done/.test(match)) // exclude signals
26722672
.map(match => // normalize whitespace
26732673
match[1].replace(/\[SPACE\]/g, ' ').replace(/\[NEWLINE\]/g, '\n'))
26742674
.join('') // stringify AI reply text
2675-
} textToShow += replyChunk
2675+
textToShow += replyChunk
26762676
if (new RegExp(apis[callerAPI].respPatterns?.done).test(respChunk)) isDone = true
26772677
}
26782678

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.26.4
151+
// @version 2025.1.26.5
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
@@ -3416,13 +3416,13 @@
34163416
apis.GPTforLove.parentID = chunkObjs[0].id || null // for contextual replies
34173417
chunkObjs.forEach(obj => replyChunk += obj.delta || '') // accumulate AI reply text
34183418
}
3419-
} else if (callerAPI == 'MixerBox AI') { // extract/normalize AI reply data
3419+
} else if (callerAPI == 'MixerBox AI') // extract/normalize AI reply data
34203420
replyChunk = [...respChunk.matchAll(/data:(.*)/g)] // arrayify data
34213421
.filter(match => !/message_(?:start|end)|done/.test(match)) // exclude signals
34223422
.map(match => // normalize whitespace
34233423
match[1].replace(/\[SPACE\]/g, ' ').replace(/\[NEWLINE\]/g, '\n'))
34243424
.join('') // stringify AI reply text
3425-
} textToShow += replyChunk
3425+
textToShow += replyChunk
34263426
if (new RegExp(apis[callerAPI].respPatterns?.done).test(respChunk)) isDone = true
34273427
}
34283428

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.26.4
151+
// @version 2025.1.26.5
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
@@ -3300,13 +3300,13 @@
33003300
apis.GPTforLove.parentID = chunkObjs[0].id || null // for contextual replies
33013301
chunkObjs.forEach(obj => replyChunk += obj.delta || '') // accumulate AI reply text
33023302
}
3303-
} else if (callerAPI == 'MixerBox AI') { // extract/normalize AI reply data
3303+
} else if (callerAPI == 'MixerBox AI') // extract/normalize AI reply data
33043304
replyChunk = [...respChunk.matchAll(/data:(.*)/g)] // arrayify data
33053305
.filter(match => !/message_(?:start|end)|done/.test(match)) // exclude signals
33063306
.map(match => // normalize whitespace
33073307
match[1].replace(/\[SPACE\]/g, ' ').replace(/\[NEWLINE\]/g, '\n'))
33083308
.join('') // stringify AI reply text
3309-
} textToShow += replyChunk
3309+
textToShow += replyChunk
33103310
if (new RegExp(apis[callerAPI].respPatterns?.done).test(respChunk)) isDone = true
33113311
}
33123312

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.26.4
152+
// @version 2025.1.26.5
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
@@ -3597,13 +3597,13 @@
35973597
apis.GPTforLove.parentID = chunkObjs[0].id || null // for contextual replies
35983598
chunkObjs.forEach(obj => replyChunk += obj.delta || '') // accumulate AI reply text
35993599
}
3600-
} else if (callerAPI == 'MixerBox AI') { // extract/normalize AI reply data
3600+
} else if (callerAPI == 'MixerBox AI') // extract/normalize AI reply data
36013601
replyChunk = [...respChunk.matchAll(/data:(.*)/g)] // arrayify data
36023602
.filter(match => !/message_(?:start|end)|done/.test(match)) // exclude signals
36033603
.map(match => // normalize whitespace
36043604
match[1].replace(/\[SPACE\]/g, ' ').replace(/\[NEWLINE\]/g, '\n'))
36053605
.join('') // stringify AI reply text
3606-
} textToShow += replyChunk
3606+
textToShow += replyChunk
36073607
if (new RegExp(apis[callerAPI].respPatterns?.done).test(respChunk)) isDone = true
36083608
}
36093609

0 commit comments

Comments
 (0)