Skip to content

Commit d9234ee

Browse files
committed
Shortened init settings.load() arg using Object.keys(settings.controls) ↞ [auto-sync from https://github.com/adamlui/userscripts]
1 parent 62409ca commit d9234ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 2 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.10
6+
// @version 2025.1.10.1
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
@@ -378,8 +378,7 @@
378378
label: `${app.msgs.menuLabel_about} ${app.name}...` }
379379
}})
380380
Object.assign(config, { minFontSize: 11, maxFontSize: 24, lineHeightRatio: 1.28 })
381-
settings.load('autoFocusChatbarDisabled', 'autoScroll', 'bgAnimationsDisabled', 'expanded', 'fgAnimationsDisabled',
382-
'fontSize', 'minimized', 'proxyAPIenabled', 'replyLanguage', 'scheme', 'streamingDisabled')
381+
settings.load([...Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized'])
383382
if (!config.replyLanguage) settings.save('replyLanguage', env.browser.language) // init reply language if unset
384383
if (!config.fontSize) settings.save('fontSize', 14) // init reply font size if unset
385384
if (!env.streamingSupported.byBrowser || !env.streamingSupported.byScriptManager)

0 commit comments

Comments
 (0)