Skip to content

Commit

Permalink
Removed Edge/Brave browser check before suggesting TM when Streaming …
Browse files Browse the repository at this point in the history
…Mode unsupported
  • Loading branch information
adamlui committed Jan 14, 2025
1 parent 7187d00 commit 3d2e693
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
9 changes: 4 additions & 5 deletions amazongpt/greasemonkey/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.2
// @version 2025.1.14.3
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -2368,10 +2368,9 @@
modals.alert(
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_unavailable}`,
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_isOnlyAvailFor}`
+ ( !env.browser.isEdge && !env.browser.isBrave ? // suggest TM for supported browsers
` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}` : '' )
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.` // suggest SC
+ ` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}`
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.`
+ ` (${app.msgs.alert_userscriptMgrNoStream}.)`
)
} else if (!config.proxyAPIenabled) { // alert OpenAI API unsupported, suggest Proxy Mode
Expand Down
9 changes: 4 additions & 5 deletions bravegpt/greasemonkey/bravegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.1
// @version 2025.1.14.2
// @license MIT
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
Expand Down Expand Up @@ -3017,10 +3017,9 @@
modals.alert(
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_unavailable}`,
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_isOnlyAvailFor}`
+ ( !env.browser.isEdge && !env.browser.isBrave ? // suggest TM for supported browsers
` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}` : '' )
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.` // suggest SC
+ ` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}`
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.`
+ ` (${app.msgs.alert_userscriptMgrNoStream}.)`
)
} else if (!config.proxyAPIenabled) { // alert OpenAI API unsupported, suggest Proxy Mode
Expand Down
9 changes: 4 additions & 5 deletions duckduckgpt/greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.1
// @version 2025.1.14.2
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -2902,10 +2902,9 @@
modals.alert(
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_unavailable}`,
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_isOnlyAvailFor}`
+ ( !env.browser.isEdge && !env.browser.isBrave ? // suggest TM for supported browsers
` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}` : '' )
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.` // suggest SC
+ ` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}`
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.`
+ ` (${app.msgs.alert_userscriptMgrNoStream}.)`
)
} else if (!config.proxyAPIenabled) { // alert OpenAI API unsupported, suggest Proxy Mode
Expand Down
9 changes: 4 additions & 5 deletions googlegpt/greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.14.1
// @version 2025.1.14.2
// @license MIT
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
Expand Down Expand Up @@ -3237,10 +3237,9 @@
modals.alert(
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_unavailable}`,
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_isOnlyAvailFor}`
+ ( !env.browser.isEdge && !env.browser.isBrave ? // suggest TM for supported browsers
` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}` : '' )
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.` // suggest SC
+ ` <a target="_blank" rel="noopener" href="https://tampermonkey.net">Tampermonkey</a> ${
app.msgs.alert_and}`
+ ` <a target="_blank" rel="noopener" href="${scLink}">ScriptCat</a>.`
+ ` (${app.msgs.alert_userscriptMgrNoStream}.)`
)
} else if (!config.proxyAPIenabled) { // alert OpenAI API unsupported, suggest Proxy Mode
Expand Down

0 comments on commit 3d2e693

Please sign in to comment.