Skip to content

Commit

Permalink
Replaced btnClone.textContent w/ btn.textContent in dismissal str…
Browse files Browse the repository at this point in the history
…ipper for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Dec 3, 2024
1 parent 8046a5f commit b577382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatgpt/chatgpt-infinity/chatgpt-infinity.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
// @description:zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.12.2.3
// @version 2024.12.2.4
// @license MIT
// @match *://chatgpt.com/*
// @match *://chat.openai.com/*
Expand Down Expand Up @@ -719,8 +719,8 @@
const btnClone = btn.cloneNode(true)
btn.parentNode.replaceChild(btnClone, btn) ; btn = btnClone
btn.onclick = () => modals.safeWinOpen(app.urls.donate[
btnClone.textContent == 'Cash App' ? 'cashApp'
: btnClone.textContent == 'GitHub' ? 'gitHub'
btn.textContent == 'Cash App' ? 'cashApp'
: btn.textContent == 'GitHub' ? 'gitHub'
: 'payPal'
])
}
Expand Down

0 comments on commit b577382

Please sign in to comment.