Skip to content

Commit 76e7d87

Browse files
committed
0.3.0 +GM_info.script.options
1 parent b1c6bb2 commit 76e7d87

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

index.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,35 @@ declare interface VMScriptGMInfoScriptMeta {
6363
icon?: string | undefined;
6464
includes: string[];
6565
matches: string[];
66+
/** User options and overrides for the script
67+
* @since VM2.31.1 */
68+
options: {
69+
check_for_updates: boolean,
70+
inject_into: VMScriptInjectInto | null,
71+
noframes: boolean | null,
72+
override: {
73+
/** Keep the script's @exclude */
74+
merge_excludes: boolean,
75+
/** Keep the script's @include */
76+
merge_includes: boolean,
77+
/** Keep the script's @match */
78+
merge_matches: boolean,
79+
/** Keep the script's @exclude-match */
80+
merge_exclude_matches: boolean,
81+
/** User overridden @exclude */
82+
use_excludes: string[],
83+
/** User overridden @include */
84+
use_includes: string[],
85+
/** User overridden @match */
86+
use_matches: string[],
87+
/** User overridden @exclude-match */
88+
use_exclude_matches: string[],
89+
},
90+
run_at: VMScriptRunAt | null,
91+
tags: string[],
92+
/** Last modification by the user; convertible as `new Date(user_modified)` */
93+
user_modified: number,
94+
},
6695
name: string;
6796
namespace: string;
6897
noframes?: boolean | undefined;

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.2",
3+
"version": "0.3.0",
44
"description": "Type declaration for GM functions in Violentmonkey",
55
"author": "Gerald <[email protected]>",
66
"main": "index.d.ts",

0 commit comments

Comments
 (0)