Comment on How do I use uBlock to hide threads with certain urls?
Resistentialism@sopuli.xyz 7 months ago
Is UBlacklist what you’re looking for? I don’t fully get the question, but I know that blocks urls from search engines (it supports Google, duckduckgo and others, but you’d need to double check.)
Thorny_Insight@lemm.ee 7 months ago
I have custom rule for uBlock Origin that hides threads from my feed containing the specified keyword. In this case the word is “Elon”
lemm.ee##div.post-listing:has(span:has-text(“/elon/i”))
I’m looking for a similar string of code(?) that will block threads with a link to specific web pages, for example motherjones.com
Resistentialism@sopuli.xyz 7 months ago
Oh, gotcha, my bad, I misread it.
I don’t have any coding knowledge, so I’m a bit useless here sorry.
Wouldn’t it be possible to just add the site like?
Lemme.ee##div.post-listing:has(span:has-text(“/motherjones.com/i”))
I’m assuming the code ignores hyperlinks and just looks at the code to find a certain string?
Thorny_Insight@lemm.ee 7 months ago
I tried but to no avail. Funnily enough though, the word-filter I use triggers for usernames too.
Resistentialism@sopuli.xyz 7 months ago
Well, hey, at least you know how to do that now!