v0.21.4
This commit is contained in:
parent
e5ffc4b9a2
commit
1a4efa76fa
3 changed files with 16 additions and 4 deletions
16
dist/main.js
vendored
16
dist/main.js
vendored
|
@ -5,7 +5,7 @@
|
|||
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
||||
// @updateURL https://msdl.librescore.org/install.user.js
|
||||
// @downloadURL https://msdl.librescore.org/install.user.js
|
||||
// @version 0.21.3
|
||||
// @version 0.21.4
|
||||
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
|
||||
// @author Xmader
|
||||
// @match https://musescore.com/*/*
|
||||
|
@ -32,6 +32,11 @@
|
|||
|
||||
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 })
|
||||
|
@ -43,13 +48,20 @@
|
|||
)
|
||||
}
|
||||
|
||||
function getRandL () {
|
||||
return String.fromCharCode(97 + Math.floor(Math.random() * 26))
|
||||
}
|
||||
|
||||
// script loader
|
||||
new Promise(resolve => {
|
||||
const id = '' + Math.random();
|
||||
w[id] = resolve;
|
||||
|
||||
const stackN = 9
|
||||
const loaderIntro = '(function a(){'.repeat(stackN)
|
||||
let loaderIntro = ''
|
||||
for (let i = 0; i < stackN; i++) {
|
||||
loaderIntro += `(function ${getRandL()}(){`
|
||||
}
|
||||
const loaderOutro = '})()'.repeat(stackN)
|
||||
const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js"
|
||||
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.21.3",
|
||||
"version": "0.21.4",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.21.3",
|
||||
"version": "0.21.4",
|
||||
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
|
||||
"main": "dist/main.js",
|
||||
"bin": "dist/cli.js",
|
||||
|
|
Loading…
Reference in a new issue