#Unobtrusive disconnection popup

1 messages ยท Page 1 of 1 (latest)

dull stag
#

thread

dull stag
#

I changed the color to catppuccin red because cat

tardy anvil
#

wont the IDs in the classnames change on some updates?

dull stag
#

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

toxic finch
#

oh i remember this one from the old bd snippet days

pale needle
#

Indeed, goated link for repair, thank for the snippet i like it, won't feel as lonely when internet cuts lul

dull stag
dark pasture
#

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

dull stag
#

il update the snippet thank you

brittle harness
#

@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?

junior kelp
dull stag
#

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 ๐Ÿ”ฅ

brittle harness
#

thanks for the context !

dull stag
#

no problem, enjoy

tardy anvil
#

it shows only the tips

dull stag
tardy anvil
#

something about no connection, ig. but i dont mind. just wanted to let you know