Skip to content

Commit 16edb87

Browse files
committed
Moved footerContent to app
1 parent f4cf7d0 commit 16edb87

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.5.17.15
151+
// @version 2025.5.17.16
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -1037,14 +1037,14 @@
10371037
}
10381038

10391039
// Update footer content
1040-
footerContent.setAttribute('class', '') // reset for re-fade
1040+
app.footerContent.setAttribute('class', '') // reset for re-fade
10411041
const newFooterContent = destinationURL ? dom.create.anchor(destinationURL)
10421042
: dom.create.elem('span')
1043-
footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent
1044-
footerContent.classList.add('fade-in', 'anchored-hidden')
1045-
footerContent.textContent = chosenAd.text
1046-
footerContent.setAttribute('title', chosenAd.tooltip || '')
1047-
setTimeout(() => footerContent.classList.add('active'), 100) // to trigger fade
1043+
app.footerContent.replaceWith(newFooterContent) ; app.footerContent = newFooterContent
1044+
app.footerContent.classList.add('fade-in', 'anchored-hidden')
1045+
app.footerContent.textContent = chosenAd.text
1046+
app.footerContent.setAttribute('title', chosenAd.tooltip || '')
1047+
setTimeout(() => app.footerContent.classList.add('active'), 100) // to trigger fade
10481048
adSelected = true ; break
10491049
}
10501050
if (adSelected) break // out of campaign loop after ad selection
@@ -3099,9 +3099,9 @@
30993099

31003100
// Create/classify/fill feedback FOOTER
31013101
app.footer = dom.create.elem('footer', { class: 'fade-in anchored-hidden' })
3102-
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' })
3103-
footerContent.onclick = () => modals.open('feedback')
3104-
app.footer.append(footerContent)
3102+
app.footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' })
3103+
app.footerContent.onclick = () => modals.open('feedback')
3104+
app.footer.append(app.footerContent)
31053105

31063106
// Check for active TEXT CAMPAIGNS to replace footer CTA
31073107
update.footerContent()

0 commit comments

Comments
 (0)