In other userscript managers GM.info is an object, see Greasemonkey, Violentmonkey, and Tampermonkey.
A sample script:
// ==UserScript==
// @name GM.info test script
// @description Test script
// @version 1.0.0
// @match *://*/*
// ==/UserScript==
console.log(typeof GM.info) // object
console.log(GM.info.script.name) // GM.info test script
System Information:
iOS version: 15.3.1
Userscripts version: 1.1(17)
In other userscript managers
GM.infois an object, see Greasemonkey, Violentmonkey, and Tampermonkey.A sample script:
System Information: