I am making a content script that does something with the google results webpage.
The line below in the manifest.json is not valid.
“matches”: [ “https://www.google.*/*” ]
The error due to above line in manifest.json is:
Invalid value for ‘content_scripts[0].matches[0]’: Invalid host wildcard.
I want to run the script on various domains like google.com, google.co.in, google.de etc. How do I accomplish that?
Wildcards are not allowed in the TLD of a match pattern.
Google has published a list of supported domains. Each domain is put on a separate line, and looks like
.google.com. You can use this list to produce a valid match pattern, such as (I’ve usedwwwas a subdomain, for the example):Instead of
http://andhttps://,*://can be used. Note that more search portals exists:"https://encrypted.google.com/*""https://ipv6.google.com/*"