4

I'm working on a Chrome extension that modifies Google search, and would like to restrict it just to Google search domains (e.g. google.com, google.com.au, google.cn, etc).

I found a question asking for a pattern for this but the match patterns for an extension don't support this and require the last part of a DNS name; so we're stuck with requiring a list of every Google search domain. There are some user-curated lists around the Internet, but I can't find one that's either published by Google, or kept current. Any pointers?

Edit

Interestingly when I use a list such as from https://github.com/dyne/domain-list/blob/master/data/google in the manifest, it shows up in the Chrome extension as "Read and change your data on all google.com sites" which makes me wonder if there isn't a special match pattern such as <all_urls> that is for google.com domains.

halfer
  • 19,824
  • 17
  • 99
  • 186
askvictor
  • 3,621
  • 4
  • 32
  • 45

1 Answers1

6

You can get that list as a plain text file from https://www.google.com/supported_domains. It currently has 193 entries.

rsanchez
  • 14,467
  • 1
  • 35
  • 46