Skip to content

Commit 7793f50

Browse files
committed
Added early return to show.replyCornerBtns() if reply bubble missing
1 parent 226de47 commit 7793f50

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 4 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.21.1
6+
// @version 2025.1.21.2
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
@@ -2780,7 +2780,9 @@
27802780
const show = {
27812781

27822782
replyCornerBtns() {
2783-
if (document.getElementById(`${app.slug}-copy-btn`)) return
2783+
if (!document.querySelector(`#${app.slug} > pre`) // reply bubble missing
2784+
|| document.getElementById(`${app.slug}-copy-btn`) // Copy button not missing
2785+
) return
27842786
const baseBtnStyles = 'float: right ; cursor: pointer ;'
27852787

27862788
// Add top parent div

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 4 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.21.1
151+
// @version 2025.1.21.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
@@ -3544,7 +3544,9 @@
35443544
const show = {
35453545

35463546
replyCornerBtns() {
3547-
if (document.getElementById(`${app.slug}-copy-btn`)) return
3547+
if (!document.querySelector(`#${app.slug} > pre`) // reply bubble missing
3548+
|| document.getElementById(`${app.slug}-copy-btn`) // Copy button not missing
3549+
) return
35483550
const baseBtnStyles = 'float: right ; cursor: pointer ;'
35493551

35503552
// Add top parent div

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 4 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.21.2
151+
// @version 2025.1.21.3
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
@@ -3428,7 +3428,9 @@
34283428
const show = {
34293429

34303430
replyCornerBtns() {
3431-
if (document.getElementById(`${app.slug}-copy-btn`)) return
3431+
if (!document.querySelector(`#${app.slug} > pre`) // reply bubble missing
3432+
|| document.getElementById(`${app.slug}-copy-btn`) // Copy button not missing
3433+
) return
34323434
const baseBtnStyles = 'float: right ; cursor: pointer ;'
34333435

34343436
// Add top parent div

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 4 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.21.1
152+
// @version 2025.1.21.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
@@ -3724,7 +3724,9 @@
37243724
const show = {
37253725

37263726
replyCornerBtns() {
3727-
if (document.getElementById(`${app.slug}-copy-btn`)) return
3727+
if (!document.querySelector(`#${app.slug} > pre`) // reply bubble missing
3728+
|| document.getElementById(`${app.slug}-copy-btn`) // Copy button not missing
3729+
) return
37283730
const baseBtnStyles = 'float: right ; cursor: pointer ;'
37293731

37303732
// Add top parent div

0 commit comments

Comments
 (0)