Hacker News new | past | comments | ask | show | jobs | submit login

Anecdotally, even with websites like Twitter that obfuscate their CSS class names to prevent the use of selective adblock, they still leave the readable ARIA strings in predictable places, allowing uBlock Origin users to create blacklist rules matching them. I'm wondering if those two features are at odds.



Do we know that Twitter is intentionally doing that to defeat adblockers? It’s a common speculation I see about them (and maybe it’s a convenient side-effect), but these sorts of mangled class names are also a common feature of popular CSS-in-JS libraries. (I work on an internal app that does the same thing, and it’s incredibly annoying but definitely not explicitly intended to be hostile.)


Twitter uses react-native-web which generates random class names, they’re not doing it to evade ad blockers.


You can do ad block with text in tag types I've found out. I use it to block the email nag from reddit.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: