Skip to content

Commit

Permalink
feat: show version on the userscript manager menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Dec 9, 2020
1 parent 99bec9b commit e10e23f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit e10e23f

Please sign in to comment.