Skip to content

Commit

Permalink
Added hover-zoom to modal buttons ↞ [auto-sync from `adamlui/chatgpt-…
Browse files Browse the repository at this point in the history
…apps/autoclear-chatgpt-history`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 25, 2024
1 parent 782d1a5 commit f9214f5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.7.19.1
// @version 2024.7.24
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand Down Expand Up @@ -321,7 +321,7 @@
firstLink = chatgpt.getNewChatLink()

// Add/update TWEAKS style
const tweaksStyleUpdated = 20240702 // datestamp of last edit for this file's `tweaksStyle`
const tweaksStyleUpdated = 20240724 // 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 missing or outdated
if (!tweaksStyle) { // outright missing, create/id/attr/append it first
Expand All @@ -334,6 +334,7 @@
+ '.chatgpt-modal button {'
+ 'font-size: 0.77rem ; text-transform: uppercase ;'
+ 'border-radius: 0 !important ; padding: 5px !important ; min-width: 102px }'
+ '.chatgpt-modal button:hover { transform: scale(1.055) }'
+ '.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
Expand Down Expand Up @@ -458,7 +459,7 @@
const reviewModalID = chatgpt.alert(( msgs.alert_choosePlatform || 'Choose a platform' ) + ':', '',
[ function greasyFork() { safeWindowOpen(config.greasyForkURL + '/feedback#post-discussion') },
function futurepedia() { safeWindowOpen(
'https://www.futurepedia.io/tool/autoclear-chatgpt-history#autoclear-chatgpt-history-review') }])
'https://www.futurepedia.io/tool/autoclear-chatgpt-history#tool-reviews') }])
document.getElementById(reviewModalID).querySelector('button')
.style.display = 'none' }, // hide dismiss button
function moreChatGPTapps() { safeWindowOpen('https://github.com/adamlui/chatgpt-apps') }
Expand Down

0 comments on commit f9214f5

Please sign in to comment.