Skip to content

Commit

Permalink
Condensed fill starry BG routine ↞ [auto-sync from `adamlui/chatgpt-a…
Browse files Browse the repository at this point in the history
…pps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jun 30, 2024
1 parent 3d70671 commit 742e71a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.6.30.4
// @version 2024.6.30.5
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -1951,13 +1951,14 @@

// Build answer interface up to reply section if missing
if (!appDiv.querySelector('pre')) {
while (appDiv.firstChild) appDiv.removeChild(appDiv.firstChild) // clear app content
while (appDiv.firstChild) appDiv.removeChild(appDiv.firstChild); // clear app content

// Fill starry BG
const starsSm = document.createElement('div') ; starsSm.id = `${ scheme == 'dark' ? 'white' : 'black' }-stars-sm`
const starsMed = document.createElement('div') ; starsMed.id = `${ scheme == 'dark' ? 'white' : 'black' }-stars-med`
const starsLg = document.createElement('div') ; starsLg.id = `${ scheme == 'dark' ? 'white' : 'black' }-stars-lg`
appDiv.append(starsSm, starsMed, starsLg)
['sm', 'med', 'lg'].forEach(size => {
const starsDiv = document.createElement('div')
starsDiv.id = `${ scheme == 'dark' ? 'white' : 'black' }-stars-${size}`
appDiv.append(starsDiv)
})

// Create/append app title anchor
updateTitleAnchor()
Expand Down

0 comments on commit 742e71a

Please sign in to comment.