File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.9.23.1
151+ // @version 2025.9.24
152152// @license MIT
153153// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154// @icon 64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
10251025 modeKey = `auto${ log . toTitleCase ( mode ) } ${ mode == 'get' ? 'Disabled' : '' } `
10261026 let conflictingModeToggled = false // to extend this notif duration
10271027 settings . save ( modeKey , ! config [ modeKey ] )
1028- if ( settings . typeIsEnabled ( modeKey ) ) { // this Auto-Gen mode toggled on, disable other one + Manual-Gen
1028+ if ( settings . typeIsEnabled ( modeKey ) ) { // this Auto-Gen mode toggled on, disable other one + Manual-Gen + do it
10291029 const otherMode = validModes [ + ( mode == validModes [ 0 ] ) ] ,
10301030 otherModeKey = `auto${ log . toTitleCase ( otherMode ) } ${ otherMode == 'get' ? 'Disabled' : '' } `
10311031 if ( settings . typeIsEnabled ( otherModeKey ) ) { toggle . autoGen ( otherMode ) ; conflictingModeToggled = true }
10321032 [ 'prefix' , 'suffix' ] . forEach ( mode => {
10331033 if ( config [ `${ mode } Enabled` ] ) { toggle . manualGen ( mode ) ; conflictingModeToggled = true } } )
1034+ app . div . querySelector (
1035+ `button[class*=standby]:has(svg.${ mode == 'get' ? 'send' : 'summarize' } )` ) ?. click ( )
10341036 }
10351037 feedback . notify ( `${ settings . controls [ modeKey ] . label } ${ menus . toolbar . state . words [ + settings . typeIsEnabled ( modeKey ) ] } ` ,
10361038 null , conflictingModeToggled ? 2.75 : null ) // +1s duration if conflicting mode notif shown
You can’t perform that action at this time.
0 commit comments