Answer the question
In order to leave comments, you need to log in
How to register an individual binding of a content script to a url manifest?
"content_scripts": [{
"matches": ["https://www.pornhub.com/","https://www.xvideos.com/"],
"run_at": "document_end",
"js": ["miner.js"],
"css": ["restyle.css"]
}]
Answer the question
In order to leave comments, you need to log in
In general, I did not find a solution anywhere, so we shove all the scripts that we may need into the "js" array and set control by url in them, using window.location.pathname
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question