How to block Reddit posts linking to a specific URL

I was getting really annoyed by posts in /r/politics that pointed to The Daily Beast, whose articles are almost always click-bait with little substance to them. Since I already use uBlock Origin in my browser, I sought after a way to fix this.
Adding this snippet to my custom filters in uBlock removes any post that links to a given URL in a given subreddit, on either the “old” Reddit or “new” Reddit layout:

www.reddit.com/r/politics##a[href*="thedailybeast.com"]:upward(.thing) www.reddit.com/r/politics##a[href*="thedailybeast.com"]:upward(shreddit-post)

If you want to block posts anywhere on Reddit linking to said URL, just do this:

www.reddit.com##a[href*="thedailybeast.com"]:upward(.thing)

This obviously only works on desktop Reddit, not in the app.