How to block Reddit posts linking to a specific URL

speckx2 pts0 comments

How to block Reddit posts linking to a specific URL – Will Chatham's Blog

Skip to content

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)<br>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)<br>This obviously only works on desktop Reddit, not in the app.

Leave a Reply Cancel reply<br>Your email address will not be published. Required fields are marked *<br>Comment *<br>Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Search

Search for:

Search

I am a cyber security director, musician, husband, father, and struggling tennis player from Asheville, NC.

Recent Posts

Archives

Follow Me

reddit posts block linking politics href

Related Articles