Skip to content

Commit ae681fd

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

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 2 additions & 6 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.10
151+
// @version 2025.1.10.1
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
@@ -555,11 +555,7 @@
555555
label: `${app.msgs.menuLabel_about} ${app.name}...` }
556556
}})
557557
Object.assign(config, { minFontSize: 11, maxFontSize: 24, lineHeightRatio: 1.28 })
558-
settings.load(
559-
'anchored', 'autoGet', 'autoFocusChatbarDisabled', 'autoScroll', 'bgAnimationsDisabled', 'expanded',
560-
'fgAnimationsDisabled', 'fontSize', 'minimized', 'notFirstRun', 'prefixEnabled', 'proxyAPIenabled',
561-
'replyLanguage', 'rqDisabled', 'scheme', 'stickySidebar', 'streamingDisabled', 'suffixEnabled', 'widerSidebar'
562-
)
558+
settings.load([...Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized', 'notFirstRun'])
563559
if (!config.replyLanguage) settings.save('replyLanguage', env.browser.language) // init reply language if unset
564560
if (!config.fontSize) settings.save('fontSize', 14) // init reply font size if unset
565561
if (!env.streamingSupported.byBrowser || !env.streamingSupported.byScriptManager)

0 commit comments

Comments
 (0)