Skip to content

Commit cde2ce2

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

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bravegpt/greasemonkey/bravegpt.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-Brave Search (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.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -555,11 +555,7 @@
555555
label: `${app.msgs.menuLabel_about} ${app.name}...` }
556556
}})
557557
Object.assign(config, { minFontSize: 11, maxFontSize: 24, lineHeightRatio: 1.313 })
558-
settings.load(
559-
'anchored', 'autoGetDisabled', 'autoFocusChatbarDisabled', 'autoScroll', 'bgAnimationsDisabled', 'expanded',
560-
'fgAnimationsDisabled', 'fontSize', 'minimized', 'prefixEnabled', 'proxyAPIenabled', 'replyLanguage',
561-
'rqDisabled', 'scheme', 'stickySidebar', 'streamingDisabled', 'suffixEnabled', 'widerSidebar'
562-
)
558+
settings.load([...Object.keys(settings.controls), 'expanded', 'fontSize', 'minimized'])
563559
if (!config.replyLanguage) settings.save('replyLanguage', env.browser.language) // init reply language if unset
564560
if (!config.fontSize) settings.save('fontSize', 16) // init reply font size if unset
565561
if (!env.streamingSupported.byBrowser || !env.streamingSupported.byScriptManager)

0 commit comments

Comments
 (0)