A RegisteredContentScript
is returned by a call to contentScripts.register()
and represents the content scripts registered in that call.
It defines a single function unregister()
, which can be used to unregister the content scripts.
Note: If this object is destroyed (for example because it goes out of scope) then the content scripts will be unregistered automatically, so you should keep a reference to this object for as long as you want the content scripts to stay registered.