Hacker News new | ask | show | jobs
by vincentriemer 3363 days ago
From what I understand, the twitter mobile web client uses react and from a quick look at the source, they're using css modules which means the class names are generated at build time.

Considering that most ad blockers work by identifying ads through class names, it would explain why uBlock origin wouldn't work on the mobile site.

1 comments

Makes sense. Thanks.
This uBlock rule should do the trick, despite the use of CSS modules:

    mobile.twitter.com##div:has(:scope > div[role="article"] > div[data-testid="tweet"] > div > div:last-child:nth-child(3):nth-of-type(3))
https://github.com/uBlockOrigin/uAssets/issues/351