Reputation: 71
At the moment I've got it like this:
"matches": ['https://google.com/*', 'http://google.com/*']
Is there any way to combine these 2 URLs into one allowing both https and http?
(Manifest V3)
Upvotes: 0
Views: 282
Reputation: 3320
According to https://developer.chrome.com/docs/extensions/mv2/match_patterns/ you could do:
"matches": ["*://google.com/*"]
Upvotes: 1
Reputation: 73766
*
is for both http and https.
The real address of google.com
is www.google.com
(Chrome hides the www
part by default)
Use double quotes.
"matches": ["*://www.google.com/*"]
Upvotes: 2