I have a content script and I only want it to match https://fantasy.premierleague.com/a/team/my so I added the following to my manifest.json
"content_scripts": [
{
"matches": ["*://fantasy.premierleague.com/a/team/my"],
"js": ["myTeam.bundle.js"],
"run_at": "document_idle"
}
],
However, it is still matching pages like https://fantasy.premierleague.com/a/home and https://fantasy.premierleague.com/a/team/123456/event/12. Why is this happening?
Even after adding the following
"exclude_matches": ["https://fantasy.premierleague.com/a/home"],
it still executes on that page!