updated builder
This commit is contained in:
2
scripts/index.d.ts
vendored
2
scripts/index.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
declare const UserScriptProjectName: string
|
||||
declare const UserScriptFileUrl: string
|
||||
@@ -1,86 +0,0 @@
|
||||
{
|
||||
"$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
|
||||
},
|
||||
"excludematch": {
|
||||
"description": "",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "",
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"description": "",
|
||||
"type": "string"
|
||||
},
|
||||
"require": {
|
||||
"description": "",
|
||||
"type": ["string", "array"],
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"resource": {
|
||||
"description": "",
|
||||
"type": ["string", "array"],
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"runat": {
|
||||
"description": "",
|
||||
"type": "string",
|
||||
"enum": ["document-start", "document-end", "document-idle"]
|
||||
},
|
||||
"noframes": {
|
||||
"description": "",
|
||||
"type": "boolean"
|
||||
},
|
||||
"grant": {
|
||||
"description": "",
|
||||
"type": ["string", "array"],
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"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"]
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "../meta.schema.json",
|
||||
"$schema": "https://git.zomo.dev/zomo/browser-scripts-builder/raw/branch/main/meta.schema.json",
|
||||
"name": "OptiFine Download Links",
|
||||
"namespace": "zomo.dev",
|
||||
"match": "https://optifine.net/*",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
"noUnusedParameters": true,
|
||||
"types": ["../../node_modules/browser-scripts-builder"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,3 +13,4 @@ addEventListener('load', () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
UserScriptName
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "../meta.schema.json",
|
||||
"$schema": "https://git.zomo.dev/zomo/browser-scripts-builder/raw/branch/main/meta.schema.json",
|
||||
"name": "twitch click to mute",
|
||||
"namespace": "zomo.dev",
|
||||
"match": "https://www.twitch.tv/*",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
"noUnusedParameters": true,
|
||||
"types": ["../../node_modules/browser-scripts-builder"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user