The purpose
Troubleshooting custom extension installation errors in Chrome and Edge.
Invalid value for ‘content_scripts[0].matches[0]’: Missing scheme separator.マニフェストを読み込めませんでした。

Detail
the error “Invalid value for ‘content_scripts[0].matches[0]’: Missing scheme separator” is shown, when attempting to register an extension with the manifest file below.
{
"name": "Sample",
"version": "1",
"manifest_version": 3,
"content_scripts": [
{
"matches": [ "enblog.marunokan.com/*" ],
"js": ["sample.js"]
}
]
}
Reason
The cause is in the message, as shown in the following line.
"matches": [ "enblog.marunokan.com/*" ],
The issue is that the specified URL is missing “https://” or “http://”.
Solution
As reason, the following line will be corrected.
"matches": [ "enblog.marunokan.com/*" ],
correct it as follows
"matches": [ "https://blog.en.marunokan.com/*" ],
Result
We are able to successfully register the browser.
The following message appears in the bottom-left corner of the screen when you register it with Chrome.

comment