Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For me, you can target the sidebar with the rule: div[data-testid="sidebarColumn"] .r-1u4rsef

and promoted tweets (in light mode): .css-1dbjc4n.r-my5ep6.r-qklmqi.r-1adg3ll div[data-testid="placementTracking"]:not(.r-u8s1d)

Obviously very fragile, but has been working fo the last month or so



It's those auto-generated class names that kill me. :( They change all the time.

An earlier suggestion just worked for me, and I suspect it'll be durable:

  twitter.com##[aria-label="Timeline: Trending now"]
  twitter.com##[aria-label="Relevant people"]
I ended up adding more labels:

  twitter.com##[aria-label="Timeline: Trending now"]
  twitter.com##[aria-label="Relevant people"]
  twitter.com##[aria-label="Search and explore"]
  twitter.com##[aria-label="Footer"]
  twitter.com##[aria-label="Who to follow"]
  twitter.com##[aria-label="Search Twitter"]

Now my twitter looks like this:

https://share.getcloudapp.com/v1ue8EZY

Here's a pastebin of all my twitter-related rules. You can see I've tried to manually delete a _lot_ of nodes.

https://pastebin.com/Q6X8PrGu




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

Search: