104 lines
2.6 KiB
JSON
104 lines
2.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"title": "UserScriptMeta",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"description": "Script Name",
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"description": "Author namespace",
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"description": "",
|
|
"type": ["string", "array"],
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"excludematch": {
|
|
"description": "",
|
|
"type": ["string", "array"],
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"version": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"require": {
|
|
"description": "",
|
|
"type": ["string", "array"],
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resource": {
|
|
"description": "",
|
|
"type": ["string", "array"],
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"runat": {
|
|
"description": "",
|
|
"type": "string",
|
|
"enum": ["document-start", "document-end", "document-idle"]
|
|
},
|
|
"noframes": {
|
|
"description": "",
|
|
"type": "boolean"
|
|
},
|
|
"grant": {
|
|
"description": "",
|
|
"type": ["string", "array"],
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"injectinto": {
|
|
"description": "",
|
|
"type": "string",
|
|
"enum": ["page", "content", "auto"]
|
|
},
|
|
"downloadURL": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"supportURL": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"homepageURL": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"unwrap": {
|
|
"description": "",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": ["name", "namespace", "version"]
|
|
}
|