Skip to content

Commit

Permalink
"Updated appFooter classes
Browse files Browse the repository at this point in the history
+ Added anchored-hidden to support hiding in Anchor Mode
- Removed no-longer useful feedback-prompt + js-feedback-prompt-generic ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
  • Loading branch information
kudo-sync-bot committed Jan 14, 2025
1 parent 857d2dd commit 2fd163e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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 2025.1.14.8
// @version 2025.1.14.9
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -3868,8 +3868,7 @@

// Create/classify/fill feedback FOOTER
const appFooter = document.createElement('footer')
appFooter.classList.add('fade-in', // DDGPT class
'feedback-prompt') // DDG class
appFooter.classList.add('fade-in', 'anchored-hidden') // DDG class
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' })
footerContent.className = 'js-feedback-prompt-generic' // DDG footer class
footerContent.onclick = () => modals.open('feedback')
Expand Down Expand Up @@ -3965,8 +3964,7 @@
const newFooterContent = destinationURL ? dom.create.anchor(destinationURL)
: document.createElement('span')
footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent
footerContent.classList.add('fade-in', // DDGPT fade class
'js-feedback-prompt-generic') // DDG footer class
footerContent.classList.add('fade-in', 'anchored-hidden') // DDG footer class
footerContent.textContent = chosenAd.text
footerContent.setAttribute('title', chosenAd.tooltip || '')
setTimeout(() => footerContent.classList.add('active'), 100) // to trigger fade
Expand Down

0 comments on commit 2fd163e

Please sign in to comment.