I’m working on a Chrome extension where I need to inject content scripts on https:// www.ewccv.com /cvs/details. However, I’m encountering an issue where the content scripts aren’t triggering as expected, despite what I believe are the correct URL match patterns in my manifest.json.
As you can see from my host_permissions and content_scripts properties, I’ve been testing what I think are all possible cases. Here are the relevant parts of my manifest.json:
"host_permissions": [
"https://www.ewccv.com/*/*",
"https://www.ewccv.com/*/search",
"https://www.ewccv.com/*/details",
"content_scripts": [
{
"matches": ["https://www.ewccv.com/cvs/"],
"js": ["content.js"]
},
{
"matches": ["https://www.ewccv.com/cvs/search"],
"js": ["content1.js"]
},
{
"matches": ["https://www.ewccv.com/cvs/*"],
"js": ["content3.js"]
}
]
Behavior Observed:
On the landing page https:// www.ewccv.com/cvs/, content.js and content3.js work as expected.
On https:// www.ewccv.com/cvs/search, I expect content1.js and content3.js to trigger, but they don’t.
On https:// www.ewccv.com/cvs/details, I expect content3.js to trigger, but it does not.
Has anyone encountered similar issues with URL matching in the manifest.json? Any insights or suggestions on how to resolve this would be greatly appreciated!