Answer the question
In order to leave comments, you need to log in
How to organize scripts for an extension?
Good afternoon!
I am writing an extension for chrome, it should work only on one site and throw out a message with a certain frequency. In order to work only on one site, I wrote in manifest.json:
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [{
"js": ["content.js"],
"matches": ["https://websitename.com/*"]
}]
Answer the question
In order to leave comments, you need to log in
So let the extension load in the same window on top of the websitename.com page a layer with your page or a modal window for the user to set the parameters you need. And the way you want, of course, will not work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question