#cjc (working title please give suggestions immediately in the near future)

1 messages · Page 1 of 1 (latest)

kind flint
#

css

#

cjc (working title please give suggestions immediately in the near future)

wraith magnet
#

found 83 selector rules
matched 40, replaced 19
took 1663.6ms

wraith magnet
#

Discord Css Streamliner – DiCS

turbid bison
kind flint
#

what

kind flint
turbid bison
#

wdym

kind flint
#

why you post in this thread

#

🚨

turbid bison
#

where do i post for this

#

in the channel?

kind flint
#

probabl

olive veldt
#

what exactly does this do

#

fixer/cleaner for bad css?

#

no

#

what did it do?

wraith magnet
#

it optimizes discord’s css rules basically by internally replacing more future-proof selectors like [class*=numberBadge] with the hashed class names .numberBadge-37OJ3S

olive veldt
#

wait

#

discord uses these weird selectors?

#

on its own css?

#

on default, no themes

wraith magnet
#

dc uses hashed classes like .numberBadge-37OJ3S. Many sites do. Many theme devs parametrize them: [class*=numberBadge], so that the theme hopefully doesn’t break when dc changes something and all these classes get new hashes, which happens like once every few years ig

olive veldt
#

the worst thing to parametrize

wraith magnet
#

hehe yeah it’s not unambiguous, but that may be np, since the rest of the selector may be doing the narrowing down

olive veldt
#

made it log the source element

wraith magnet
#

cool:)

kind flint
#

I made a better version and never posted 😎

wraith magnet
#

post it you silly goose