This post has been de-listed (Author was flagged for spam)
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am trying to block suggested posts on m.facebook.com in mobile Firefox. However, take a filter like
m.facebook.com##button:has-text(story)
(a simple example for testing) and it achieves nothing. The button element with "Story" in it is still shown like normal.
Now I assume this is because this element is created dynamically by Javascript because I can use :has-text to block elements that are not created dynamically just fine. On the other hand, static css selector filters do work on dynamically loaded elements. Seems that it's just when you try to run procedural filters on dynamically created DOM elements that things stop working.
Weirdly though, this suggests that this sort of thing should be working. Is this some kind of limitation of the mobile version Ublock Origin? A feature they removed due to performance issues?
Is there some way to make it work?
Edit: The problem was insufficient specificity. This'll block suggested posts on the mobile site:
m.facebook.com###screen-root > [data-type="container"]:first-child > [data-type="vscroller"]:first-child > div:has([data-focusable] > [data-focusable][data-mcomponent="MContainer"]:first-child > div > [data-mcomponent="TextArea"] > div.native-text:last-of-type span.f5:has-text(Suggested))
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/uBlockOrigi...