Copy and paste the filters you want below into an extension such as uBlock Origin's My filter's
page to remove ui elements from Twitter.
# Hide the "What's happening" section from the right sidebar
x.com##*[aria-label="Timeline: Trending now"]
# Hide the "Subscribe to Premium" section from the right sidebar
x.com##.r-3pj75a.r-1mmae3n.r-uaa2di.r-eqz5dr.r-1habvwh.css-175oi2r
# Hide the "Explore" button from the left sidebar
x.com##a.r-1loqt21.r-1ny4l3l.r-13qz1uu.r-cnw61z.r-1habvwh.r-16y2uox.r-eqz5dr.r-6koalj.css-175oi2r:nth-of-type(2)
# Hide the "Premium" button from the left sidebar
x.com##a.r-1loqt21.r-1ny4l3l.r-13qz1uu.r-cnw61z.r-1habvwh.r-16y2uox.r-eqz5dr.r-6koalj.css-175oi2r:nth-of-type(9)
# Hide the "Verified Organizations" button from the left sidebar
x.com##a[href="/i/twitter_blue_sign_up"]
x.com##a[href="/i/verified-orgs-signup"]
# Hide the "Communities" button from the left sidebar
x.com##a.r-1loqt21.r-1ny4l3l.r-13qz1uu.r-cnw61z.r-1habvwh.r-16y2uox.r-eqz5dr.r-6koalj.css-175oi2r:nth-of-type(8)
# Hide the "Grok" button from the left sidebar
x.com##a.r-1loqt21.r-1ny4l3l.r-13qz1uu.r-cnw61z.r-1habvwh.r-16y2uox.r-eqz5dr.r-6koalj.css-175oi2r:nth-of-type(5)
# Hide the tweet view counter
x.com##.r-1wbh5a2.r-18u37iz.r-1471scf.r-1d09ksm.css-1dbjc4n > .r-qvutc0.r-bcqeeo.r-rjixqe.r-16dba41.r-a023e6.r-37j5jr.r-vlxjld.css-901oao > .r-qvutc0.r-bcqeeo.r-poiln3.css-16my406.css-901oao
x.com##.r-1h0z5md:has([href$="/analytics"])
x.com##.r-1yzf0co .css-1dbjc4n:has([href$="/analytics"])
x.com#?# span:has(span:has(span:has(span:has-text(/^Views?$/))))