feat: show version on the userscript manager menu
This commit is contained in:
		
							parent
							
								
									99bec9b4b4
								
							
						
					
					
						commit
						e10e23ffec
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -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 }) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue