div.post-listing is the element to block :has(args) returns elements where args evaluate to true span is the element with the title text :has-text(needle) returns the element if it has the next needle, supports regex with \needle\ and remove case sensitivity with i
I have been wondering how I could do the same for X (formerly known as twitter). I'm tired of reading about it every day.
I don't know how to filter it out since it's just one letter and it'll filter out everything just containing an X in a word
It'll catch 'x' surrounded by word boundaries (stuff like spaces, dashes/hyphens, commas, etc.) but not 'x' with other letters on either side, so it won't match e.g. "sax" or "boxer", but it'll match "x.com" and "Elon's X" and stuff. It's probably not perfect though, so use with caution.
It's sadly not perfect as @Mananasi@feddit.nl also states, and since I like maths related stuff too and science it'll likely filter out too much stuff. But I appreciate your efforts. An ai algorithm or a community created blacklist is probably the only solution.
And I heartily encourage people who loathe Elon Musk to do this. Perhaps then it will be easier to discuss subjects like reusable rocketry or electric cars without so much "but the Twitter!" digression.