How do I use uBlock to hide threads with certain urls?
How do I use uBlock to hide threads with certain urls?
The filter I use to hide threads based on keywords doesn't seem to work for urls but I'm sure this is possible aswell.
How do I use uBlock to hide threads with certain urls?
The filter I use to hide threads based on keywords doesn't seem to work for urls but I'm sure this is possible aswell.
You mean for Lemmy, or general web browsing?
If it's for Lemmy, I can't help you with ublock, but this Tampermonkey script works perfectly: https://greasyfork.org/en/scripts/471718-lemmy-post-keyword-filter
Yeah I mean Lemmy. I'd rather not install new add-ons when I'm pretty sure uBlock Origin can do this aswell.
Userscript loaders are fine, they don't do anything on their own, they just load custom user-defined JavaScript on a specified website. Just make sure not to use Tampermonkey, it's proprietary. Use Violentmonkey instead, it's completely open source on GitHub.
I am going to ask a stupid question here, in no stupid questions. I have never used an ad blocker. I've been on the internet since before the world wide web was invented. What, exactly, is the purpose of ad blockers?
It does what the name suggests: it blocks ads on web pages leaving you with a lot cleaner interface. On some pages the change is purely cosmetic but others like YouTube are completely unusable without one. Why don't just give it a shot and see by yourself. Look for the uBlock Origin extension for your browser and see how you like it. You can easily toggle it on and off and see how different sites look. It takes literally 30 seconds to install.
Lucky you! Just install one right now and experience a less annoying, faster loading web for the first time! Also install consent-o-matic while you're at it.
Do you ever visit a website and feel like you have to put on a condom or else you get something nasty?
An ad blocker, that's the condom.
load ublock origin, then reload any website that had a lot of ads on it. huge difference
I know you've asked for uBlock Origin instructions but I couldn't find the RegEx option for uBlock. However the concept should be the same: https://help.adblockplus.org/hc/en-us/articles/360062733293-How-to-write-filters#regexps
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.)
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
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?