I am a beginner in developing Chrome Extensions. I am currently working on an extension. Consider an extension, which only works on Instagram pages (.com, .in, ... and so on). Now there are two conditions:
- If it is an Instagram page, the
popup.html
says 'YES' and change some contents of DOM. - If it is not an Instagram page, the
popup.html
says 'NO' and there is no change in DOM.
{
"name": "Extension",
"description": "Description goes here",
"version": "1.0",
"manifest_version": 3,
"permissions": ["tabs"],
"content-scripts": { // DO SOMETHING HERE
}
}
I am using Manifest Version 3. Can I know the way I can check if the domain of the active tab is instagram, and if it is so, then where/how should I mention the source of the js file to be executed.