-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
22 lines (14 loc) · 1 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: userScripts.RegisteredUserScript
slug: Mozilla/Add-ons/WebExtensions/API/userScripts/RegisteredUserScript
---
{{AddonSidebar}}
Un RegisteredUserScript est retourné par un appel à {{WebExtAPIRef("userScripts.register","userScripts.register()")}} et représente les scripts utilisateur enregistrés dans cet appel.
L'objet définit une méthode unique, {{WebExtAPIRef("userScripts.RegisteredUserScript.unregister","unregister()")}}, qui peut être utilisée pour désinscrire les scripts utilisateur.
> [!NOTE]
> Si cet objet est détruit (par exemple parce qu'il sort du champ d'application), les scripts associés seront automatiquement désenregistrés, vous devez donc conserver une référence à cet objet aussi longtemps que vous voulez que les scripts de contenu restent enregistrés.
## Méthodes
- {{WebExtAPIRef("userScripts.RegisteredUserScript.unregister","unregister()")}}
- : Désenregistre les scripts utilisateurs représentés par cet objet.
## Compatibilité des navigateurs
{{Compat}}