מוסיף תשובות AI ל-Brave Search (מופעל על ידי GPT-4o!)
יש גרסאות של סקריפט זה עם קוד מעודכן. הצג את כל הגרסאות
Bumped chatgpt.js to 2.1.1 ↞ [auto-sync from kudoai/bravegpt]
kudoai/bravegpt
Added base to parseInt()'s ↞ [auto-sync from kudoai/bravegpt]
parseInt()
Removed protocol from // @match ↞ [auto-sync from kudoai/bravegpt]
// @match
Replaced source code emoji in about dialog ↞ [auto-sync from kudoai/bravegpt]
Combined const inits, renamed messages to convo ↞ [auto-sync from kudoai/bravegpt]
const
messages
convo
Removed unnecessary escape character ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 2.1.0 ↞ [auto-sync from kudoai/bravegpt]
Removed update auto-alert, changed config.updateURL
config.updateURL
± Replaced messages.link_viewChanges w/ string ↞ [auto-sync from kudoai/bravegpt]
messages.link_viewChanges
Bumped chatgpt.js to 2.0.6 ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 2.0.5 ↞ [auto-sync from kudoai/bravegpt]
Updated config.greasyForkURL ↞ [auto-sync from kudoai/bravegpt]
config.greasyForkURL
Renamed config.ghRepoURL, added config.greasyForkURL ↞ [auto-sync from kudoai/bravegpt]
config.ghRepoURL
Added whitespace ↞ [auto-sync from kudoai/bravegpt]
Optimized Dismiss button selector in Review modal ↞ [auto-sync from kudoai/bravegpt]
Removed locale from Greeasy Fork review URL ↞ [auto-sync from kudoai/bravegpt]
Prepended const to reviewAlertID init ↞ [auto-sync from kudoai/bravegpt]
reviewAlertID
Added About modal, moved update check into it...
± Renamed checkForUpdates() to updateCheck() to not conflict w/ named function for modal button
checkForUpdates()
updateCheck()
chatgpt.alert()
Changed author/namespace metas ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 2.0.3 ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 2.0.2 ↞ [auto-sync from kudoai/bravegpt]
Changed suggestProxyMode to suggestProxy ↞ [auto-sync from kudoai/bravegpt]
suggestProxyMode
suggestProxy
Moved OpenAI endpoints into obj, renamed proxyEndpointMap to proxyEndpoints ↞ [auto-sync from kudoai/bravegpt]
proxyEndpointMap
proxyEndpoints
Major re-factor & optimizations
± Re-sorted function defs ± Added/removed line breaks for readability ± Replaced var's w/ const & let
var
let
stateIndicator
state
menuSymbol
symbol
menuWord
word
stateSeparator
rel="noopener"
a
for
for-of
Math.random()
chatgpt.randomFloat()
getShowReply(question)
getShowReply(messages)
loadBraveGPT.messages.push
braveGPTalerts
Changed menu refreshes from for to for-of loops ↞ [auto-sync from adamlui/chatgpt-apps]
adamlui/chatgpt-apps
Replaced string matching of regex w/ faster method ↞ [auto-sync from adamlui/chatgpt-apps]
Added noopener rel to prevent backdoor attacks ↞ [auto-sync from kudoai/bravegpt]
noopener
Added chatgpt.getUserLanguage() ↞ [auto-sync from kudoai/bravegpt]
chatgpt.getUserLanguage()
Bumped chatgpt.js to 2.0.0 ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 1.12.0 ↞ [auto-sync from kudoai/bravegpt]
Shortened settings functions ↞ [auto-sync from kudoai/bravegpt]
Narrowed scope of proxy error detection to abrupt finishes ↞ [auto-sync from kudoai/bravegpt]
Removed unreliable proxy, added key auto-regen, refactored code
generateRandomIP()
chatgpt.generateRandomIP()
Extended proxy API retries to length of endpoints...
± Replaced ddgpt.error() w/ braveGPTconsole.error() ↞ [auto-sync from kudoai/bravegpt]
ddgpt.error()
braveGPTconsole.error()
Added proxy API, refactored code
getAccessToken()
getOpenAItoken()
accessToken
openAItoken
Bumped chatgpt.js to 1.10.6, replaced uuidv4() w/ chatgpt.uuidv4() ↞ [auto-sync from kudoai/bravegpt]
uuidv4()
chatgpt.uuidv4()
Bumped chatgpt.js to 1.10.5 ↞ [auto-sync from kudoai/bravegpt]
Replaced Math.random() in uuidv4() w/ secure crypto method ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js to 1.10.4 ↞ [auto-sync from kudoai/bravegpt]
Removed leftover else
else
Added retries & alert to switch modes to more cases, refactored code
+- Moved ddgptAlerts down
ddgptAlerts
event.status !== 200
braveGPTalert('parseFailed')
event.response
braveGPTalerts.parseFailed
braveGPTalerts.tooManyRequests
Bumped chatgpt.js to 1.10.3 ↞ [auto-sync from kudoai/bravegpt]
Changed update check frequency to weekly ↞ [auto-sync from kudoai/bravegpt]
Updated Khmer description meta ↞ [auto-sync from kudoai/bravegpt]
Added missing ) ↞ [auto-sync from kudoai/bravegpt]
)
Bumped chatgpt.js to 1.10.2 ↞ [auto-sync from kudoai/bravegpt]
Bumped chatgpt.js, updated meta, improved code
± Added/update name/description meta ± Bumped chatgpt.js to 1.10.2 ± Replaced config.ghHostDir w/ config.assetHostURL
config.ghHostDir
config.assetHostURL
window.open()
GM_openInTab()
onClose
Updated update checker
± Corrected config.updateURL value
updateURL
Moved configPrefix + appSymbol into config obj...
configPrefix
appSymbol
config
± Re-ordered meta ± Condensed code ↞ [auto-sync from kudoai/bravegpt]
Improved update checker
± Replaced fetch() w/ GM.xmlHttpRequest() ± Replaced var's with const's ± Shortened by eliminating var data ± Added early break out of comparison loop if up-to-date ↞ [auto-sync from kudoai/bravegpt]
fetch()
GM.xmlHttpRequest()
var data
Added auto-reload on auto-update
Show all script versions