userScripts.RegisteredUserScript
A RegisteredUserScript
object is returned by a call to userScripts.register()
and represents the user scripts registered in that call.
The object defines a single method, unregister()
, which is used to unregister the user scripts.
Note: If this object is destroyed (for example because it goes out of scope) then the associated scripts will be unregistered automatically, so you should keep a reference to this object for as long as you want the user scripts to stay registered.
Methods
unregister()
- Unregisters the user scripts represented by this object.
Browser compatibility
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
RegisteredUserScript | ChromeNo supportNo | EdgeNo supportNo | FirefoxFull support68
| OperaNo supportNo | SafariNo supportNo | Firefox for AndroidFull support68 |
unregister | ChromeNo supportNo | EdgeNo supportNo | FirefoxFull support68
| OperaNo supportNo | SafariNo supportNo | Firefox for AndroidFull support68 |
Legend
- Full support
- Full support
- No support
- No support
- User must explicitly enable this feature.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.