Skip to content

Commit

Permalink
Added link underline style on hover to alert()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Dec 29, 2024
1 parent 88626b0 commit 48dd929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const chatgpt = {
modalMessage = document.createElement('p');

// Create/append/update modal style (if missing or outdated)
const thisUpdated = 1734685032942; // timestamp of last edit for this file's `modalStyle`
const thisUpdated = 1735475757891 // timestamp of last edit for this file's `modalStyle`
let modalStyle = document.querySelector('#chatgpt-modal-style'); // try to select existing style
if (!modalStyle || parseInt(modalStyle.getAttribute('last-updated'), 10) < thisUpdated) { // if missing or outdated
if (!modalStyle) { // outright missing, create/id/attr/append it first
Expand Down Expand Up @@ -164,6 +164,7 @@ const chatgpt = {
+ ' -webkit-user-select: none ; -moz-user-select: none ; -ms-user-select: none ; user-select: none ; }'
+ '.chatgpt-modal h2 { margin-bottom: 9px }'
+ `.chatgpt-modal a { color: ${ scheme == 'dark' ? '#00cfff' : '#1e9ebb' }}`
+ '.chatgpt-modal a:hover { text-decoration: underline }'
+ '.chatgpt-modal.animated > div { z-index: 13456 ; opacity: 0.98 ; transform: translateX(0) translateY(0) }'
+ '@keyframes alert-zoom-fade-out {'
+ '0% { opacity: 1 } 50% { opacity: 0.25 ; transform: scale(1.05) }'
Expand Down

0 comments on commit 48dd929

Please sign in to comment.