Can I block Google search results for specific websites?

Joachim

New Member
I would like to remove all search results on Google search (also image search) for Pinterest. It's easy on Windows with an extension for specific browser, but I found no way on Android. Also I don't use Chrome on Android.
Could adguard do the job?

Thank you for your time :)
Joachim
 

Joachim

New Member
@Chinaski:
Sorry, I can't see how Stealth mode helps me with my question. How can I specify there to block search results from Google (especially Pinterest)?

It's turned on already, by the way.
 

Blaz

Moderator & Translator
Staff member
Moderator
Please try these rules:

Code:
google.com#?#div[data-hveid]:has(> div > div > a[href*="pinterest.com"])
google.com#?#div[jscontroller]:has(> a[href*="pinterest.com"])
 

Joachim

New Member
Please try these rules:

Code:
google.com#?#div[data-hveid]:has(> div > div > a[href*="pinterest.com"])
google.com#?#div[jscontroller]:has(> a[href*="pinterest.com"])
Thank you so much, it's working :)

It would be great if there could be some official example of how to block domains from search results. It could even be a selling point for adguard, so many people search for ways to block search results over different browsers and platforms.

Thank you, you really made my day :)
 

Blaz

Moderator & Translator
Staff member
Moderator
Working fine here:
Code:
google.com#?#div[data-hveid]:has(> div > div > a[href*="pinterest.ca"])
google.com#?#div[jscontroller]:has(> a[href*="pinterest.ca"])
 

Joachim

New Member
Sadly this rules don't work anymorw, pinterest.com results all over google searches. Would someone please be so kind to help again?
 

d0x

Active Member
Thank you so much, it's working :)

It would be great if there could be some official example of how to block domains from search results. It could even be a selling point for adguard, so many people search for ways to block search results over different browsers and platforms.

Thank you, you really made my day :)
I've never heard of someone wanting to filter search results... Just don't click the ones that go to sites you don't like.

Honestly that should be a setting in google itself, it would be handy.

Lastly I tested the rule and it worked for me so I wouldn't know how to fix it..
 

d0x

Active Member
Perhaps in some places but I've never personally met someone who wants such a thing. I'm not say it's a bad thing to want it just seems like an odd thing to me.

Based on google trends there aren't many searches for how to do it.

Like when I search about something for a game I'm playing it never occurred to me to try and find a way to remove results from sites I abhor like polygon or kotaku. I just always skip over the results from their sites. Seems easier that way.
 

Joachim

New Member
It's just Pinterest is really spamming search results. Especially when you search with the picture view, you don't see it's Pinterest, click on it and then get annoyed with either registration pushing or complete different pictures.
 

d0x

Active Member
Now that I can understand but when I search through images I get a URL at the bottom that says where the image is from...I think lol. Might just be bing (which I've recently switched to) that does that.

I hope you can get it working again because it sounds like a real pain.
 

skzm

New Member
Google seems to be changing their search result syntax from time to time so nothing seems to stick around for long.

For now try this:

Code:
google.*#?#cite:contains(/pinterest./):nth-ancestor(5)
google.*#?#div.fxgdke:contains(/pinterest./):nth-ancestor(2)
(I arrived at this page because I was playing around and trying to block results from quora.com and pinterest.* myself too :D)
 
Last edited:

Joachim

New Member
[QUOTE="skzm, post: 208900, member: 44053
Code:
google.*#?#cite:contains(/pinterest./):nth-ancestor(5)
google.*#?#div.fxgdke:contains(/pinterest./):nth-ancestor(2)
[/QUOTE]
Sadly it does not work. Try "Mode Ideen" in google.at and the first results are all from pinterest.de
 

skzm

New Member
Sadly it does not work. Try "Mode Ideen" in google.at and the first results are all from pinterest.de
Works fine for me:

Text search:
msedge_zKFyWBlcj5.png

Image search:
msedge_4K80rDM3zz.jpg

Oh wait, completely missed that I'm in the Android section. I'll try see what I can do about mobile Google search.

Code:
google.*#?#div.HkHSef:contains(/pinterest./):nth-ancestor(3)
google.*#?#span.Zu0yb:contains(/pinterest./):nth-ancestor(5)
google.*#?#div.nJGrxf:contains(/pinterest./):nth-ancestor(2)
google.*#?#div.BNeawe:contains(/pinterest./):nth-ancestor(4)
Scratch that, noticed that mobile emulator on desktop browsers don't show the correct layout. This works better:

Code:
google.*#?#a[href*=".pinterest."] > div:contains(/.pinterest./):upward(3)
google.*#?#div[data-ru*=".pinterest."]
 
Last edited:

d0x

Active Member
[QUOTE="skzm, post: 208900, member: 44053
Code:
google.*#?#cite:contains(/pinterest./):nth-ancestor(5)
google.*#?#div.fxgdke:contains(/pinterest./):nth-ancestor(2)
Sadly it does not work. Try "Mode Ideen" in google.at and the first results are all from pinterest.de
[/QUOTE]

Sorry I should have been more specific, I was in a rush. I wasn't using the rule posted to the forum. I made a rule myself to test while I was eating lunch. Its essentially the rule you posted but for polygon.com
*Update*
Well it was working, now it's not. I tried yours just replacing the necessary parts but I still saw results
 
Last edited:

skzm

New Member
Sorry I should have been more specific, I was in a rush. I wasn't using the rule posted to the forum. I made a rule myself to test while I was eating lunch. Its essentially the rule you posted but for polygon.com
*Update*
Well it was working, now it's not. I tried yours just replacing the necessary parts but I still saw results
Interesting, what browser are you using? I tried this:
Code:
google.*#?#a[href*=".pinterest."] > div:contains(/.pinterest./):upward(3)
google.*#?#div[data-ru*=".pinterest."]
and they work on the browser of my choice (Firefox Nightly), but after reading your post I went to install Chrome and tried it, indeed it doesn't work there. Looked at the layout using remote debugging and it seems like Google displays vastly different layouts depending on useragent and maybe some other stuff like browser's rendering engine so there won't be a single rule that works across all browsers.

Assuming you're using Chrome, these should work (at least on my device, POCO F1, and using Pinterest as an example):

For regular search (2nd rule is for the gigantic pinned result at the top):
Code:
google.*#?#a[href*=".pinterest."] > div > span:contains(/.pinterest./):upward(7)

google.*#?#.g.card-section > div > div > div > div > cite:contains(/.pinterest./):upward(8)
For image search:
Code:
google.*#?#a[href*=".pinterest."][rel="noopener"]:upward(1)

Unfortunately, I have no idea how to deal with the image preview on regular search that @Joachim was talking about (presumably this:
this.jpg
) with just cosmetic filtering since those images are base64 thumbnails generated by Google itself and tapping on they doesn't actually send you to those sites but rather popping up a separate <div> element which then contains the link (very annoying).
 
Top