When specifying parameters in the manifest file of a chrome extension there is an option all_frames
. This allows the content scripts to be embedded in all frames of
The content_scripts
manifest property is an array, so you can define multiple content script specification objects:
"content_scripts": [
{
"matches": ["http://www.google.com/*"],
"css": ["mystyles.css"],
"js": ["a.js"],
"all_frames": false
},
{
"matches": ["http://www.yahoo.com/*"],
"js": ["b.js"],
"all_frames": true
}
],