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
|
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
||||||
// @updateURL https://msdl.librescore.org/install.user.js
|
// @updateURL https://msdl.librescore.org/install.user.js
|
||||||
// @downloadURL 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 上的曲谱
|
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
|
||||||
// @author Xmader
|
// @author Xmader
|
||||||
// @match https://musescore.com/*/*
|
// @match https://musescore.com/*/*
|
||||||
|
@ -32,6 +32,11 @@
|
||||||
|
|
||||||
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 })
|
||||||
|
@ -43,13 +48,20 @@
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getRandL () {
|
||||||
|
return String.fromCharCode(97 + Math.floor(Math.random() * 26))
|
||||||
|
}
|
||||||
|
|
||||||
// script loader
|
// script loader
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
const id = '' + Math.random();
|
const id = '' + Math.random();
|
||||||
w[id] = resolve;
|
w[id] = resolve;
|
||||||
|
|
||||||
const stackN = 9
|
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 loaderOutro = '})()'.repeat(stackN)
|
||||||
const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js"
|
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",
|
"name": "musescore-downloader",
|
||||||
"version": "0.21.3",
|
"version": "0.21.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"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 上的曲谱",
|
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"bin": "dist/cli.js",
|
"bin": "dist/cli.js",
|
||||||
|
|
Loading…
Reference in a new issue