Skip to content

Commit 8738b12

Browse files
committed
1 parent 8332105 commit 8738b12

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.4.26
228+
// @version 2025.4.27
229229
// @license MIT
230230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -651,7 +651,7 @@
651651
safeWinOpen(url) { open(url, '_blank', 'noopener') }, // to prevent backdoor vulnerabilities
652652

653653
stylize() {
654-
this.styles = dom.create.style(
654+
document.head.append(this.styles = dom.create.style(
655655
`.${this.class} {` // modals
656656
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
657657
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
@@ -687,8 +687,7 @@
687687
+ `background-color: #${ env.ui.scheme == 'dark' ? '00cfff' : '9cdaff' } !important }`
688688
+ ( !env.browser.isMobile ? `.${this.class} .modal-buttons { margin-left: -13px !important }` : '' )
689689
+ `.about-em { color: ${ env.ui.scheme == 'dark' ? 'white' : 'green' } !important }`
690-
)
691-
document.head.append(this.styles)
690+
))
692691
},
693692

694693
update: {
@@ -783,7 +782,7 @@
783782
},
784783

785784
stylize() {
786-
this.styles = dom.create.style(
785+
document.head.append(this.styles = dom.create.style(
787786
`:root { /* vars */
788787
--switch-enabled-bg-color: #ad68ff ; --switch-disabled-bg-color: #ccc ;
789788
--switch-enabled-box-shadow: 1px 2px 8px #d8a9ff ;
@@ -846,8 +845,7 @@
846845
box-shadow: var(--knob-box-shadow-dark) ; /* make 3D-er */
847846
-webkit-box-shadow: var(--knob-box-shadow-dark) ;
848847
-moz-box-shadow: var(--knob-box-shadow-dark) }`
849-
)
850-
document.head.append(this.styles)
848+
))
851849
},
852850

853851
insert() {

0 commit comments

Comments
 (0)