Skip to content

Commit

Permalink
Disabled hide footer in Anchor mode
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 16, 2025
1 parent e87e42d commit 816a628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions bravegpt/greasemonkey/bravegpt.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-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.15.17
// @version 2025.1.15.18
// @license MIT
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
Expand Down Expand Up @@ -2468,7 +2468,7 @@
const newFooterContent = destinationURL ?
dom.create.anchor(destinationURL, { target: '_self' })
: document.createElement('span')
newFooterContent.className = `${braveClassList} anchored-hidden`
newFooterContent.className = braveClassList
footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent
footerContent.textContent = chosenAd.text
footerContent.setAttribute('title', chosenAd.tooltip || '')
Expand Down Expand Up @@ -4054,8 +4054,7 @@

// Init footer CTA to share feedback
const braveClassList = 'feedback svelte-8js1iq'
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, {
target: '_self', class: `${braveClassList} anchored-hidden` })
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self', class: braveClassList })
footerContent.onclick = () => modals.open('feedback')

// REFERRALIZE links to support author
Expand Down
6 changes: 3 additions & 3 deletions googlegpt/greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.15.15
// @version 2025.1.15.16
// @license MIT
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
Expand Down Expand Up @@ -2675,7 +2675,7 @@

// Update footer content
const newFooterContent = destinationURL ?
dom.create.anchor(destinationURL, { class: 'anchored-hidden' })
dom.create.anchor(destinationURL)
: document.createElement('span')
footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent
footerContent.textContent = chosenAd.text
Expand Down Expand Up @@ -4334,7 +4334,7 @@
}), 1500)

// Init footer CTA to share feedback
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self', class: 'anchored-hidden' })
let footerContent = dom.create.anchor('#', app.msgs.link_shareFeedback, { target: '_self' })
footerContent.onclick = () => modals.open('feedback')

// Show STANDBY mode or get/show ANSWER
Expand Down

0 comments on commit 816a628

Please sign in to comment.