This method enables user scripts to be registered from an extension's pages (such as the background page).
This method is very similar to the contentScripts.register()
API method (for example, they both return a promise that resolves to an API object with an unregister()
method for unregistering the script). There are, however, differences in the options supported.
This is an asynchronous method that returns a Promise
.