You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 10
Next »
A representation of a userscript resource.
To pass a userscript to or retrieve one from a service, the userscripts needs to represented in a format. Some services accept representations in different formats.
A userscript has the following properties.
- Namespace
- Userscripts are organized in namespaces. This way scripts of different vendors may have the same name, but are still distinguishable by their unique namespace.
- Name
- A name identifies a userscript within its namespace.
- Version
- A version uniquely identifies a userscript within its name and namespaces.
- Code URL
- The URL to the JavaScript code of the userscript.
- Description
- A short description about the purpose of the userscript.
- Documentation
- A reference to the online documentation of the userscript.
- Space
- A script is activated if the user is viewing resources on a specific space.
- Category
- A script is activated if the user is viewing resources on space tagged with a given category.
- Label
- A script is activated if the user is viewing a page, tagged with a given label.
- Group
- A script is activated if the user is member of a specified group.
- User
- A script is activated if the user is explicitly referenced by its name.