Answer the question
In order to leave comments, you need to log in
How to run a script on every page (Google extension)?
Good afternoon, ladies and gentlemen! I need my script (JS) to run on every page, but I don't understand how to include it in the extension, what should the manifest file be?
Answer the question
In order to leave comments, you need to log in
If for personal purposes, then you can use this extension Custom JavaScript for websites
And here is an example for the manifest
{
"content_scripts": [
{
"matches": ["http://www.google.com/*"],
"js": ["myscript.js"]
}
],
"permissions": [
"tabs", "http://*/*"
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question