I have developed a chrome extension and it is working absolutely fine.
Part of the manifest.json
looks like this:
"content_scripts":[
{
"js":["js/script.js"],
"css": ["css/style.css"],
"matches": ["http://localhost/*", "https://localhost/*"]
}
],
so the extension injects the content script only when the domain is localhost
, which is also working fine. Now I want a way by which the extension popup can have a enable extension on this domain
or disable extension on this domain
in the so the user can enable/disable the extension according to needs.
I have seen that in multiple ad-blocker plugins, so I guess it should be possible.