6 ms·
I've posted this before, but you can achieve the same with uBlock Origin static filters alone without having to install any additional extensions. For example:
by krono 4y ago
I've posted this before, but you can achieve the same with uBlock Origin static filters alone without having to install any additional extensions. For example:
To block results from specific domains on Google or DDG:
google.*##.g:has(a[href*="thetopsites.com"])
duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])
And it's even possible to target an element's text content with a `:has-text(/regex/)` selector:
google.*##.g:has(*:has-text(/bye topic of noninterest/i))
duckduckgo.*##.results > div:has(*:has-text(/bye topic of noninterest/i))
As a bonus, here's how to get rid of Medium's obnoxious cookie notification across all domains:
*##body > div > div:has(*:has-text(/To make Medium work.*Privacy Policy.*Cookie Policy/i))
- LightHugger 4y agoHaving a button to remove the offending site right from the search results saves quite a bit of time, so while i usually prefer not to have extra extensions, i see a lot of utility here.
- account42 4y agoSame reason why I still use uMatrix in addition to uBlock even though custom rules in the latter are not any less powerful - user interface matters.
- LightHugger 4y agoExactly! i often wish the umatrix UI was just merged into ublock origin as an optional tool.
- pbronez 4y agoWasn’t it though? Just click the “I’m an advanced user” button in the uBlock Origin options. Then you get the per-domain block details in the uBlock Origin extension button just like uMatrix.
- aembleton 4y agoPer domain, but not per feature. Matrix let you specify whether to block images, cookies, script, etc for each domain from the UI.
- ajvs 4y agoHow often does one want to individually allow specific 3rd-party cookies+images? uBlock already allows control over specific 3rd party scripts.
- brigandish 4y agoOften, which is why people like me still use uMatrix.
- thrdbndndn 4y agoI still think Adblock Plus has superior UI than uBlock Origin, despite hasn't been using it for years.
- ghostly_s 4y agouBlock is a great blocker, but an absolutely garbage UI. Luckily the on/off button + 'Element Blocker' context menu entry do most of what I want without having to yet again try to decipher its cryptic icons.
- afarviral 4y agoI like ublock origin's UI. Its one of the best extension UI's Ive used. Simple and clear. It's bare bones for power users and I guess that makes it inaccessible, calling it garbage seems like overkill.
- thrdbndndn 4y agoIt's not clear though. I still have no idea what these columns mean, despite have been actively learning about them multiple times (as in, I have to re-learn every time I need to use them). They don't even have tooltips. A good UI should be self-explanatory, this is not even close.
- 1vuio0pswjnm7 4y agoDoes that include uMatrix on iOS or Android OS.
- 1vuio0pswjnm7 4y agoThis was supposed to be a trick question. I do not think uMatrix is available for a mobile OS.
- krono 4y agoNot denying that. However, unless I'd be blocking new domains on a weekly basis, I just don't think it's worth installing an additional extension for something that's so easily achieved without.
- XorNot 4y agoI mean I definitely would be: I block YouTube channels pretty aggressively now, and there's a lot of websites I'd like to get rid of.
- wakeupcall 4y agoI've started blocking results using ublock last year after it has been mentioned here, and I've got to the point where I have a script I can use to generate the relevant filters for google/bing and a few other search engines. When I spot any domain which has been squatted by SEO and useless comparison-alike websites I immediately block it. This has brought up the quality of results IMMENSELY. I'm blocking domains on a _daily_ basis.
- jacquesm 4y agoThe interesting thing is that Google could do this easily if they wanted to, but for some reason they don't. After all, if you can do it as an end user and in a low enough amount of time that it is worth it for you then surely Google can do it, they get to amortize that time across many more users.
- Jistern 4y agoEdit: Apparently someone is already doing something similar to what I described below. Please see... https://news.ycombinator.com/item?id=31694164 https://news.ycombinator.com/item?id=31694164 I suppose a simple bash script triggered with a hotkey could essentially circumvent your need to install uBlacklist. I'm imagining the steps as follows... 1. Select the text of the URL you want uBlock Origin to eliminate (such as, AWebSiteIDoNotLike.com) from the Google search results you see. 2. Press your hotkey (say, Ctrl+F5 or Alt+F9). 3. The script appends the necessary text to my-ublock-static-filters_date_goes_here.txt
- behnamoh 4y agoIs it possible to block/hide "People Also Search For" boxes in Google search results? It's annoying because each time you go back to search results, this little box re-aligns the whole list of results so you can't quickly click on the next search result.
- waynesonfire 4y agocan you do an example for blocking pinterest?
- krono 4y agoSure, unclear which type of search you meant so here's both. Regular search: google.*##.g:has(a[href*="pinterest.com"]) Image search: google.*##.isv-r:has-text(pinterest.) Edit: Simplified the image search variant a bit.
- NonNefarious 4y agoAmen. Pinterest is such a pathetic spambucket.
- guelo 4y agoIs there a way to get rid of results with listicle titles like "8 Best Toasters to Buy in 2022"?
- zamadatix 4y agoIf you could come up with a suitable regex for the title structures you want to block then you can feed that to :has-text() instead of a raw string.
- solardev 4y agoYesssss, thank you so much!! Goodbye quora, stackshare, slant, etc. Finally.
- iueotnmunto 4y agoI really like this solution, but FYI it blocks suffixes, adding gram.com blocks instagram.com, facebookgram.com, etc.
- krono 4y agoCheck out this guide on attribute selectors on MDN for some options to finetune: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_s...