Skip to content

Commit

Permalink
Fixed Brave classes no-longer assigned to non-link footer content
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 16, 2025
1 parent d3c9bc2 commit e87e42d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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.16
// @version 2025.1.15.17
// @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 @@ -2466,9 +2466,9 @@

// Update footer content
const newFooterContent = destinationURL ?
dom.create.anchor(destinationURL, {
target: '_self', class: `${braveClassList} anchored-hidden` })
dom.create.anchor(destinationURL, { target: '_self' })
: document.createElement('span')
newFooterContent.className = `${braveClassList} anchored-hidden`
footerContent.replaceWith(newFooterContent) ; footerContent = newFooterContent
footerContent.textContent = chosenAd.text
footerContent.setAttribute('title', chosenAd.tooltip || '')
Expand Down

0 comments on commit e87e42d

Please sign in to comment.