News for hackers. Stuff that matters.
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @09:22AM (#31693787)
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))
Re:uBlacklist – Block specific sites from appearing in Googl... by LightHugger on Friday June 10, 2022 @09:24AM (#31693823)
Having 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by account42 on Friday June 10, 2022 @09:30AM (#31693897)
Same 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by thrdbndndn on Friday June 10, 2022 @04:42PM (#31699146)
I still think Adblock Plus has superior UI than uBlock Origin, despite hasn't been using it for years.
Re:uBlacklist – Block specific sites from appearing in Googl... by ghostly_s on Friday June 10, 2022 @06:44PM (#31700196)
uBlock 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by afarviral on Friday June 10, 2022 @09:12PM (#31701068)
I 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by thrdbndndn on Friday June 10, 2022 @09:21PM (#31701109)
It'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.

Re:uBlacklist – Block specific sites from appearing in Googl... by LightHugger on Friday June 10, 2022 @09:49AM (#31694169)
Exactly! i often wish the umatrix UI was just merged into ublock origin as an optional tool.
Re:uBlacklist – Block specific sites from appearing in Googl... by pbronez on Friday June 10, 2022 @10:37AM (#31694824)
Wasn’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.
Re:uBlacklist – Block specific sites from appearing in Googl... by aembleton on Friday June 10, 2022 @11:22AM (#31695428)
Per domain, but not per feature. Matrix let you specify whether to block images, cookies, script, etc for each domain from the UI.
Re:uBlacklist – Block specific sites from appearing in Googl... by ajvs on Friday June 10, 2022 @01:32PM (#31697096)
How often does one want to individually allow specific 3rd-party cookies+images? uBlock already allows control over specific 3rd party scripts.
Re:uBlacklist – Block specific sites from appearing in Googl... by brigandish on Friday June 10, 2022 @11:35PM (#31701698)
Often, which is why people like me still use uMatrix.
Re:uBlacklist – Block specific sites from appearing in Googl... by 1vuio0pswjnm7 on Friday June 10, 2022 @09:26PM (#31701139)
Does that include uMatrix on iOS or Android OS.
Re:uBlacklist – Block specific sites from appearing in Googl... by 1vuio0pswjnm7 on Tuesday June 14, 2022 @01:15AM (#31734994)
This was supposed to be a trick question. I do not think uMatrix is available for a mobile OS.
Re:uBlacklist – Block specific sites from appearing in Googl... by Jistern on Friday June 10, 2022 @07:11PM (#31700368)
Edit: Apparently someone is already doing something similar to what I described below. Please see... 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

Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @09:34AM (#31693956)
Not 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by wakeupcall on Friday June 10, 2022 @09:48AM (#31694164)
I'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.

Re:uBlacklist – Block specific sites from appearing in Googl... by jacquesm on Friday June 10, 2022 @10:35AM (#31694788)
The 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by guelo on Friday June 10, 2022 @03:40PM (#31698542)
Google in general has an aversion to giving users control. Their product vision is an omniscient AI that gives you enough of what you want that you'll tolerate the ads. The removal of user control is aided in many cases by justifications around security and UX design simplicity ("users don't know what they want"). But really it's about keeping control on the AI side.
Re:uBlacklist – Block specific sites from appearing in Googl... by Jistern on Friday June 10, 2022 @07:41PM (#31700570)
I concur.

I suppose eventually Google's search results in many countries/jurisdictions (such as the EU, USA, etc) will be regulated like a public utility.

As a result, I expect Google will be forced to allow users to ban search results from particular URLs with a single click.

Re:uBlacklist – Block specific sites from appearing in Googl... by miked85 on Friday June 10, 2022 @11:23AM (#31695436)
They actually used to offer this feature years ago but removed it.
Re:uBlacklist – Block specific sites from appearing in Googl... by Jistern on Friday June 10, 2022 @07:38PM (#31700548)
Yes. I remember that feature. I was displeased when I noticed that it had been removed.
Re:uBlacklist – Block specific sites from appearing in Googl... by raffraffraff on Friday June 10, 2022 @05:42PM (#31699669)
Hey, could you post a gist? I'm currently using uBlacklist to block exactly that type of shitty site you mention.
Re:uBlacklist – Block specific sites from appearing in Googl... by Jistern on Friday June 10, 2022 @07:27PM (#31700471)
Would you mind sharing your script? I'd be glad to use it.
Re:uBlacklist – Block specific sites from appearing in Googl... by __ryan__ on Friday June 10, 2022 @09:56AM (#31694277)
…have you used Google lately? I’m blocking junk results daily.
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @10:08AM (#31694442)
Been using this method to build on my blocklist for a few years, it's quite long by now ;)
Re:uBlacklist – Block specific sites from appearing in Googl... by jacquesm on Friday June 10, 2022 @10:35AM (#31694790)
Any chance of sharing it?
Re:uBlacklist – Block specific sites from appearing in Googl... by pbronez on Friday June 10, 2022 @10:39AM (#31694852)
That’s the ticket. “Many intelligent people go out of their way to silence this site” is EXACTLY the kind of signal I want to pump into my information retrieval system.

Should be possible to crowd source this and publish the result as a list that’s consumed by uBlock origin…

Re:uBlacklist – Block specific sites from appearing in Googl... by jacquesm on Friday June 10, 2022 @10:41AM (#31694871)
That would be awesome.

I've found one other immediate and huge improvement to my mood was to remove all graphical elements from the news sites that I visit.

Re:uBlacklist – Block specific sites from appearing in Googl... by DreamFlasher on Friday June 10, 2022 @06:14PM (#31699973)
Yes, please! But I guess we'd need some form of web of trust?
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @01:41PM (#31697190)
There's too much personal stuff on there for me to be comfortable sharing it as is, and I'm afraid I don't have time to distil the list this weekend either.

I'd be happy to create you some ready-made filters for any specific sites or other types of results that you'd like to get rid of though, just let me know!

Re:uBlacklist – Block specific sites from appearing in Googl... by jacquesm on Friday June 10, 2022 @02:23PM (#31697653)
No, no problem, if it is just for me, I figured that if this can be crowdsourced effectively it would really clean up the search results and that is worth it if enough people start using it.

It might even be enough to stick it on github or gitlab and start accepting pull requests against a starter list.

Re:uBlacklist – Block specific sites from appearing in Googl... by XorNot on Friday June 10, 2022 @09:45AM (#31694109)
I 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by behnamoh on Friday June 10, 2022 @09:55AM (#31694256)
Is 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @10:04AM (#31694397)
This should do:

    google.*###search > div > div > div:has(span:has-text(/People also ask/))
Re:uBlacklist – Block specific sites from appearing in Googl... by behnamoh on Friday June 10, 2022 @10:10AM (#31694477)
This works!
Re:uBlacklist – Block specific sites from appearing in Googl... by mattwad on Friday June 10, 2022 @12:08PM (#31696066)
This is the worst. I always click it on accident. Glad I'm not the only one going crazy... if it can't load at first, then don't load it at all
Re:uBlacklist – Block specific sites from appearing in Googl... by solardev on Friday June 10, 2022 @10:10PM (#31701342)
Yesssss, thank you so much!! Goodbye quora, stackshare, slant, etc. Finally.
Re:uBlacklist – Block specific sites from appearing in Googl... by waynesonfire on Friday June 10, 2022 @11:39AM (#31695678)
can you do an example for blocking pinterest?
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Friday June 10, 2022 @12:10PM (#31696102)
Sure, 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.
Re:uBlacklist – Block specific sites from appearing in Googl... by NonNefarious on Friday June 10, 2022 @02:17PM (#31697595)
Amen. Pinterest is such a pathetic spambucket.
Re:uBlacklist – Block specific sites from appearing in Googl... by iueotnmunto on Saturday June 11, 2022 @05:11AM (#31703079)
I really like this solution, but FYI it blocks suffixes, adding gram.com blocks instagram.com, facebookgram.com, etc.
Re:uBlacklist – Block specific sites from appearing in Googl... by krono on Saturday June 11, 2022 @09:04AM (#31704151)
Check out this guide on attribute selectors on MDN for some options to finetune: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_s...
Re:uBlacklist – Block specific sites from appearing in Googl... by guelo on Friday June 10, 2022 @04:06PM (#31698822)
Is there a way to get rid of results with listicle titles like "8 Best Toasters to Buy in 2022"?
Re:uBlacklist – Block specific sites from appearing in Googl... by zamadatix on Friday June 10, 2022 @08:58PM (#31700980)
If 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.