Skip to content

Commit c9ac70f

Browse files
committed
Eliminated single-use .no-user-select{} from modals.styles for simplicity
1 parent 57424d7 commit c9ac70f

File tree

9 files changed

+30
-39
lines changed

9 files changed

+30
-39
lines changed

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

Lines changed: 4 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.24
228+
// @version 2025.3.31
229229
// @license MIT
230230
// @icon https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon48.png
231231
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon64.png
@@ -637,7 +637,7 @@
637637

638638
init(modal) {
639639
if (!this.styles) this.stylize() // to init/append stylesheet
640-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
640+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
641641
dom.addRisingParticles(modal)
642642
},
643643

@@ -674,9 +674,8 @@
674674
document.head.append(this.styles)
675675
}
676676
this.styles.innerText = (
677-
`.no-user-select {
678-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
679-
+ `.${this.class} {` // modals
677+
`.${this.class} {` // modals
678+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
680679
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
681680
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
682681
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-auto-continue/chromium/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ window.modals = {
158158

159159
init(modal) {
160160
if (!this.styles) this.stylize() // to init/append stylesheet
161-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
161+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
162162
dom.addRisingParticles(modal)
163163
},
164164

@@ -195,9 +195,8 @@ window.modals = {
195195
document.head.append(this.styles)
196196
}
197197
this.styles.innerText = (
198-
`.no-user-select {
199-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
200-
+ `.${this.class} {` // modals
198+
`.${this.class} {` // modals
199+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
201200
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
202201
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
203202
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-auto-continue/firefox/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ window.modals = {
158158

159159
init(modal) {
160160
if (!this.styles) this.stylize() // to init/append stylesheet
161-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
161+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
162162
dom.addRisingParticles(modal)
163163
},
164164

@@ -195,9 +195,8 @@ window.modals = {
195195
document.head.append(this.styles)
196196
}
197197
this.styles.innerText = (
198-
`.no-user-select {
199-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
200-
+ `.${this.class} {` // modals
198+
`.${this.class} {` // modals
199+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
201200
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
202201
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
203202
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-auto-refresh/greasemonkey/chatgpt-auto-refresh.user.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.3.24
223+
// @version 2025.3.31
224224
// @license MIT
225225
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon48.png
226226
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon64.png
@@ -669,7 +669,7 @@
669669

670670
init(modal) {
671671
if (!this.styles) this.stylize() // to init/append stylesheet
672-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
672+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
673673
dom.addRisingParticles(modal)
674674
},
675675

@@ -706,9 +706,8 @@
706706
document.head.append(this.styles)
707707
}
708708
this.styles.innerText = (
709-
`.no-user-select {
710-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
711-
+ `.${this.class} {` // modals
709+
`.${this.class} {` // modals
710+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
712711
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
713712
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
714713
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

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

Lines changed: 4 additions & 5 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.3.24
228+
// @version 2025.3.31
229229
// @license MIT
230230
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon48.png
231231
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon64.png
@@ -615,7 +615,7 @@
615615

616616
init(modal) {
617617
if (!this.styles) this.stylize() // to init/append stylesheet
618-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
618+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
619619
dom.addRisingParticles(modal)
620620
},
621621

@@ -652,9 +652,8 @@
652652
document.head.append(this.styles)
653653
}
654654
this.styles.innerText = (
655-
`.no-user-select {
656-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
657-
+ `.${this.class} {` // modals
655+
`.${this.class} {` // modals
656+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
658657
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
659658
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
660659
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-infinity/chromium/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ window.modals = {
182182

183183
init(modal) {
184184
if (!this.styles) this.stylize() // to init/append stylesheet
185-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
185+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
186186
dom.addRisingParticles(modal)
187187
},
188188

@@ -219,9 +219,8 @@ window.modals = {
219219
document.head.append(this.styles)
220220
}
221221
this.styles.innerText = (
222-
`.no-user-select {
223-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
224-
+ `.${this.class} {` // modals
222+
`.${this.class} {` // modals
223+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
225224
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
226225
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
227226
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-infinity/firefox/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ window.modals = {
182182

183183
init(modal) {
184184
if (!this.styles) this.stylize() // to init/append stylesheet
185-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
185+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
186186
dom.addRisingParticles(modal)
187187
},
188188

@@ -219,9 +219,8 @@ window.modals = {
219219
document.head.append(this.styles)
220220
}
221221
this.styles.innerText = (
222-
`.no-user-select {
223-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
224-
+ `.${this.class} {` // modals
222+
`.${this.class} {` // modals
223+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
225224
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
226225
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
227226
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-widescreen/chromium/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ window.modals = {
181181

182182
init(modal) {
183183
if (!this.styles) this.stylize() // to init/append stylesheet
184-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
184+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
185185
dom.addRisingParticles(modal)
186186
},
187187

@@ -218,9 +218,8 @@ window.modals = {
218218
document.head.append(this.styles)
219219
}
220220
this.styles.innerText = (
221-
`.no-user-select {
222-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
223-
+ `.${this.class} {` // modals
221+
`.${this.class} {` // modals
222+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
224223
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
225224
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
226225
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

chatgpt-widescreen/firefox/extension/components/modals.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ window.modals = {
181181

182182
init(modal) {
183183
if (!this.styles) this.stylize() // to init/append stylesheet
184-
modal.classList.add('no-user-select', this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
184+
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`)
185185
dom.addRisingParticles(modal)
186186
},
187187

@@ -218,9 +218,8 @@ window.modals = {
218218
document.head.append(this.styles)
219219
}
220220
this.styles.innerText = (
221-
`.no-user-select {
222-
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none }`
223-
+ `.${this.class} {` // modals
221+
`.${this.class} {` // modals
222+
+ 'user-select: none ; -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ;'
224223
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
225224
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
226225
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'

0 commit comments

Comments
 (0)