Skip to content

Commit 9b91caa

Browse files
committed
Eliminated toolbarMenu.ids init to condense .register() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/bravegpt]
1 parent 60de612 commit 9b91caa

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 4 additions & 4 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.3.31.10
151+
// @version 2025.4.1
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon64.png
@@ -610,7 +610,7 @@
610610
// Define MENU functions
611611

612612
const toolbarMenu = {
613-
ids: [], state: {
613+
state: {
614614
symbols: ['❌', '✔️'], separator: env.scriptManager.name == 'Tampermonkey' ? ' — ' : ': ',
615615
words: [app.msgs.state_off.toUpperCase(), app.msgs.state_on.toUpperCase()]
616616
},
@@ -627,8 +627,8 @@
627627
const pmLabel = this.state.symbols[+config.proxyAPIenabled] + ' '
628628
+ settings.controls.proxyAPIenabled.label + ' '
629629
+ this.state.separator + this.state.words[+config.proxyAPIenabled]
630-
this.ids.push(GM_registerMenuCommand(pmLabel, toggle.proxyMode,
631-
env.scriptManager.supportsTooltips ? { title: settings.controls.proxyAPIenabled.helptip } : undefined));
630+
this.ids = [GM_registerMenuCommand(pmLabel, toggle.proxyMode,
631+
env.scriptManager.supportsTooltips ? { title: settings.controls.proxyAPIenabled.helptip } : undefined)];
632632

633633
// Add About/Settings entries
634634
['about', 'settings'].forEach(entryType => this.ids.push(GM_registerMenuCommand(

chatgpt/bravegpt/docs/README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
<img height=8px width="100%" src="https://assets.bravegpt.com/images/separators/gradient-aqua.png?v=d80d04b">
5454

5555
<div id="golden-sponsors" align="center">
56+
5657
<br>
5758

58-
### Golden Sponsors:
59+
### Supported by:
5960

6061
<div id="warp">
61-
<br><br>
62+
<br>
6263
<a href="https://www.warp.dev/chatgptjs" target="_blank">
6364
<img width="600" src="https://assets.chatgptjs.org/images/banners/warp/banner-1500x500.png?v=476e837">
6465
</a>
@@ -68,19 +69,7 @@
6869
Available for MacOS, Linux, & Windows</a></i>
6970
</div>
7071

71-
<br>
72-
73-
#
74-
75-
<br>
76-
77-
<a href="https://www.burncloud.com/893.html">
78-
<picture>
79-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/white.png?v=610795b">
80-
<img width=685 src="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/black.png?v=610795b">
81-
</picture>
82-
</a>
83-
<br><br><br>
72+
<br><br>
8473

8574
</div>
8675

0 commit comments

Comments
 (0)