Skip to content

Commit 1d1d111

Browse files
committed
doc: GM_info.userAgent
1 parent 35c87aa commit 1d1d111

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ declare interface VMScriptGMInfoObject {
6969
* extension API (`browser.runtime.getPlatformInfo` and `getBrowserInfo`).
7070
*/
7171
platform: VMScriptGMInfoPlatform;
72+
/**
73+
* A copy of navigator.userAgent from the content script of the extension.
74+
* @since VM2.20.2 */
75+
userAgent: string;
7276
/**
7377
* A copy of navigator.userAgentData from the content script of the extension.
7478
* Not present in browsers that don't implement this API.

0 commit comments

Comments
 (0)