Skip to content

Commit 32e1b38

Browse files
committed
Replaced .appendChild()s w/ .append()
1 parent 9b30984 commit 32e1b38

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.8.25
6+
// @version 2025.9.5
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -1223,7 +1223,8 @@
12231223
if (event.button != 0) return // prevent non-left-click drag
12241224
event.preventDefault() // prevent text selection
12251225
isDragging = true ; startX = event.clientX ; startLeft = sliderThumb.offsetLeft
1226-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1226+
document.body.append
1227+
(fontSizeSlider.cursorOverlay)
12271228
})
12281229
document.addEventListener(inputEvents.move, event => {
12291230
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
@@ -1245,7 +1246,8 @@
12451246
const clientX = event.clientX || event.touches?.[0]?.clientX
12461247
moveThumb(clientX - slider.getBoundingClientRect().left - sliderThumb.offsetWidth / 2)
12471248
isDragging = true ; startX = clientX ; startLeft = sliderThumb.offsetLeft // manually init dragging
1248-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1249+
document.body.append
1250+
(fontSizeSlider.cursorOverlay)
12491251
})
12501252

12511253
function moveThumb(newLeft) {

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 5 additions & 3 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.8.25
151+
// @version 2025.9.5
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -1877,7 +1877,8 @@
18771877
if (event.button != 0) return // prevent non-left-click drag
18781878
event.preventDefault() // prevent text selection
18791879
isDragging = true ; startX = event.clientX ; startLeft = sliderThumb.offsetLeft
1880-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1880+
document.body.append
1881+
(fontSizeSlider.cursorOverlay)
18811882
})
18821883
document.addEventListener(inputEvents.move, event => {
18831884
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
@@ -1899,7 +1900,8 @@
18991900
const clientX = event.clientX || event.touches?.[0]?.clientX
19001901
moveThumb(clientX - slider.getBoundingClientRect().left - sliderThumb.offsetWidth / 2)
19011902
isDragging = true ; startX = clientX ; startLeft = sliderThumb.offsetLeft // manually init dragging
1902-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1903+
document.body.append
1904+
(fontSizeSlider.cursorOverlay)
19031905
})
19041906

19051907
function moveThumb(newLeft) {

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 5 additions & 3 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.8.25
151+
// @version 2025.9.5
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -1879,7 +1879,8 @@
18791879
if (event.button != 0) return // prevent non-left-click drag
18801880
event.preventDefault() // prevent text selection
18811881
isDragging = true ; startX = event.clientX ; startLeft = sliderThumb.offsetLeft
1882-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1882+
document.body.append
1883+
(fontSizeSlider.cursorOverlay)
18831884
})
18841885
document.addEventListener(inputEvents.move, event => {
18851886
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
@@ -1901,7 +1902,8 @@
19011902
const clientX = event.clientX || event.touches?.[0]?.clientX
19021903
moveThumb(clientX - slider.getBoundingClientRect().left - sliderThumb.offsetWidth / 2)
19031904
isDragging = true ; startX = clientX ; startLeft = sliderThumb.offsetLeft // manually init dragging
1904-
document.body.appendChild(fontSizeSlider.cursorOverlay)
1905+
document.body.append
1906+
(fontSizeSlider.cursorOverlay)
19051907
})
19061908

19071909
function moveThumb(newLeft) {

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 5 additions & 3 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.8.25.1
152+
// @version 2025.9.5
153153
// @license MIT
154154
// @icon data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E
155155
// @icon64 data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E
@@ -2101,7 +2101,8 @@
21012101
if (event.button != 0) return // prevent non-left-click drag
21022102
event.preventDefault() // prevent text selection
21032103
isDragging = true ; startX = event.clientX ; startLeft = sliderThumb.offsetLeft
2104-
document.body.appendChild(fontSizeSlider.cursorOverlay)
2104+
document.body.append
2105+
(fontSizeSlider.cursorOverlay)
21052106
})
21062107
document.addEventListener(inputEvents.move, event => {
21072108
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
@@ -2123,7 +2124,8 @@
21232124
const clientX = event.clientX || event.touches?.[0]?.clientX
21242125
moveThumb(clientX - slider.getBoundingClientRect().left - sliderThumb.offsetWidth / 2)
21252126
isDragging = true ; startX = clientX ; startLeft = sliderThumb.offsetLeft // manually init dragging
2126-
document.body.appendChild(fontSizeSlider.cursorOverlay)
2127+
document.body.append
2128+
(fontSizeSlider.cursorOverlay)
21272129
})
21282130

21292131
function moveThumb(newLeft) {

0 commit comments

Comments
 (0)