#cjc (working title please give suggestions immediately in the near future)
1 messages · Page 1 of 1 (latest)
cjc (working title please give suggestions immediately in the near future)
test now!!
found 83 selector rules
matched 40, replaced 19
took 1663.6ms
test (still work in prog)
what
why
wdym
probabl
wait
what exactly does this do
fixer/cleaner for bad css?
no
what did it do?
it optimizes discord’s css rules basically by internally replacing more future-proof selectors like [class*=numberBadge] with the hashed class names .numberBadge-37OJ3S
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
the worst thing to parametrize
hehe yeah it’s not unambiguous, but that may be np, since the rest of the selector may be doing the narrowing down
cool:)
I made a better version and never posted 😎
post it you silly goose