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

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
RegisteredUserScript
No
No
68
66
?
No
No
?
?
68
?
?
?
unregister
No
No
68
66
?
No
No
?
?
68
?
?
?

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/RegisteredUserScript