Use this function to register one or more content scripts.
It accepts one parameter, which is an object with similar properties to the objects given in the content_scripts
manifest key (but note that content_scripts
is an array of objects, while the argument to register()
is a single object).
This is an asynchronous function that returns a Promise
.