#show the url masked links take you to in
1 messages · Page 1 of 1 (latest)
Made a modification to this so it only applies in messages (not embeds, or reply text). Also changed the styling a bit for personal preference:
/* show URL of masked links*/
.messageContent_abea64 > .anchor_c8ddc0[title$=")"]::after {
font-size: 0.7rem;
content: " (" attr(href) ")";
filter: grayscale(1.0) brightness(1.15);
}
Embeds before/after:
i hope this is ok!
seemingly doesn't work? unless im blind
issue solved :
button[aria-label="Send a gift"] { display: none; };
it didn't enjoy the extra semicolon at the end, remove it and make it
button[aria-label="Send a gift"] { display: none; }
and it should work fine!
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
hm, it works fine for me, I know they changed a lot of classes recently though. maybe either you or I haven't had that change yet- if that's the case and it breaks for me, i'll fix it
Works for me on latest stable 279382 (5c40119)
also, personal preference change, but swapping the grayscale filter for
color: var(--text-muted);
makes it match exactly Discord's current gray colors and is theme-aware
I'll double check it (didn't work)
i've had the changes as other css i used has broken
so no clue whats going on there
idk if anything could be in my css
I'm not sure. Maybe one of your other themes is interfering?
let me test
also, here's a modified version that will show the link preview only on hover:
.messageContent_abea64:hover > .anchor_c8ddc0[title$=")"]::after {
font-size: 0.7rem;
line-height: 4px; /* needed to avoid layout shifting */
content: " (" attr(href) ")";
color: var(--text-muted);
}
.anchor_c8ddc0[title$=")"]:hover {
text-decoration-color: #00000000 !important;
}
(I also removed the hover underline, totally preference there)
ok its something in my quickcss
yet i dont get why since nothing else is interacting with those two classes..?
figured it out nvm
button[aria-label="Send a gift"] { display: none; };
are you sure? I have the exact same in my QuickCSS and have no problems with it
im removing it and readding it and watching the text next to the link disappear
maybe it is the extra semicolon after it?
thats it
wow lol glad you got it figured out
new vision
.anchor_af404b[title$=")"]::after {
font-size: 0.7rem;
content: " (" attr(href) ")";
filter: grayscale(0.4);
}
Only displays the url when the mouse is over the link.
.anchor_af404b[title$=")"]::after {
font-size: 0.8rem;
content: "";
filter: grayscale(0);
}
.anchor_af404b[title$=")"]:hover::after {
content: " (" attr(href) ")";
}
new vision
.anchor_edefb8[title$=")"]::after {
font-size: 0.7rem;
content: " (" attr(href) ")";
filter: grayscale(0.4);
}
Only displays the url when the mouse is over the link.
.anchor_edefb8[title$=")"]::after {
font-size: 0.8rem;
content: "";
filter: grayscale(0);
}
.anchor_edefb8[title$=")"]:hover::after {
content: " (" attr(href) ")";
}
Can you make this so it doesn't show in embedded messages stuff?
@shell swan did you get it to work?
/* show URL of masked links*/
.messageContent_c19a55 > .anchor_edefb8[title$=")"]::after {
font-size: 0.7rem;
content: " (" attr(href) ")";
filter: grayscale(0.4);
}```
I got it to work, but I can't get it to work for bold stuff
get what to work?