Skip to content

Commit

Permalink
Changed light scheme modal BG to use gray rising particles ↞ [auto-sy…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 30, 2025
1 parent fd18bb3 commit 3262ada
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion chromium/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
// Run MAIN routine

// Add RISING PARTICLES styles
['black', 'white'].forEach(color => document.head.append(
['gray', 'white'].forEach(color => document.head.append(
dom.create.elem('link', { rel: 'stylesheet',
href: `https://assets.aiwebextensions.com/styles/rising-particles/dist/${
color}.min.css?v=727feff`
Expand Down
4 changes: 2 additions & 2 deletions chromium/extension/lib/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ window.dom = {
}
},

addRisingParticles(targetNode) { // requires https://assets.aiwebextensions.com/styles/rising-particles/dist/<black|white>.min.css
addRisingParticles(targetNode) { // requires https://assets.aiwebextensions.com/styles/rising-particles/dist/<gray|white>.min.css
if (targetNode.querySelector('[id*=particles]')) return
const particlesDivsContainer = document.createElement('div')
particlesDivsContainer.style.cssText = 'position: absolute ; top: 0 ; left: 0 ;' // hug targetNode's top-left corner
+ 'height: 100% ; width: 100% ; border-radius: 15px ; overflow: clip ;' // bound innards exactly by targetNode
+ 'z-index: -1'; // allow interactive elems to be clicked
['sm', 'med', 'lg'].forEach(particleSize => {
const particlesDiv = document.createElement('div')
particlesDiv.id = `${ this.imports.env.ui.scheme == 'dark' ? 'white' : 'black' }-particles-${particleSize}`
particlesDiv.id = `${ this.imports.env.ui.scheme == 'dark' ? 'white' : 'gray' }-particles-${particleSize}`
particlesDivsContainer.append(particlesDiv)
})
targetNode.prepend(particlesDivsContainer)
Expand Down
2 changes: 1 addition & 1 deletion firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
// Run MAIN routine

// Add RISING PARTICLES styles
['black', 'white'].forEach(color => document.head.append(
['gray', 'white'].forEach(color => document.head.append(
dom.create.elem('link', { rel: 'stylesheet',
href: `https://assets.aiwebextensions.com/styles/rising-particles/dist/${
color}.min.css?v=727feff`
Expand Down
4 changes: 2 additions & 2 deletions firefox/extension/lib/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ window.dom = {
}
},

addRisingParticles(targetNode) { // requires https://assets.aiwebextensions.com/styles/rising-particles/dist/<black|white>.min.css
addRisingParticles(targetNode) { // requires https://assets.aiwebextensions.com/styles/rising-particles/dist/<gray|white>.min.css
if (targetNode.querySelector('[id*=particles]')) return
const particlesDivsContainer = document.createElement('div')
particlesDivsContainer.style.cssText = 'position: absolute ; top: 0 ; left: 0 ;' // hug targetNode's top-left corner
+ 'height: 100% ; width: 100% ; border-radius: 15px ; overflow: clip ;' // bound innards exactly by targetNode
+ 'z-index: -1'; // allow interactive elems to be clicked
['sm', 'med', 'lg'].forEach(particleSize => {
const particlesDiv = document.createElement('div')
particlesDiv.id = `${ this.imports.env.ui.scheme == 'dark' ? 'white' : 'black' }-particles-${particleSize}`
particlesDiv.id = `${ this.imports.env.ui.scheme == 'dark' ? 'white' : 'gray' }-particles-${particleSize}`
particlesDivsContainer.append(particlesDiv)
})
targetNode.prepend(particlesDivsContainer)
Expand Down
6 changes: 3 additions & 3 deletions greasemonkey/chatgpt-auto-continue.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
// @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2025.1.29.3
// @version 2025.1.29.4
// @license MIT
// @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon48.png?v=8b39fb4
// @icon64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
Expand All @@ -231,7 +231,7 @@
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@d27ed79/chromium/extension/components/modals.js#sha256-otkuF1oCI4Vhw7gKTnmAyg/FxAGIk8FXm1MOk8S8Ahc=
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@d27ed79/chromium/extension/lib/dom.js#sha256-xEUxmi1rb1RalCMFwWjDMSNihO87tldqwAWEOumd0K0=
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@7623f9e/chromium/extension/lib/settings.js#sha256-+1SzWklvhvhJPIE8vxmP6hgWBlxFS6st8SeSjC/Cvgg=
// @resource brpCSS https://assets.aiwebextensions.com/styles/rising-particles/dist/black.min.css?v=727feff#sha256-7ycEGqwB5zKKoaW3olhaFP8yj0KEXe+Ks2kS/4iRGZM=
// @resource grpCSS https://assets.aiwebextensions.com/styles/rising-particles/dist/gray.min.css?v=727feff#sha256-7ycEGqwB5zKKoaW3olhaFP8yj0KEXe+Ks2kS/4iRGZM=
// @resource wrpCSS https://assets.aiwebextensions.com/styles/rising-particles/dist/white.min.css?v=727feff#sha256-6xBXczm7yM1MZ/v0o1KVFfJGehHk47KJjq8oTktH4KE=
// @grant GM_setValue
// @grant GM_getValue
Expand Down Expand Up @@ -491,7 +491,7 @@
menu.register() ; if (env.extensionInstalled) return

// Add RISING PARTICLES styles
['brp', 'wrp'].forEach(cssType => document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
['grp', 'wrp'].forEach(cssType => document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))

// Observe DOM for need to continue generating response
checkContinueBtn()
Expand Down

0 comments on commit 3262ada

Please sign in to comment.