Skip to content

Commit 2a57b29

Browse files
committed
Re-organized rendered reply text styles for readability
1 parent ba91d88 commit 2a57b29

File tree

4 files changed

+50
-31
lines changed

4 files changed

+50
-31
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.3.30.2
6+
// @version 2025.3.30.3
77
// @license MIT
88
// @icon https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@0fddfc7/assets/images/icons/amazongpt/black-gold-teal/icon48.png
99
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@0fddfc7/assets/images/icons/amazongpt/black-gold-teal/icon64.png
@@ -1902,25 +1902,30 @@
19021902
code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }
19031903
code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }`
19041904

1905-
// Rendered AI reply text styles
1905+
// Rendered markdown styles
19061906
+ `#${app.slug} .reply-pre h1 { font-size: 1.8em }
19071907
#${app.slug} .reply-pre h2 { font-size: 1.65em }
19081908
#${app.slug} .reply-pre h3 { font-size: 1.4em }
1909-
#${app.slug} .reply-pre h1, #${app.slug} .reply-pre h2, #${app.slug} .reply-pre h3 { margin-bottom: -15px }
1909+
#${app.slug} .reply-pre h1, #${app.slug} .reply-pre h2, #${app.slug} .reply-pre h3 {
1910+
margin-bottom: -15px } /* reduce gap after headings */
19101911
#${app.slug} .reply-pre ol { /* override ol styles */
19111912
color: var(--font-color-${env.ui.app.scheme}-scheme) ; margin: -5px 0 -6px 7px }
19121913
#${app.slug} .reply-pre ol > li { /* reduce v-padding, show number markers */
19131914
margin: -10px 0 -6px 1.6em ; list-style: decimal }
19141915
#${app.slug} .reply-pre ol > li::marker { font-size: 0.9em } /* shrink number markers */
19151916
#${app.slug} .reply-pre ul { /* override ul styles */
19161917
color: var(--font-color-${env.ui.app.scheme}-scheme) ; margin-bottom: -21px }
1917-
#${app.slug} .reply-pre ul > li { list-style: circle } /* show bullets */
1918-
#${app.slug} ${GM_getResourceText('hljsCSS') // highlight code
1918+
#${app.slug} .reply-pre ul > li { list-style: circle } /* show bullets */`
1919+
1920+
// Rendered code styles
1921+
+ `#${app.slug} ${GM_getResourceText('hljsCSS') // color code
19191922
.replace(/\/\*[^*]+\*\//g, '') // strip comments
19201923
.trim().replace(/([,}])(.)(?![^{]*\})/g, `$1#${app.slug} $2`)} /* scope selectors to app */
1921-
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border from code blocks */
1922-
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */
1923-
.katex-html { display: none } /* hide unrendered math */`
1924+
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border around code blocks */
1925+
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */`
1926+
1927+
// Rendered math styles
1928+
+ '.katex-html { display: none } /* hide unrendered math */'
19241929

19251930
// Chatbar styles
19261931
+ `#${app.slug}-chatbar {`

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.3.30.2
151+
// @version 2025.3.30.3
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@df624b0/assets/images/icons/bravegpt/icon64.png
@@ -2380,19 +2380,23 @@
23802380
code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }
23812381
code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }`
23822382

2383-
// Rendered AI reply text styles
2383+
// Rendered markdown styles
23842384
+ `#${app.slug} .reply-pre h1 { font-size: 1.25em }
23852385
#${app.slug} .reply-pre h2 { font-size: 1.1em }
23862386
#${app.slug} .reply-pre ul { margin: -10px 0 -6px } /* reduce v-spacing */
23872387
#${app.slug} .reply-pre ol { margin: -5px 0 -6px 7px }
23882388
#${app.slug} .reply-pre li { /* reduce v-spacing, show left symbols */
2389-
margin: -10px 0 -6px 12px ; list-style: circle }
2390-
#${app.slug} ${GM_getResourceText('hljsCSS') // highlight code
2389+
margin: -10px 0 -6px 12px ; list-style: circle }`
2390+
2391+
// Rendered code styles
2392+
+ `#${app.slug} ${GM_getResourceText('hljsCSS') // color code
23912393
.replace(/\/\*[^*]+\*\//g, '') // strip comments
23922394
.trim().replace(/([,}])(.)(?![^{]*\})/g, `$1#${app.slug} $2`)} /* scope selectors to app */
2393-
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border from code blocks */
2394-
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */
2395-
.katex-html { display: none } /* hide unrendered math */`
2395+
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border around code blocks */
2396+
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */`
2397+
2398+
// Rendered math styles
2399+
+ '.katex-html { display: none } /* hide unrendered math */'
23962400

23972401
// Chatbar styles
23982402
+ `#${app.slug}-chatbar {`

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.3.30.1
151+
// @version 2025.3.30.2
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@06af076/assets/images/icons/duckduckgpt/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@06af076/assets/images/icons/duckduckgpt/icon64.png
@@ -2373,7 +2373,7 @@
23732373
code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }
23742374
code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }`
23752375

2376-
// Rendered AI reply text styles
2376+
// Rendered markdown styles
23772377
+ `#${app.slug} .reply-pre h1 { font-size: 1.8em }
23782378
#${app.slug} .reply-pre h2 { font-size: 1.65em }
23792379
#${app.slug} .reply-pre h3 { font-size: 1.4em ; line-height: 1.25 }
@@ -2384,13 +2384,17 @@
23842384
#${app.slug} .reply-pre ol > li::marker { font-size: 0.9em } /* shrink number markers */
23852385
#${app.slug} .reply-pre ul { margin: -14px 0 -16px } /* reduce v-padding */
23862386
#${app.slug} .reply-pre ul > li { /* reduce v-padding, show bullets */
2387-
margin: -10px 0 0 1.2em ; list-style: circle }
2388-
#${app.slug} ${GM_getResourceText('hljsCSS') // highlight code
2387+
margin: -10px 0 0 1.2em ; list-style: circle }`
2388+
2389+
// Rendered code styles
2390+
+ `#${app.slug} ${GM_getResourceText('hljsCSS') // color code
23892391
.replace(/\/\*[^*]+\*\//g, '') // strip comments
23902392
.trim().replace(/([,}])(.)(?![^{]*\})/g, `$1#${app.slug} $2`)} /* scope selectors to app */
2391-
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border from code blocks */
2392-
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */
2393-
.katex-html { display: none } /* hide unrendered math */`
2393+
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border around code blocks */
2394+
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */`
2395+
2396+
// Rendered math styles
2397+
+ '.katex-html { display: none } /* hide unrendered math */'
23942398

23952399
// Chatbar styles
23962400
+ `#${app.slug}-chatbar {`

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.3.30.3
152+
// @version 2025.3.30.4
153153
// @license MIT
154154
// @icon https://cdn.jsdelivr.net/gh/KudoAI/googlegpt@59409b2/assets/images/icons/googlegpt/black/icon48.png
155155
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/googlegpt@59409b2/assets/images/icons/googlegpt/black/icon64.png
@@ -2543,18 +2543,24 @@
25432543
code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }
25442544
code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }`
25452545

2546-
// Rendered AI reply text styles
2546+
// Rendered markdown styles
25472547
+ `#${app.slug} .reply-pre h1 { font-size: 1.25em }
25482548
#${app.slug} .reply-pre h2 { font-size: 1.1em } /* size headings */
2549-
#${app.slug} .reply-pre ol { padding-left: 1.58em ; margin: -5px 0 -8px 7px }
2550-
#${app.slug} .reply-pre ul { margin: -10px 0 -6px ; padding-left: 1.5em } /* reduce v-spacing, indent */
2551-
#${app.slug} .reply-pre li { margin: -8px 0 ; list-style: circle } /* reduce v-spacing, show left symbols */
2552-
#${app.slug} ${GM_getResourceText('hljsCSS') // highlight code
2549+
#${app.slug} .reply-pre ol { margin: -5px 0 -8px 7px ; padding-left: 1.58em }
2550+
#${app.slug} .reply-pre ul { /* reduce v-spacing, indent */
2551+
margin: -10px 0 -6px ; padding-left: 1.5em }
2552+
#${app.slug} .reply-pre li { /* reduce v-spacing, show left symbols */
2553+
margin: -8px 0 ; list-style: circle }`
2554+
2555+
// Rendered code styles
2556+
+ `#${app.slug} ${GM_getResourceText('hljsCSS') // color code
25532557
.replace(/\/\*[^*]+\*\//g, '') // strip comments
25542558
.trim().replace(/([,}])(.)(?![^{]*\})/g, `$1#${app.slug} $2`)} /* scope selectors to app */
2555-
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border from code blocks */
2556-
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */
2557-
.katex-html { display: none } /* hide unrendered math */`
2559+
#${app.slug} pre:has(> code) { padding: 0 } /* remove padded border around code blocks */
2560+
#${app.slug} code { font-size: 0.85em } /* shrink code vs. regular text */`
2561+
2562+
// Rendered math styles
2563+
+ '.katex-html { display: none } /* hide unrendered math */'
25582564

25592565
// Chatbar styles
25602566
+ `#${app.slug}-chatbar {`

0 commit comments

Comments
 (0)