File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
chatgpt/autoclear-chatgpt-history Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 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// @icon 64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
548548
549549 // Replace link buttons w/ clones that don't dismiss modal
550550 if ( / s u p p o r t | d i s c u s s | e x t e n s i o n s / 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'
615614
616615 // Replace link buttons w/ clones that don't dismiss modal
617616 if ( ! / d i s m i s s / 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'
You can’t perform that action at this time.
0 commit comments