Skip to content

Commit

Permalink
Shortened CSS selectors ↞ [auto-sync from https://github.com/adamlui/…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 3, 2025
1 parent 877407d commit a5a929e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions greasemonkey/bravegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.3.10
// @version 2025.1.3.11
// @license MIT
// @icon https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287
// @icon64 https://media.bravegpt.com/images/icons/bravegpt/icon64.png?0a9e287
Expand Down Expand Up @@ -2577,7 +2577,7 @@
appDivCornerBtns() {
appDiv.querySelectorAll(`.${app.cssPrefix}-div-corner-btn`).forEach(btn => { // from right to left
if (btn.id.endsWith('chevron-btn')) btn.onclick = () => {
if (appDiv.querySelector(`#${app.cssPrefix}-font-size-slider-track`)?.classList.contains('active'))
if (appDiv.querySelector('[id$=font-size-slider-track')?.classList.contains('active'))
fontSizeSlider.toggle('off')
toggle.minimized()
}
Expand Down Expand Up @@ -2954,12 +2954,12 @@
minimized(state = '') {
const toMinimize = state == 'on' || !state && !config.minimized
settings.save('minimized', toMinimize)
const chevronBtn = appDiv.querySelector(`#${app.cssPrefix}-chevron-btn`)
const chevronBtn = appDiv.querySelector('[id$=chevron-btn]')
if (chevronBtn) { // update icon
const chevronSVG = icons[`chevron${ config.minimized ? 'Up' : 'Down' }`].create()
chevronBtn.firstChild.remove() ; chevronBtn.append(chevronSVG)
chevronBtn.onclick = () => {
if (appDiv.querySelector(`#${app.cssPrefix}-font-size-slider-track`)?.classList.contains('active'))
if (appDiv.querySelector('[id$=font-size-slider-track')?.classList.contains('active'))
fontSizeSlider.toggle('off')
toggle.minimized()
}
Expand Down

0 comments on commit a5a929e

Please sign in to comment.