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 a page or not.
An example of what I want to achieve is have a.js running with all_frames=false and b.js with all_frames=true
.
The
content_scripts
manifest property is an array, so you can define multiple content script specification objects: