#Unobtrusive disconnection popup
1 messages ยท Page 1 of 1 (latest)
I changed the color to catppuccin red because cat
wont the IDs in the classnames change on some updates?
yeah but honestly that's easier to update than dynamic selectors
dynamic selectors are both bad for performance and a huge pain in the ass
they're also needlessly complex due to the limitations on them, a lot of the time you want to be specific by including the separator in the dynamic selector so you won't target something like ActualClassNameButWrapper when looking for ActualClassName
but that also comes with the downside of discord being able to ruin it by changing the format to have the id in front of the class name like how they did like 3 weeks ago
everyone who updated their snippets for the update had to roll their changes back
you would also often want to replace *= with ^= if the class name you're targeting is at the start to improve performance a little
issue with that is if discord adds another class in front of it or changes their format again (like how they did like 3 weeks ago) that falls apart as well
if you wanna do a similar thing with the new system you'd have to target the last selector with $=
which is often less specific than the first
but yeah
tldr: little benefit, just use this:
https://syndishanx.github.io/Website/Update_Classes.html
oh i remember this one from the old bd snippet days
Indeed, goated link for repair, thank for the snippet i like it, won't feel as lonely when internet cuts 
I have no knowledge of any of this! also hey rabbit disabler
Not entirely sure if this is just a me issue but, the little popup seems to be stickied to the top of my client, even when just using the snippet alone, unlike the thread image
Adding a !important flag to the top property fixes it for me oddly enough, weird
makes sense why that would fix it, doesn't make sense why it's required
il update the snippet thank you
@dull stag
I don't understand the issue your code is trying to fix
what are these disconection popups you're talking about?
and why are they problematic or obtrusive?
when your internet connection cuts off, your whole screen will be filled with this message and you can't do anything until the connection is back. this snippet makes it so that the disconnection message is only a small box in the upper right corner of the screen and you can still scroll and see messages that were cached before the connection cuf off
cut out your internet while having discord open
wait like 20 seconds
and itl be in front of you obstructing your message viewing
it's not a fix to any particular issue
it's just a tweak to allow for better user experience while on an unstable internet connection
also CSS isn't code ๐ฅ
it shows only the tips
hmm what is it supposed to show?
something about no connection, ig. but i dont mind. just wanted to let you know
