feat: show version on the userscript manager menu
This commit is contained in:
parent
99bec9b4b4
commit
e10e23ffec
|
@ -8,6 +8,11 @@ w[gmId] = _GM;
|
||||||
|
|
||||||
if (_GM && _GM.registerMenuCommand && _GM.openInTab) {
|
if (_GM && _GM.registerMenuCommand && _GM.openInTab) {
|
||||||
// add buttons to the userscript manager menu
|
// 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(
|
_GM.registerMenuCommand(
|
||||||
'** Source Code **',
|
'** Source Code **',
|
||||||
() => _GM.openInTab(_GM.info.script.homepage, { active: true })
|
() => _GM.openInTab(_GM.info.script.homepage, { active: true })
|
||||||
|
|
Loading…
Reference in New Issue