Skip to content

Commit

Permalink
Removed dashed border + custom glow colors from chatgpt.alert() but…
Browse files Browse the repository at this point in the history
…ton hovers ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Nov 26, 2024
1 parent fcfdf32 commit 7a1ff94
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 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.11.24
// @version 2024.11.25
// @license MIT
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
Expand Down Expand Up @@ -714,7 +714,7 @@
const ui = { firstLink: chatgpt.getNewChatLink() }

// Add/update TWEAKS style
const tweaksStyleUpdated = 20241002 // datestamp of last edit for this file's `tweaksStyle`
const tweaksStyleUpdated = 20241125 // datestamp of last edit for this file's tweaksStyle
let tweaksStyle = document.getElementById('tweaks-style') // try to select existing style
if (!tweaksStyle || parseInt(tweaksStyle.getAttribute('last-updated'), 10) < tweaksStyleUpdated) {
if (!tweaksStyle) { // outright missing, create/id/attr/append it first
Expand All @@ -726,17 +726,13 @@
( chatgpt.isDarkMode() ? '.chatgpt-modal > div { border: 1px solid white }' : '' )
+ '.chatgpt-modal button {'
+ 'font-size: 0.77rem ; text-transform: uppercase ;' // shrink/uppercase labels
+ `border: 2px dashed ${ chatgpt.isDarkMode() ? 'white' : 'black' } !important ;` // dash borders
+ 'border-radius: 0 !important ;' // square borders
+ 'transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out ;' // smoothen hover fx
+ 'cursor: pointer !important ;' // add finger cursor
+ 'padding: 5px !important ; min-width: 102px }' // resize
+ '.chatgpt-modal button:hover {' // add zoom, re-scheme
+ 'transform: scale(1.055) ;'
+ ( chatgpt.isDarkMode() ? ( 'background-color: #2cff00 !important ; color: black !important ;'
+ 'box-shadow: 2px 1px 54px #38ff00 !important ;' )
: ( 'background-color: #c7ff006b !important ;'
+ 'box-shadow: 2px 1px 30px #97ff006b !important' )) + '}'
+ 'transform: scale(1.055) ; color: black !important ;'
+ `background-color: #${ chatgpt.isDarkMode() ? '00cfff' : '9cdaff' } !important }`
+ '.modal-buttons { margin-left: -13px !important }'
+ '* { scrollbar-width: thin }' // make FF scrollbar skinny to not crop toggle
)
Expand Down

0 comments on commit 7a1ff94

Please sign in to comment.