A RegisteredUserScript 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 can be 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 content scripts to stay registered.


Unregisters the user scripts represented by this object.

Browser compatibility

No compatibility data found. Please contribute data for "webextensions.api.userScripts.RegisteredUserScript" (depth: 10) to the MDN compatibility data repository.

Document Tags and Contributors

Contributors to this page: bershanskiy, irenesmith, pesar81
Last updated by: bershanskiy,