dotfiles/plugins/tampermonkey-mzte/src/GM.hx
2024-03-24 22:55:49 +01:00

13 lines
374 B
Haxe

import js.html.MouseEvent;
@:native("") extern class GM {
@:native("GM_registerMenuCommand")
static function registerMenuCommand(label:String, cb:MouseEvent->Void):Void;
@:native("GM_getValue")
static function getValue(key:String, ?defaultValue:Dynamic):Dynamic;
@:native("GM_setValue")
static function setValue(key:String, value:Dynamic):Void;
}