-1

This question already has an answer here:

Sorry if question title isn't clear. Let me explain with an example.

Search term: Blogging

Results I got from Google

  1. https://www.bloggingbasics101.com/how-do-i-start-a-blog/
  2. https://www.thebalancesmb.com › ... › Home Business › Home Business Toolbox
  3. https://en.wikipedia.org/wiki/Blog
  4. https://blogging.org/
  5. https://shoutmeloud.com/
  6. https://bloggingwizard.com/
  7. https://bloggingarea.com/blogging-tips/

I want to remove 1,2,3 and 7. I am looking only the home page (full domain) as result. Is it possible?

marked as duplicate by ChrisF Jul 5 '18 at 21:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

A little "script" that would remove such results from the results page. Note that it can keep the page empty, and you'll just need to pass to the next one.

The best way to use it, in my opinion, would be a bookmarklet:

for (var x of document.querySelectorAll('div.g h3.r a')) {
     if (!x.href.match(/https?:\/\/\w+?(?:\.\w+)+?\/$/)) {
        x.closest('div.g').remove();
     }
}

Just minify it and put it as a bookmarklet, and click it whenever you want to get only base domain results.

A minified version done with jscompress:

for(var x of document.querySelectorAll('div.g h3.r a'))x.href.match(/https?:\/\/\w+?(?:\.\w+)+?\/$/)||x.closest('div.g').remove();

Not the answer you're looking for? Browse other questions tagged or ask your own question.