Adds AI answers to DuckDuckGo (powered by GPT-4o!)
A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.
Replaced .className ='s w/ more performant .classList.add()'s
.className =
.classList.add()
...when number of classes to add is low ↞ [auto-sync from kudoai/duckduckgpt]
kudoai/duckduckgpt
Added .no-user-select to ddgptStyle + title spans ↞ [auto-sync from kudoai/duckduckgpt]
.no-user-select
ddgptStyle
Bumped chatgpt.js to 2.4.2 ↞ [auto-sync from kudoai/duckduckgpt]
Removed unset config.notifHidden ↞ [auto-sync from kudoai/duckduckgpt]
config.notifHidden
Shortened .ddgpt-container to .ddgpt ↞ [auto-sync from kudoai/duckduckgpt]
.ddgpt-container
.ddgpt
Lightened dark mode footer link ↞ [auto-sync from kudoai/duckduckgpt]
Bumped chatgpt.js to 2.4.1 ↞ [auto-sync from kudoai/duckduckgpt]
Raised send button in non-Chromium browsers ↞ [auto-sync from kudoai/duckduckgpt]
Eliminated single-called loadDDGPT() ↞ [auto-sync from kudoai/duckduckgpt]
loadDDGPT()
Renamed wsbSVGelems to wsbSVGpaths ↞ [auto-sync from kudoai/duckduckgpt]
wsbSVGelems
wsbSVGpaths
Removed airplane cursor from related query hovers ↞ [auto-sync from kudoai/duckduckgpt]
Shrank chatbar text size in FF ↞ [auto-sync from kudoai/duckduckgpt]
Replaced send button icon w/ up-arrow ↞ [auto-sync from kudoai/duckduckgpt]
Narrowed gap between Wider Sidebar & Speak buttons ↞ [auto-sync from kudoai/duckduckgpt]
Renamed wsb*elems to wsb*paths ↞ [auto-sync from kudoai/duckduckgpt]
wsb*elems
wsb*paths
Incorporated createSVGelem() into [speakSVGpaths] init ↞ [auto-sync from kudoai/duckduckgpt]
createSVGelem()
[speakSVGpaths]
Localized 'Exit' prefix to Wider Sidebar button tooltip ↞ [auto-sync from kudoai/duckduckgpt]
Added/re-positioned buttons, added/re-factored functions/routines
± Added Wider Sidebar button
toggleWiderSidebar()
isDarkMode()
chatgpt.isDarkMode()
isCenteredMode()
wsbStyle
Updated download/update URLs
Replaced Fatter Sidebar w/ Wider Sidebar
...in config key names + menu labels + notifications + var names ↞ [auto-sync from kudoai/duckduckgpt]
Replaced .match() w/ faster method ↞ [auto-sync from kudoai/duckduckgpt]
.match()
Updated download/update URLs ↞ [auto-sync from kudoai/duckduckgpt]
Overrode DDG plain H2 style in alerts ↞ [auto-sync from kudoai/duckduckgpt]
Added fallbacks to localized messages, adjusted alert styles
updateAlertWidth
Bumped chatgpt.js to 2.4.0 ↞ [auto-sync from kudoai/duckduckgpt]
Refactored handleEnter(event)
handleEnter(event)
cursorPos
caretPos
Corrected chat text area selector ↞ [auto-sync from kudoai/duckduckgpt]
Allowed ctrl+enter to add newline in reply ↞ [auto-sync from kudoai/duckduckgpt]
Bumped chatgpt.js to 2.3.18 ↞ [auto-sync from kudoai/duckduckgpt]
Updated corner button colors/classes/position
± Merged .about-btn + .speak-btn into .corner-btn ± Refactored speakSVGpaths routine to rely on CSS for stroke/fill color
.about-btn
.speak-btn
.corner-btn
speakSVGpaths
Raised play btn, shrank related query bubble padding/font-size ↞ [auto-sync from kudoai/duckduckgpt]
Refactored ddgptShow(answer)
ddgptShow(answer)
± Renamed elem var names for readability ± Replaced ddgptDiv.querySelector('pre') from renderMathInElement() w/ answerPre
ddgptDiv.querySelector('pre')
renderMathInElement()
answerPre
ddgptDiv.querySelector('section')
Bumped chatgpt.js to 2.3.17 ↞ [auto-sync from kudoai/duckduckgpt]
Updated ddgptShow(answer)
± Added const fillColor
const fillColor
.speak
Added tooltip to play button ↞ [auto-sync from kudoai/duckduckgpt]
Removed unused classes from sendSVG ↞ [auto-sync from kudoai/duckduckgpt]
sendSVG
Replaced chatbar w/ chatTextarea in ddgptShow(answer) ↞ [auto-sync from kudoai/duckduckgpt]
chatbar
chatTextarea
Added speak functionality, refactored ddgptShow(answer)
± Eliminated potentially unsafe .innerHTML dependency ± Replaced form + chatbar inits/refs w/ vars from new DOM routine ↞ [auto-sync from kudoai/duckduckgpt]
.innerHTML
form
Renamed .prefix to .app-name, shortened CSS selectors ↞ [auto-sync from kudoai/duckduckgpt]
.prefix
.app-name
Reduced related query bubble padding ↞ [auto-sync from kudoai/duckduckgpt]
Changed light mode color of related queries hover cursor ↞ [auto-sync from kudoai/duckduckgpt]
Added send icon to related query hovers ↞ [auto-sync from kudoai/duckduckgpt]
Changed light-mode color of chatbar stroke + send btn hover ↞ [auto-sync from kudoai/duckduckgpt]
Replaced sendBtn click listener w/ form submit listener
sendBtn
± Re-positioned FF related queries ↞ [auto-sync from kudoai/duckduckgpt]
Added send button, corrected selector for key listener removal ↞ [auto-sync from kudoai/duckduckgpt]
Widened related queries div, lowered textarea innards in Chromium ↞ [auto-sync from kudoai/duckduckgpt]
Replaced isDarkMode() calls in ddgptStyle.innerText w/ scheme ↞ [auto-sync from kudoai/duckduckgpt]
ddgptStyle.innerText
scheme
Defined launchAboutModal(), added nav back on no update found
launchAboutModal()
± Re-ordered script/menu function defs ↞ [auto-sync from kudoai/duckduckgpt]
Updated alert styles ↞ [auto-sync from kudoai/duckduckgpt]
Updated related queries' styles ↞ [auto-sync from kudoai/duckduckgpt]
Ver todas las versiones del script.