updated builder

This commit is contained in:
2022-06-06 21:25:09 -05:00
parent bfbc2cdbde
commit c5627e318c
12 changed files with 793 additions and 1305 deletions

2
scripts/index.d.ts vendored
View File

@@ -1,2 +0,0 @@
declare const UserScriptProjectName: string
declare const UserScriptFileUrl: string

View File

@@ -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"]
}

View File

@@ -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/*",

View File

@@ -8,6 +8,7 @@
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true
"noUnusedParameters": true,
"types": ["../../node_modules/browser-scripts-builder"]
}
}

View File

@@ -13,3 +13,4 @@ addEventListener('load', () => {
}
})
})
UserScriptName

View File

@@ -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/*",

View File

@@ -8,6 +8,7 @@
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true
"noUnusedParameters": true,
"types": ["../../node_modules/browser-scripts-builder"]
}
}