Skip to content

Commit a8935da

Browse files
committed
1 parent 0afab02 commit a8935da

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.3.3.1
228+
// @version 2025.3.3.2
229229
// @license MIT
230230
// @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
231231
// @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
@@ -548,8 +548,7 @@
548548

549549
// Replace link buttons w/ clones that don't dismiss modal
550550
if (/support|discuss|extensions/i.test(btn.textContent)) {
551-
const btnClone = btn.cloneNode(true)
552-
btn.parentNode.replaceChild(btnClone, btn) ; btn = btnClone
551+
btn.replaceWith(btn = btn.cloneNode(true))
553552
btn.onclick = () => modals.safeWinOpen(app.urls[
554553
btn.textContent.includes(app.msgs.btnLabel_getSupport) ? 'support'
555554
: btn.textContent.includes(app.msgs.btnLabel_discuss) ? 'discuss' : 'relatedExtensions'
@@ -615,8 +614,7 @@
615614

616615
// Replace link buttons w/ clones that don't dismiss modal
617616
if (!/dismiss/i.test(btn.textContent)) {
618-
const btnClone = btn.cloneNode(true)
619-
btn.parentNode.replaceChild(btnClone, btn) ; btn = btnClone
617+
btn.replaceWith(btn = btn.cloneNode(true))
620618
btn.onclick = () => modals.safeWinOpen(app.urls.donate[
621619
btn.textContent == 'Cash App' ? 'cashApp'
622620
: btn.textContent == 'Github Sponsors' ? 'gitHub' : 'payPal'

0 commit comments

Comments
 (0)