Skip to content

Commit a40f10b

Browse files
committed
0.3.0 +GM_info.script.options
1 parent 23b4ba3 commit a40f10b

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

index.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,35 @@ declare interface VMScriptGMInfoScriptMeta {
4747
icon?: string;
4848
includes: string[];
4949
matches: string[];
50+
/** User options and overrides for the script
51+
* @since VM2.31.1 */
52+
options: {
53+
check_for_updates: boolean,
54+
inject_into?: VMScriptInjectInto,
55+
noframes?: boolean,
56+
override: {
57+
/** Keep the script's @exclude */
58+
merge_excludes: boolean,
59+
/** Keep the script's @include */
60+
merge_includes: boolean,
61+
/** Keep the script's @match */
62+
merge_matches: boolean,
63+
/** Keep the script's @exclude-match */
64+
merge_exclude_matches: boolean,
65+
/** User overridden @exclude */
66+
use_excludes: string[],
67+
/** User overridden @include */
68+
use_includes: string[],
69+
/** User overridden @match */
70+
use_matches: string[],
71+
/** User overridden @exclude-match */
72+
use_exclude_matches: string[],
73+
},
74+
run_at?: VMScriptRunAt,
75+
tags: string[],
76+
/** Last modification by the user; convertible as `new Date(user_modified)` */
77+
user_modified?: number,
78+
},
5079
name: string;
5180
namespace: string;
5281
noframes?: boolean;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@violentmonkey/types",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Type declaration for GM functions in Violentmonkey",
55
"author": "Gerald <gera2ld@live.com>",
66
"main": "index.js",

0 commit comments

Comments
 (0)