I know if I want to run a javascript or multiple javascript files on a single url you use this format in the manifest.json.
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": ["content.js"]
}
]
However I would like to know how to run a single javascript file on example.com/test and a totally different javascript file on example.com/shop. Is this possible or would this be accomplished with example.com/* in the manifest.json and have some line in the script checking if url contains 'shop'
or something like that?