我有一个内容脚本,我只希望它与https://fantasy.premierleague.com/a/team/my相匹配,所以我在manifest.json
"content_scripts": [
{
"matches": ["*://fantasy.premierleague.com/a/team/my"],
"js": ["myTeam.bundle.js"],
"run_at": "document_idle"
}
],
但是,它仍与https://fantasy.premierleague.com/a/home和https://fantasy.premierleague.com/a/team/123456/event/12之类的页面匹配。为什么会这样?
即使添加以下内容
"exclude_matches": ["https://fantasy.premierleague.com/a/home"],
它仍然在该页面上执行!