feat: show version on the userscript manager menu

This commit is contained in:
Xmader 2020-12-09 11:20:48 -05:00
parent 99bec9b4b4
commit e10e23ffec
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ w[gmId] = _GM;
if (_GM && _GM.registerMenuCommand && _GM.openInTab) {
// add buttons to the userscript manager menu
_GM.registerMenuCommand(
`** Version: ${_GM.info.script.version} **`,
() => _GM.openInTab("https://github.com/Xmader/musescore-downloader/releases", { active: true })
)
_GM.registerMenuCommand(
'** Source Code **',
() => _GM.openInTab(_GM.info.script.homepage, { active: true })