@henrikvilhelmberglund/vite-plugin-monkey 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/client.d.ts +1085 -0
- package/dist/client/index.d.ts +802 -0
- package/dist/client/index.mjs +69 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/metafile-esm.json +1 -0
- package/dist/native/index.d.ts +29 -0
- package/dist/native/index.mjs +58 -0
- package/dist/native/index.mjs.map +1 -0
- package/dist/native/metafile-esm.json +1 -0
- package/dist/node/index.d.ts +845 -0
- package/dist/node/index.mjs +2487 -0
- package/dist/node/index.mjs.map +1 -0
- package/global.d.ts +1294 -0
- package/package.json +89 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
// src/client/window.ts
|
2
|
+
var key = `__monkeyWindow-` + (() => {
|
3
|
+
try {
|
4
|
+
return new URL(import.meta.url).origin;
|
5
|
+
} catch {
|
6
|
+
return location.origin;
|
7
|
+
}
|
8
|
+
})();
|
9
|
+
var monkeyWindow = document[key] ?? window;
|
10
|
+
|
11
|
+
// src/client/index.ts
|
12
|
+
var GM = /* @__PURE__ */ (() => monkeyWindow.GM)();
|
13
|
+
var unsafeWindow = /* @__PURE__ */ (() => {
|
14
|
+
return monkeyWindow.unsafeWindow;
|
15
|
+
})();
|
16
|
+
var GM_info = /* @__PURE__ */ (() => monkeyWindow.GM_info)();
|
17
|
+
var GM_cookie = /* @__PURE__ */ (() => monkeyWindow.GM_cookie)();
|
18
|
+
var GM_setValue = /* @__PURE__ */ (() => monkeyWindow.GM_setValue)();
|
19
|
+
var GM_deleteValue = /* @__PURE__ */ (() => monkeyWindow.GM_deleteValue)();
|
20
|
+
var GM_listValues = /* @__PURE__ */ (() => monkeyWindow.GM_listValues)();
|
21
|
+
var GM_addValueChangeListener = /* @__PURE__ */ (() => monkeyWindow.GM_addValueChangeListener)();
|
22
|
+
var GM_removeValueChangeListener = /* @__PURE__ */ (() => monkeyWindow.GM_removeValueChangeListener)();
|
23
|
+
var GM_getResourceText = /* @__PURE__ */ (() => monkeyWindow.GM_getResourceText)();
|
24
|
+
var GM_getResourceURL = /* @__PURE__ */ (() => monkeyWindow.GM_getResourceURL)();
|
25
|
+
var GM_addElement = /* @__PURE__ */ (() => monkeyWindow.GM_addElement)();
|
26
|
+
var GM_addStyle = /* @__PURE__ */ (() => monkeyWindow.GM_addStyle)();
|
27
|
+
var GM_openInTab = /* @__PURE__ */ (() => monkeyWindow.GM_openInTab)();
|
28
|
+
var GM_registerMenuCommand = /* @__PURE__ */ (() => monkeyWindow.GM_registerMenuCommand)();
|
29
|
+
var GM_unregisterMenuCommand = /* @__PURE__ */ (() => monkeyWindow.GM_unregisterMenuCommand)();
|
30
|
+
var GM_notification = /* @__PURE__ */ (() => monkeyWindow.GM_notification)();
|
31
|
+
var GM_xmlhttpRequest = /* @__PURE__ */ (() => monkeyWindow.GM_xmlhttpRequest)();
|
32
|
+
var GM_setClipboard = /* @__PURE__ */ (() => monkeyWindow.GM_setClipboard)();
|
33
|
+
var GM_download = /* @__PURE__ */ (() => monkeyWindow.GM_download)();
|
34
|
+
var GM_log = /* @__PURE__ */ (() => monkeyWindow.GM_log)();
|
35
|
+
var GM_getTab = /* @__PURE__ */ (() => monkeyWindow.GM_getTab)();
|
36
|
+
var GM_saveTab = /* @__PURE__ */ (() => monkeyWindow.GM_saveTab)();
|
37
|
+
var GM_getTabs = /* @__PURE__ */ (() => monkeyWindow.GM_getTabs)();
|
38
|
+
var GM_getValue = /* @__PURE__ */ (() => monkeyWindow.GM_getValue)();
|
39
|
+
var GM_webRequest = /* @__PURE__ */ (() => monkeyWindow.GM_webRequest)();
|
40
|
+
export {
|
41
|
+
GM,
|
42
|
+
GM_addElement,
|
43
|
+
GM_addStyle,
|
44
|
+
GM_addValueChangeListener,
|
45
|
+
GM_cookie,
|
46
|
+
GM_deleteValue,
|
47
|
+
GM_download,
|
48
|
+
GM_getResourceText,
|
49
|
+
GM_getResourceURL,
|
50
|
+
GM_getTab,
|
51
|
+
GM_getTabs,
|
52
|
+
GM_getValue,
|
53
|
+
GM_info,
|
54
|
+
GM_listValues,
|
55
|
+
GM_log,
|
56
|
+
GM_notification,
|
57
|
+
GM_openInTab,
|
58
|
+
GM_registerMenuCommand,
|
59
|
+
GM_removeValueChangeListener,
|
60
|
+
GM_saveTab,
|
61
|
+
GM_setClipboard,
|
62
|
+
GM_setValue,
|
63
|
+
GM_unregisterMenuCommand,
|
64
|
+
GM_webRequest,
|
65
|
+
GM_xmlhttpRequest,
|
66
|
+
monkeyWindow,
|
67
|
+
unsafeWindow
|
68
|
+
};
|
69
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/client/window.ts","../../src/client/index.ts"],"sourcesContent":["import type { MonkeyWindow } from './types';\n\nconst key =\n `__monkeyWindow-` +\n (() => {\n try {\n return new URL(import.meta.url).origin;\n } catch {\n return location.origin;\n }\n })();\n\n// @ts-ignore\nexport const monkeyWindow: MonkeyWindow = document[key] ?? window;\n","import { monkeyWindow } from './window';\nexport { monkeyWindow };\nexport type {\n MonkeyWindow,\n GmXhrRequest,\n GmDownloadRequest,\n GmNotificationDetails,\n GmOpenInTabDetails,\n GmScriptInfo,\n} from './types';\n\nexport const GM = /* @__PURE__ */ (() => monkeyWindow.GM)();\n\nexport const unsafeWindow = /* @__PURE__ */ (() => {\n return monkeyWindow.unsafeWindow;\n})();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_info\n * @see https://violentmonkey.github.io/api/gm/#gm_info\n */\nexport const GM_info = /* @__PURE__ */ (() => monkeyWindow.GM_info)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_cookie.list\n * @see https://www.tampermonkey.net/documentation.php#api:GM_cookie.set\n * @see https://www.tampermonkey.net/documentation.php#api:GM_cookie.delete\n * @available tampermonkey\n */\nexport const GM_cookie = /* @__PURE__ */ (() => monkeyWindow.GM_cookie)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_setValue\n * @see https://violentmonkey.github.io/api/gm/#gm_setvalue\n */\nexport const GM_setValue = /* @__PURE__ */ (() => monkeyWindow.GM_setValue)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_deleteValue\n * @see https://violentmonkey.github.io/api/gm/#gm_deletevalue\n */\nexport const GM_deleteValue = /* @__PURE__ */ (() =>\n monkeyWindow.GM_deleteValue)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_listValues\n * @see https://violentmonkey.github.io/api/gm/#gm_listvalues\n */\nexport const GM_listValues = /* @__PURE__ */ (() =>\n monkeyWindow.GM_listValues)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_addValueChangeListener\n * @see https://violentmonkey.github.io/api/gm/#gm_addvaluechangelistener\n */\nexport const GM_addValueChangeListener = /* @__PURE__ */ (() =>\n monkeyWindow.GM_addValueChangeListener)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_removeValueChangeListener\n * @see https://violentmonkey.github.io/api/gm/#gm_removevaluechangelistener\n */\nexport const GM_removeValueChangeListener = /* @__PURE__ */ (() =>\n monkeyWindow.GM_removeValueChangeListener)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_getResourceText\n * @see https://violentmonkey.github.io/api/gm/#gm_getresourcetext\n */\nexport const GM_getResourceText = /* @__PURE__ */ (() =>\n monkeyWindow.GM_getResourceText)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_getResourceURL\n * @see https://violentmonkey.github.io/api/gm/#gm_getresourceurl\n */\nexport const GM_getResourceURL = /* @__PURE__ */ (() =>\n monkeyWindow.GM_getResourceURL)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_addElement\n * @see https://violentmonkey.github.io/api/gm/#gm_addelement\n */\nexport const GM_addElement = /* @__PURE__ */ (() =>\n monkeyWindow.GM_addElement)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_addStyle\n * @see https://violentmonkey.github.io/api/gm/#gm_addstyle\n */\nexport const GM_addStyle = /* @__PURE__ */ (() => monkeyWindow.GM_addStyle)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_openInTab\n * @see https://violentmonkey.github.io/api/gm/#gm_openintab\n */\nexport const GM_openInTab = /* @__PURE__ */ (() => monkeyWindow.GM_openInTab)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_registerMenuCommand\n * @see https://violentmonkey.github.io/api/gm/#gm_registermenucommand\n */\nexport const GM_registerMenuCommand = /* @__PURE__ */ (() =>\n monkeyWindow.GM_registerMenuCommand)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_unregisterMenuCommand\n * @see https://violentmonkey.github.io/api/gm/#gm_unregistermenucommand\n */\nexport const GM_unregisterMenuCommand = /* @__PURE__ */ (() =>\n monkeyWindow.GM_unregisterMenuCommand)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_notification\n * @see https://violentmonkey.github.io/api/gm/#gm_notification\n */\nexport const GM_notification = /* @__PURE__ */ (() =>\n monkeyWindow.GM_notification)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_xmlhttpRequest\n * @see https://violentmonkey.github.io/api/gm/#gm_xmlhttprequest\n */\nexport const GM_xmlhttpRequest = /* @__PURE__ */ (() =>\n monkeyWindow.GM_xmlhttpRequest)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_setClipboard\n * @see https://violentmonkey.github.io/api/gm/#gm_setclipboard\n */\nexport const GM_setClipboard = /* @__PURE__ */ (() =>\n monkeyWindow.GM_setClipboard)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_download\n * @see https://violentmonkey.github.io/api/gm/#gm_download\n */\nexport const GM_download = /* @__PURE__ */ (() => monkeyWindow.GM_download)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_log\n * @available tampermonkey\n */\nexport const GM_log = /* @__PURE__ */ (() => monkeyWindow.GM_log)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_getTab\n * @available tampermonkey\n */\nexport const GM_getTab = /* @__PURE__ */ (() => monkeyWindow.GM_getTab)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_saveTab\n * @available tampermonkey\n */\nexport const GM_saveTab = /* @__PURE__ */ (() => monkeyWindow.GM_saveTab)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_getTabs\n * @available tampermonkey\n */\nexport const GM_getTabs = /* @__PURE__ */ (() => monkeyWindow.GM_getTabs)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_getValue\n * @see https://violentmonkey.github.io/api/gm/#gm_getvalue\n */\nexport const GM_getValue = /* @__PURE__ */ (() => monkeyWindow.GM_getValue)();\n\n/**\n * @see https://www.tampermonkey.net/documentation.php#api:GM_webRequest\n * @available tampermonkey\n */\nexport const GM_webRequest = /* @__PURE__ */ (() =>\n monkeyWindow.GM_webRequest)();\n"],"mappings":";AAEA,IAAM,MACJ,qBACC,MAAM;AACL,MAAI;AACF,WAAO,IAAI,IAAI,YAAY,GAAG,EAAE;AAAA,EAClC,QAAQ;AACN,WAAO,SAAS;AAAA,EAClB;AACF,GAAG;AAGE,IAAM,eAA6B,SAAS,GAAG,KAAK;;;ACFpD,IAAM,KAAsB,uBAAM,aAAa,IAAI;AAEnD,IAAM,eAAgC,uBAAM;AACjD,SAAO,aAAa;AACtB,GAAG;AAMI,IAAM,UAA2B,uBAAM,aAAa,SAAS;AAQ7D,IAAM,YAA6B,uBAAM,aAAa,WAAW;AAMjE,IAAM,cAA+B,uBAAM,aAAa,aAAa;AAMrE,IAAM,iBAAkC,uBAC7C,aAAa,gBAAgB;AAMxB,IAAM,gBAAiC,uBAC5C,aAAa,eAAe;AAMvB,IAAM,4BAA6C,uBACxD,aAAa,2BAA2B;AAMnC,IAAM,+BAAgD,uBAC3D,aAAa,8BAA8B;AAMtC,IAAM,qBAAsC,uBACjD,aAAa,oBAAoB;AAM5B,IAAM,oBAAqC,uBAChD,aAAa,mBAAmB;AAM3B,IAAM,gBAAiC,uBAC5C,aAAa,eAAe;AAMvB,IAAM,cAA+B,uBAAM,aAAa,aAAa;AAMrE,IAAM,eAAgC,uBAAM,aAAa,cAAc;AAMvE,IAAM,yBAA0C,uBACrD,aAAa,wBAAwB;AAMhC,IAAM,2BAA4C,uBACvD,aAAa,0BAA0B;AAMlC,IAAM,kBAAmC,uBAC9C,aAAa,iBAAiB;AAMzB,IAAM,oBAAqC,uBAChD,aAAa,mBAAmB;AAM3B,IAAM,kBAAmC,uBAC9C,aAAa,iBAAiB;AAMzB,IAAM,cAA+B,uBAAM,aAAa,aAAa;AAMrE,IAAM,SAA0B,uBAAM,aAAa,QAAQ;AAM3D,IAAM,YAA6B,uBAAM,aAAa,WAAW;AAMjE,IAAM,aAA8B,uBAAM,aAAa,YAAY;AAMnE,IAAM,aAA8B,uBAAM,aAAa,YAAY;AAMnE,IAAM,cAA+B,uBAAM,aAAa,aAAa;AAMrE,IAAM,gBAAiC,uBAC5C,aAAa,eAAe;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"inputs":{"src/client/window.ts":{"bytes":287,"imports":[],"format":"esm"},"src/client/index.ts":{"bytes":5927,"imports":[{"path":"src/client/window.ts","kind":"import-statement","original":"./window"}],"format":"esm"}},"outputs":{"dist/client/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7636},"dist/client/index.mjs":{"imports":[],"exports":["GM","GM_addElement","GM_addStyle","GM_addValueChangeListener","GM_cookie","GM_deleteValue","GM_download","GM_getResourceText","GM_getResourceURL","GM_getTab","GM_getTabs","GM_getValue","GM_info","GM_listValues","GM_log","GM_notification","GM_openInTab","GM_registerMenuCommand","GM_removeValueChangeListener","GM_saveTab","GM_setClipboard","GM_setValue","GM_unregisterMenuCommand","GM_webRequest","GM_xmlhttpRequest","monkeyWindow","unsafeWindow"],"entryPoint":"src/client/index.ts","inputs":{"src/client/window.ts":{"bytesInOutput":185},"src/client/index.ts":{"bytesInOutput":1972}},"bytes":2691}}}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
declare const _GM: {} | null | undefined;
|
2
|
+
declare const _GM_addElement: {} | null | undefined;
|
3
|
+
declare const _GM_addStyle: {} | null | undefined;
|
4
|
+
declare const _GM_addValueChangeListener: {} | null | undefined;
|
5
|
+
declare const _GM_cookie: {} | null | undefined;
|
6
|
+
declare const _GM_deleteValue: {} | null | undefined;
|
7
|
+
declare const _GM_download: {} | null | undefined;
|
8
|
+
declare const _GM_getResourceText: {} | null | undefined;
|
9
|
+
declare const _GM_getResourceURL: {} | null | undefined;
|
10
|
+
declare const _GM_getTab: {} | null | undefined;
|
11
|
+
declare const _GM_getTabs: {} | null | undefined;
|
12
|
+
declare const _GM_getValue: {} | null | undefined;
|
13
|
+
declare const _GM_info: {} | null | undefined;
|
14
|
+
declare const _GM_listValues: {} | null | undefined;
|
15
|
+
declare const _GM_log: {} | null | undefined;
|
16
|
+
declare const _GM_notification: {} | null | undefined;
|
17
|
+
declare const _GM_openInTab: {} | null | undefined;
|
18
|
+
declare const _GM_registerMenuCommand: {} | null | undefined;
|
19
|
+
declare const _GM_removeValueChangeListener: {} | null | undefined;
|
20
|
+
declare const _GM_saveTab: {} | null | undefined;
|
21
|
+
declare const _GM_setClipboard: {} | null | undefined;
|
22
|
+
declare const _GM_setValue: {} | null | undefined;
|
23
|
+
declare const _GM_unregisterMenuCommand: {} | null | undefined;
|
24
|
+
declare const _GM_xmlhttpRequest: {} | null | undefined;
|
25
|
+
declare const _GM_webRequest: {} | null | undefined;
|
26
|
+
declare const _unsafeWindow: {} | null | undefined;
|
27
|
+
declare const _monkeyWindow: Window & typeof globalThis;
|
28
|
+
|
29
|
+
export { _GM as GM, _GM_addElement as GM_addElement, _GM_addStyle as GM_addStyle, _GM_addValueChangeListener as GM_addValueChangeListener, _GM_cookie as GM_cookie, _GM_deleteValue as GM_deleteValue, _GM_download as GM_download, _GM_getResourceText as GM_getResourceText, _GM_getResourceURL as GM_getResourceURL, _GM_getTab as GM_getTab, _GM_getTabs as GM_getTabs, _GM_getValue as GM_getValue, _GM_info as GM_info, _GM_listValues as GM_listValues, _GM_log as GM_log, _GM_notification as GM_notification, _GM_openInTab as GM_openInTab, _GM_registerMenuCommand as GM_registerMenuCommand, _GM_removeValueChangeListener as GM_removeValueChangeListener, _GM_saveTab as GM_saveTab, _GM_setClipboard as GM_setClipboard, _GM_setValue as GM_setValue, _GM_unregisterMenuCommand as GM_unregisterMenuCommand, _GM_webRequest as GM_webRequest, _GM_xmlhttpRequest as GM_xmlhttpRequest, _monkeyWindow as monkeyWindow, _unsafeWindow as unsafeWindow };
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// src/native/alias.ts
|
2
|
+
var _GM = /* @__PURE__ */ (() => typeof GM != "undefined" ? GM : void 0)();
|
3
|
+
var _GM_addElement = /* @__PURE__ */ (() => typeof GM_addElement != "undefined" ? GM_addElement : void 0)();
|
4
|
+
var _GM_addStyle = /* @__PURE__ */ (() => typeof GM_addStyle != "undefined" ? GM_addStyle : void 0)();
|
5
|
+
var _GM_addValueChangeListener = /* @__PURE__ */ (() => typeof GM_addValueChangeListener != "undefined" ? GM_addValueChangeListener : void 0)();
|
6
|
+
var _GM_cookie = /* @__PURE__ */ (() => typeof GM_cookie != "undefined" ? GM_cookie : void 0)();
|
7
|
+
var _GM_deleteValue = /* @__PURE__ */ (() => typeof GM_deleteValue != "undefined" ? GM_deleteValue : void 0)();
|
8
|
+
var _GM_download = /* @__PURE__ */ (() => typeof GM_download != "undefined" ? GM_download : void 0)();
|
9
|
+
var _GM_getResourceText = /* @__PURE__ */ (() => typeof GM_getResourceText != "undefined" ? GM_getResourceText : void 0)();
|
10
|
+
var _GM_getResourceURL = /* @__PURE__ */ (() => typeof GM_getResourceURL != "undefined" ? GM_getResourceURL : void 0)();
|
11
|
+
var _GM_getTab = /* @__PURE__ */ (() => typeof GM_getTab != "undefined" ? GM_getTab : void 0)();
|
12
|
+
var _GM_getTabs = /* @__PURE__ */ (() => typeof GM_getTabs != "undefined" ? GM_getTabs : void 0)();
|
13
|
+
var _GM_getValue = /* @__PURE__ */ (() => typeof GM_getValue != "undefined" ? GM_getValue : void 0)();
|
14
|
+
var _GM_info = /* @__PURE__ */ (() => typeof GM_info != "undefined" ? GM_info : void 0)();
|
15
|
+
var _GM_listValues = /* @__PURE__ */ (() => typeof GM_listValues != "undefined" ? GM_listValues : void 0)();
|
16
|
+
var _GM_log = /* @__PURE__ */ (() => typeof GM_log != "undefined" ? GM_log : void 0)();
|
17
|
+
var _GM_notification = /* @__PURE__ */ (() => typeof GM_notification != "undefined" ? GM_notification : void 0)();
|
18
|
+
var _GM_openInTab = /* @__PURE__ */ (() => typeof GM_openInTab != "undefined" ? GM_openInTab : void 0)();
|
19
|
+
var _GM_registerMenuCommand = /* @__PURE__ */ (() => typeof GM_registerMenuCommand != "undefined" ? GM_registerMenuCommand : void 0)();
|
20
|
+
var _GM_removeValueChangeListener = /* @__PURE__ */ (() => typeof GM_removeValueChangeListener != "undefined" ? GM_removeValueChangeListener : void 0)();
|
21
|
+
var _GM_saveTab = /* @__PURE__ */ (() => typeof GM_saveTab != "undefined" ? GM_saveTab : void 0)();
|
22
|
+
var _GM_setClipboard = /* @__PURE__ */ (() => typeof GM_setClipboard != "undefined" ? GM_setClipboard : void 0)();
|
23
|
+
var _GM_setValue = /* @__PURE__ */ (() => typeof GM_setValue != "undefined" ? GM_setValue : void 0)();
|
24
|
+
var _GM_unregisterMenuCommand = /* @__PURE__ */ (() => typeof GM_unregisterMenuCommand != "undefined" ? GM_unregisterMenuCommand : void 0)();
|
25
|
+
var _GM_xmlhttpRequest = /* @__PURE__ */ (() => typeof GM_xmlhttpRequest != "undefined" ? GM_xmlhttpRequest : void 0)();
|
26
|
+
var _GM_webRequest = /* @__PURE__ */ (() => typeof GM_webRequest != "undefined" ? GM_webRequest : void 0)();
|
27
|
+
var _unsafeWindow = /* @__PURE__ */ (() => typeof unsafeWindow != "undefined" ? unsafeWindow : void 0)();
|
28
|
+
var _monkeyWindow = /* @__PURE__ */ (() => window)();
|
29
|
+
export {
|
30
|
+
_GM as GM,
|
31
|
+
_GM_addElement as GM_addElement,
|
32
|
+
_GM_addStyle as GM_addStyle,
|
33
|
+
_GM_addValueChangeListener as GM_addValueChangeListener,
|
34
|
+
_GM_cookie as GM_cookie,
|
35
|
+
_GM_deleteValue as GM_deleteValue,
|
36
|
+
_GM_download as GM_download,
|
37
|
+
_GM_getResourceText as GM_getResourceText,
|
38
|
+
_GM_getResourceURL as GM_getResourceURL,
|
39
|
+
_GM_getTab as GM_getTab,
|
40
|
+
_GM_getTabs as GM_getTabs,
|
41
|
+
_GM_getValue as GM_getValue,
|
42
|
+
_GM_info as GM_info,
|
43
|
+
_GM_listValues as GM_listValues,
|
44
|
+
_GM_log as GM_log,
|
45
|
+
_GM_notification as GM_notification,
|
46
|
+
_GM_openInTab as GM_openInTab,
|
47
|
+
_GM_registerMenuCommand as GM_registerMenuCommand,
|
48
|
+
_GM_removeValueChangeListener as GM_removeValueChangeListener,
|
49
|
+
_GM_saveTab as GM_saveTab,
|
50
|
+
_GM_setClipboard as GM_setClipboard,
|
51
|
+
_GM_setValue as GM_setValue,
|
52
|
+
_GM_unregisterMenuCommand as GM_unregisterMenuCommand,
|
53
|
+
_GM_webRequest as GM_webRequest,
|
54
|
+
_GM_xmlhttpRequest as GM_xmlhttpRequest,
|
55
|
+
_monkeyWindow as monkeyWindow,
|
56
|
+
_unsafeWindow as unsafeWindow
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/native/alias.ts"],"sourcesContent":["declare const GM: unknown;\ndeclare const GM_addElement: unknown;\ndeclare const GM_addStyle: unknown;\ndeclare const GM_addValueChangeListener: unknown;\ndeclare const GM_cookie: unknown;\ndeclare const GM_deleteValue: unknown;\ndeclare const GM_download: unknown;\ndeclare const GM_getResourceText: unknown;\ndeclare const GM_getResourceURL: unknown;\ndeclare const GM_getTab: unknown;\ndeclare const GM_getTabs: unknown;\ndeclare const GM_getValue: unknown;\ndeclare const GM_info: unknown;\ndeclare const GM_listValues: unknown;\ndeclare const GM_log: unknown;\ndeclare const GM_notification: unknown;\ndeclare const GM_openInTab: unknown;\ndeclare const GM_registerMenuCommand: unknown;\ndeclare const GM_removeValueChangeListener: unknown;\ndeclare const GM_saveTab: unknown;\ndeclare const GM_setClipboard: unknown;\ndeclare const GM_setValue: unknown;\ndeclare const GM_unregisterMenuCommand: unknown;\ndeclare const GM_xmlhttpRequest: unknown;\ndeclare const GM_webRequest: unknown;\ndeclare const unsafeWindow: unknown;\n\nexport const _GM = /* @__PURE__ */ (() =>\n typeof GM != 'undefined' ? GM : void 0)();\nexport const _GM_addElement = /* @__PURE__ */ (() =>\n typeof GM_addElement != 'undefined' ? GM_addElement : void 0)();\nexport const _GM_addStyle = /* @__PURE__ */ (() =>\n typeof GM_addStyle != 'undefined' ? GM_addStyle : void 0)();\nexport const _GM_addValueChangeListener = /* @__PURE__ */ (() =>\n typeof GM_addValueChangeListener != 'undefined'\n ? GM_addValueChangeListener\n : void 0)();\nexport const _GM_cookie = /* @__PURE__ */ (() =>\n typeof GM_cookie != 'undefined' ? GM_cookie : void 0)();\nexport const _GM_deleteValue = /* @__PURE__ */ (() =>\n typeof GM_deleteValue != 'undefined' ? GM_deleteValue : void 0)();\nexport const _GM_download = /* @__PURE__ */ (() =>\n typeof GM_download != 'undefined' ? GM_download : void 0)();\nexport const _GM_getResourceText = /* @__PURE__ */ (() =>\n typeof GM_getResourceText != 'undefined' ? GM_getResourceText : void 0)();\nexport const _GM_getResourceURL = /* @__PURE__ */ (() =>\n typeof GM_getResourceURL != 'undefined' ? GM_getResourceURL : void 0)();\nexport const _GM_getTab = /* @__PURE__ */ (() =>\n typeof GM_getTab != 'undefined' ? GM_getTab : void 0)();\nexport const _GM_getTabs = /* @__PURE__ */ (() =>\n typeof GM_getTabs != 'undefined' ? GM_getTabs : void 0)();\nexport const _GM_getValue = /* @__PURE__ */ (() =>\n typeof GM_getValue != 'undefined' ? GM_getValue : void 0)();\nexport const _GM_info = /* @__PURE__ */ (() =>\n typeof GM_info != 'undefined' ? GM_info : void 0)();\nexport const _GM_listValues = /* @__PURE__ */ (() =>\n typeof GM_listValues != 'undefined' ? GM_listValues : void 0)();\nexport const _GM_log = /* @__PURE__ */ (() =>\n typeof GM_log != 'undefined' ? GM_log : void 0)();\nexport const _GM_notification = /* @__PURE__ */ (() =>\n typeof GM_notification != 'undefined' ? GM_notification : void 0)();\nexport const _GM_openInTab = /* @__PURE__ */ (() =>\n typeof GM_openInTab != 'undefined' ? GM_openInTab : void 0)();\nexport const _GM_registerMenuCommand = /* @__PURE__ */ (() =>\n typeof GM_registerMenuCommand != 'undefined'\n ? GM_registerMenuCommand\n : void 0)();\nexport const _GM_removeValueChangeListener = /* @__PURE__ */ (() =>\n typeof GM_removeValueChangeListener != 'undefined'\n ? GM_removeValueChangeListener\n : void 0)();\nexport const _GM_saveTab = /* @__PURE__ */ (() =>\n typeof GM_saveTab != 'undefined' ? GM_saveTab : void 0)();\nexport const _GM_setClipboard = /* @__PURE__ */ (() =>\n typeof GM_setClipboard != 'undefined' ? GM_setClipboard : void 0)();\nexport const _GM_setValue = /* @__PURE__ */ (() =>\n typeof GM_setValue != 'undefined' ? GM_setValue : void 0)();\nexport const _GM_unregisterMenuCommand = /* @__PURE__ */ (() =>\n typeof GM_unregisterMenuCommand != 'undefined'\n ? GM_unregisterMenuCommand\n : void 0)();\nexport const _GM_xmlhttpRequest = /* @__PURE__ */ (() =>\n typeof GM_xmlhttpRequest != 'undefined' ? GM_xmlhttpRequest : void 0)();\nexport const _GM_webRequest = /* @__PURE__ */ (() =>\n typeof GM_webRequest != 'undefined' ? GM_webRequest : void 0)();\n\nexport const _unsafeWindow = /* @__PURE__ */ (() =>\n typeof unsafeWindow != 'undefined' ? unsafeWindow : void 0)();\n\nexport const _monkeyWindow = /* @__PURE__ */ (() => window)();\n"],"mappings":";AA2BO,IAAM,MAAuB,uBAClC,OAAO,MAAM,cAAc,KAAK,QAAQ;AACnC,IAAM,iBAAkC,uBAC7C,OAAO,iBAAiB,cAAc,gBAAgB,QAAQ;AACzD,IAAM,eAAgC,uBAC3C,OAAO,eAAe,cAAc,cAAc,QAAQ;AACrD,IAAM,6BAA8C,uBACzD,OAAO,6BAA6B,cAChC,4BACA,QAAQ;AACP,IAAM,aAA8B,uBACzC,OAAO,aAAa,cAAc,YAAY,QAAQ;AACjD,IAAM,kBAAmC,uBAC9C,OAAO,kBAAkB,cAAc,iBAAiB,QAAQ;AAC3D,IAAM,eAAgC,uBAC3C,OAAO,eAAe,cAAc,cAAc,QAAQ;AACrD,IAAM,sBAAuC,uBAClD,OAAO,sBAAsB,cAAc,qBAAqB,QAAQ;AACnE,IAAM,qBAAsC,uBACjD,OAAO,qBAAqB,cAAc,oBAAoB,QAAQ;AACjE,IAAM,aAA8B,uBACzC,OAAO,aAAa,cAAc,YAAY,QAAQ;AACjD,IAAM,cAA+B,uBAC1C,OAAO,cAAc,cAAc,aAAa,QAAQ;AACnD,IAAM,eAAgC,uBAC3C,OAAO,eAAe,cAAc,cAAc,QAAQ;AACrD,IAAM,WAA4B,uBACvC,OAAO,WAAW,cAAc,UAAU,QAAQ;AAC7C,IAAM,iBAAkC,uBAC7C,OAAO,iBAAiB,cAAc,gBAAgB,QAAQ;AACzD,IAAM,UAA2B,uBACtC,OAAO,UAAU,cAAc,SAAS,QAAQ;AAC3C,IAAM,mBAAoC,uBAC/C,OAAO,mBAAmB,cAAc,kBAAkB,QAAQ;AAC7D,IAAM,gBAAiC,uBAC5C,OAAO,gBAAgB,cAAc,eAAe,QAAQ;AACvD,IAAM,0BAA2C,uBACtD,OAAO,0BAA0B,cAC7B,yBACA,QAAQ;AACP,IAAM,gCAAiD,uBAC5D,OAAO,gCAAgC,cACnC,+BACA,QAAQ;AACP,IAAM,cAA+B,uBAC1C,OAAO,cAAc,cAAc,aAAa,QAAQ;AACnD,IAAM,mBAAoC,uBAC/C,OAAO,mBAAmB,cAAc,kBAAkB,QAAQ;AAC7D,IAAM,eAAgC,uBAC3C,OAAO,eAAe,cAAc,cAAc,QAAQ;AACrD,IAAM,4BAA6C,uBACxD,OAAO,4BAA4B,cAC/B,2BACA,QAAQ;AACP,IAAM,qBAAsC,uBACjD,OAAO,qBAAqB,cAAc,oBAAoB,QAAQ;AACjE,IAAM,iBAAkC,uBAC7C,OAAO,iBAAiB,cAAc,gBAAgB,QAAQ;AAEzD,IAAM,gBAAiC,uBAC5C,OAAO,gBAAgB,cAAc,eAAe,QAAQ;AAEvD,IAAM,gBAAiC,uBAAM,QAAQ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"inputs":{"src/native/alias.ts":{"bytes":4274,"imports":[],"format":"esm"},"src/native/index.ts":{"bytes":1027,"imports":[{"path":"src/native/alias.ts","kind":"import-statement","original":"./alias"}],"format":"esm"}},"outputs":{"dist/native/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5857},"dist/native/index.mjs":{"imports":[],"exports":["GM","GM_addElement","GM_addStyle","GM_addValueChangeListener","GM_cookie","GM_deleteValue","GM_download","GM_getResourceText","GM_getResourceURL","GM_getTab","GM_getTabs","GM_getValue","GM_info","GM_listValues","GM_log","GM_notification","GM_openInTab","GM_registerMenuCommand","GM_removeValueChangeListener","GM_saveTab","GM_setClipboard","GM_setValue","GM_unregisterMenuCommand","GM_webRequest","GM_xmlhttpRequest","monkeyWindow","unsafeWindow"],"entryPoint":"src/native/index.ts","inputs":{"src/native/alias.ts":{"bytesInOutput":2939},"src/native/index.ts":{"bytesInOutput":0}},"bytes":3950}}}
|