Skip to content

Commit

Permalink
Updated sidebar btn click-zoom disable to working method ↞ [auto-sync…
Browse files Browse the repository at this point in the history
… from `adamlui/chatgpt-apps/chatgpt-auto-talk`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Oct 1, 2024
1 parent 425f46f commit 1fe7668
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.9.30.6
// @version 2024.9.30.7
// @license MIT
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon48.png
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon64.png
Expand Down Expand Up @@ -680,8 +680,6 @@
: 'background-color: #c7ff006b !important ; box-shadow: 2px 1px 30px #97ff006b !important' ) + '}'
+ '.modal-buttons { margin-left: -13px !important }'
+ '* { scrollbar-width: thin }' // make FF scrollbar skinny to not crop toggle
+ '.sticky div:active, .sticky div:focus {' // post-GPT-4o UI sidebar button container
+ 'transform: none !important }' // disable distracting click zoom effect
)
}

Expand Down Expand Up @@ -738,4 +736,13 @@
}})}})
autoPlayObserver.observe(document.querySelector('main'), { childList: true, subtree: true })

// Disable distracting SIDEBAR CLICK-ZOOM effect
if (!document.querySelector('[sidebar-click-zoom-observed]')) {
new MutationObserver(mutations => mutations.forEach(({ target }) => {
if (!target.id.endsWith('-knob-span') && target.style.transform != 'none')
target.style.transform = 'none'
})).observe(document.body, { attributes: true, subtree: true, attributeFilter: [ 'style' ]})
document.documentElement.setAttribute('sidebar-click-zoom-observed', true)
}

})()

0 comments on commit 1fe7668

Please sign in to comment.