Skip to content

Commit 9441194

Browse files
committed
Eliminated redundant prompts.augment() from Shuffle btn listener already called in Submit handler
1 parent 177d774 commit 9441194

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 2 additions & 2 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.24.2
6+
// @version 2025.1.24.3
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
@@ -2060,7 +2060,7 @@
20602060
// Add button listeners
20612061
appDiv.querySelectorAll(`.${app.slug}-chatbar-btn`).forEach(btn => {
20622062
if (btn.id.endsWith('shuffle-btn')) btn.onclick = () => {
2063-
chatTextarea.value = prompts.augment(prompts.create({ type: 'randomQA' }))
2063+
chatTextarea.value = prompts.create({ type: 'randomQA' })
20642064
chatTextarea.dispatchEvent(new KeyboardEvent('keydown',
20652065
{ key: 'Enter', bubbles: true, cancelable: true }))
20662066
}

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 2 additions & 2 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.24.1
151+
// @version 2025.1.24.2
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
@@ -2655,7 +2655,7 @@
26552655
// Add button listeners
26562656
appDiv.querySelectorAll(`.${app.slug}-chatbar-btn`).forEach(btn => {
26572657
if (btn.id.endsWith('shuffle-btn')) btn.onclick = () => {
2658-
chatTextarea.value = prompts.augment(prompts.create({ type: 'randomQA' }))
2658+
chatTextarea.value = prompts.create({ type: 'randomQA' })
26592659
chatTextarea.dispatchEvent(new KeyboardEvent('keydown',
26602660
{ key: 'Enter', bubbles: true, cancelable: true }))
26612661
show.reply.src = 'shuffle'

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 2 additions & 2 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.24.1
151+
// @version 2025.1.24.2
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
@@ -2540,7 +2540,7 @@
25402540
// Add button listeners
25412541
appDiv.querySelectorAll(`.${app.slug}-chatbar-btn`).forEach(btn => {
25422542
if (btn.id.endsWith('shuffle-btn')) btn.onclick = () => {
2543-
chatTextarea.value = prompts.augment(prompts.create({ type: 'randomQA' }))
2543+
chatTextarea.value = prompts.create({ type: 'randomQA' })
25442544
chatTextarea.dispatchEvent(new KeyboardEvent('keydown',
25452545
{ key: 'Enter', bubbles: true, cancelable: true }))
25462546
show.reply.src = 'shuffle'

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 2 additions & 2 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.24.1
152+
// @version 2025.1.24.2
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
@@ -2829,7 +2829,7 @@
28292829
// Add button listeners
28302830
appDiv.querySelectorAll(`.${app.slug}-chatbar-btn`).forEach(btn => {
28312831
if (btn.id.endsWith('shuffle-btn')) btn.onclick = () => {
2832-
chatTextarea.value = prompts.augment(prompts.create({ type: 'randomQA' }))
2832+
chatTextarea.value = prompts.create({ type: 'randomQA' })
28332833
chatTextarea.dispatchEvent(new KeyboardEvent('keydown',
28342834
{ key: 'Enter', bubbles: true, cancelable: true }))
28352835
show.reply.src = 'shuffle'

0 commit comments

Comments
 (0)