Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
Procedural filters and dynamically loaded elements
Post Flair (click to view more posts with a particular flair)
Post Body

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))

Author
Account Strength
0%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
83,357
Link Karma
62,281
Comment Karma
19,811
Profile updated: 7 months ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago