BraveGPT 🤖

Adds ChatGPT answers to Brave Search sidebar (powered by GPT-4o!)

These are versions of this script where the code was updated. Show all versions.

  • v2023.1.8.2 2024-01-08

    Added more languages to TTS

    • Added logography to Chinese regex
    • Removed whitespace ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.1.8.1 2024-01-08

    Added Arabic/Danish/Polish/Russian support to TTS

    • Removed end anchor from Chinese regex ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.1.8 2024-01-08

    Improved dialectMap.entry.regex

    • Added ISO 639-2 support ± Shortened ISO 639-1 region code detection ± Moved anchors out for readability ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.12.31 2024-01-01

    Refined related queries prompt ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.25 2023-12-26

    Added German/Spanish/French support to TTS (KudoAI/googlegpt#9)

    ± Replaced appLogoImg.alt assignment w/ config.appName ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.11 2023-12-24

    Updated config.gitHubURL casing ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.10 2023-12-24

    Added config.appURL, re-ordered config key inits for readability ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.9 2023-12-24

    Generalized function/var names

    ... for improved synergy w/ codebase of other KudoAI GPT scripts ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.8 2023-12-24

    Added target browser check to updateFooterContent() ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.7 2023-12-24

    Removed final .innerHTML reliance + sidebar campaign checker ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.6 2023-12-24

    Countered braveGPTdiv padding in braveGPTalert() ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.5 2023-12-24

    Refactored braveGPTalert()

    ± Replaced potentially unsafe reliance on .innerHTML ± Re-ordered commands ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.4 2023-12-24

    Darkened mobile dark scheme background color ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.3 2023-12-24

    Darkened mobile dark scheme background color ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.2 2023-12-24

    Added mobile dark scheme background color ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23.1 2023-12-24

    Updated icon meta URLs, shortened comment ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.23 2023-12-23

    Bumped chatgpt.js to 2.6.3 ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.21.4 2023-12-21

    Changed ddgptError to braveGPTereror ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.21.3 2023-12-21

    Added error-catching to getAIGCFkey() ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.21.2 2023-12-21

    Added content div to overflow override ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.21.1 2023-12-21

    Fixed inaccurate scheme detection ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.21 2023-12-21

    Replaced app name text w/ logo

    ± Enhanced createAnchor() to accept any displayContent ± Moved UI flag inits before message definition to pre-load logo ± Tightened corner button spacing to fit larger logo ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.19 2023-12-19

    Replaced standby button hover glow w/ color/zoom fx ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.10 2023-12-17

    Refined related queries prompt, renamed const to rqPrompt

    • Shortened notify() ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.12.16.9 2023-12-17

    Added // @compatible whale ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.8 2023-12-17

    Narrowed gap between app prefix/name ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.7 2023-12-17

    Moved Send button tooltip rightward ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.6 2023-12-17

    Lowered send button 1px, moved positioning to init routine

    • Added isFirefox ± Re-organized #send-btn{} styles ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.12.16.5 2023-12-17

    Added beautiful tooltip to Send button, improved tooltip functions

    ± Changed .send-button to #send-btn to work w/ updateTooltip()

    • Added y-pos manipulation
    • Shortened opacity assignments in toggleTooltip() to integers ± Moved math vars for x-pos calc in updateTooltip() up
    • Eliminated singly referenced isStandbyMode ± Moved tooltip y-pos setting to functions ± Defined [cornerBtnTypes] to shorten iniRoffset init ± Edited whitespace/comments for readability ↞ [auto-sync from KudoAI/bravegpt]
  • v2023.12.16.4 2023-12-17

    Disabled Sticky Sidebar mode if on standby

    ... to allow Brave sidebar contents to show ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.3 2023-12-17

    Renamed wsbStyle + ssbStyle to wsbStyles + ssbStyles

    ... to differentiate from nodes ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.2 2023-12-17

    Refactored `createAnchor()

    ± Renamed displayText to displayContent to reflect all elems can be passed ± Defined [anchorAttrs] for readability ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16.1 2023-12-17

    Edited comments/whitespace for readability ↞ [auto-sync from KudoAI/bravegpt]

  • v2023.12.16 2023-12-17

    Shortened tooltip pos math vars init using array destructuring ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.11 2023-12-11

    Moved tooltip stylization routine up ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.10 2023-12-10

    Added scrollbar styles ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.9 2023-12-10

    Moved SVG attr array inits down ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.8 2023-12-10

    Shortened single-class assignments ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.7 2023-12-10

    Defined SVG attrs to shorten for-loops, shortened class assginment ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.6 2023-12-10

    Added beautiful button tooltips ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.5 2023-12-10

    Changed var speakSpan to const speakSpan ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.4 2023-12-10

    Hid Sticky Sidebar button from mobile, changed vars to consts ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.3 2023-12-10

    Fixed related queries don't show in Proxy mode ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.2 2023-12-10

    Moved function defs

    ± Moved fetchJSON into updateFooterContent() ± Moved shuffle() + applyBoosts() outward in scope ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10.1 2023-12-10

    Widened sidebar content selector's scope for Sticky Sidebar ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.10 2023-12-10

    Replaced all .appendChild()'s w/ .append()'s to shorten codebase ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.8.4 2023-12-09

    Shortened button var names ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.8.3 2023-12-08

    Added more darkmode alert styles ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.8.2 2023-12-08

    Colored alert Close button white in darkmode ↞ [auto-sync from kudoai/bravegpt]

  • v2023.12.8.1 2023-12-08

    Added !important to darkmode alert background style ↞ [auto-sync from kudoai/bravegpt]

Show all script versions