Skip to content

Commit

Permalink
Renamed styledState in notify() to styledStateSpan for readabil…
Browse files Browse the repository at this point in the history
…ity ↞ [auto-sync from `adamlui/ai-web-extensions`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent 9258f1a commit 72cea99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.11.11
// @version 2024.11.14
// @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 @@ -801,11 +801,11 @@

// Append styled state word
if (foundState) {
const styledState = document.createElement('span')
styledState.style.cssText = `font-weight: bold ; color: ${
const styledStateSpan = document.createElement('span')
styledStateSpan.style.cssText = `font-weight: bold ; color: ${
foundState == menu.state.words[0] ? '#ef4848 ; text-shadow: rgba(255, 169, 225, 0.44) 2px 1px 5px'
: '#5cef48 ; text-shadow: rgba(255, 250, 169, 0.38) 2px 1px 5px' }`
styledState.append(foundState) ; notif.insertBefore(styledState, notif.children[2])
styledStateSpan.append(foundState) ; notif.insertBefore(styledStateSpan, notif.children[2])
}
}

Expand Down

0 comments on commit 72cea99

Please sign in to comment.