Skip to content

Commit 0684ae2

Browse files
committed
Changed config key check for showing AI safety warning from notFirstRun to aiSafetyWarned to align w/ other KudoAI scripts ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 0f3d410 commit 0684ae2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2026.1.26.7
6+
// @version 2026.1.26.8
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -270,7 +270,7 @@
270270
label: `${app.msgs.menuLabel_about} ${app.name}...` }
271271
}})
272272
Object.assign(app.config, { lineHeightRatio: 1.28, maxFontSize: 24, minFontSize: 11 })
273-
settings.load(Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized', 'notFirstRun')
273+
settings.load(Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized', 'aiSafetyWarned')
274274
if (!app.config.replyLang) settings.save('replyLang', env.browser.language) // init reply language if unset
275275
if (!app.config.fontSize) settings.save('fontSize', 14) // init reply font size if unset
276276
if (!env.scriptManager.supportsStreaming) settings.save('streamingDisabled', true) // disable Streaming in unspported env
@@ -2046,7 +2046,7 @@
20462046
// Init UI props
20472047
env.ui = { app: { scheme: app.config.scheme || ui.getScheme() }, site: { scheme: ui.getScheme() }}
20482048

2049-
if (!app.config.notFirstRun) {
2049+
if (!app.config.aiSafetyWarned) {
20502050
modals.alert('⚠️ Important Notice:',
20512051
`<b>${app.name}</b> is powered by AI technology. While designed to be helpful:\n\n`
20522052
+ '• <b>AI can make mistakes</b> - Always verify important information\n'
@@ -2055,7 +2055,7 @@
20552055
+ 'Use responsibly!',
20562056
null, null, 388
20572057
)
2058-
settings.save('notFirstRun', true)
2058+
settings.save('aiSafetyWarned', true)
20592059
}
20602060

20612061
// Exit on specific pages

0 commit comments

Comments
 (0)