v0.23.13
This commit is contained in:
parent
30514e9507
commit
861af6d3f0
3 changed files with 13 additions and 12 deletions
21
dist/main.js
vendored
21
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.23.12
|
||||
// @version 0.23.13
|
||||
// @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/*/*
|
||||
|
@ -54,11 +54,10 @@
|
|||
|
||||
// script loader
|
||||
new Promise(resolve => {
|
||||
const d = new Image()
|
||||
document.body.prepend(d)
|
||||
resolve(d)
|
||||
}).then(d => {
|
||||
const stackN = 10
|
||||
const id = '' + Math.random();
|
||||
w[id] = resolve;
|
||||
|
||||
const stackN = 9
|
||||
let loaderIntro = ''
|
||||
for (let i = 0; i < stackN; i++) {
|
||||
loaderIntro += `(function ${getRandL()}(){`
|
||||
|
@ -66,10 +65,12 @@
|
|||
const loaderOutro = '})()'.repeat(stackN)
|
||||
const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js"
|
||||
|
||||
Function(`${loaderIntro}const d=new Image();window['${id}'](d);delete window['${id}'];document.body.prepend(d)${loaderOutro}//# sourceURL=${mockUrl}`)()
|
||||
}).then(d => {
|
||||
d.style.display = 'none';
|
||||
d.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
|
||||
d.once = false;
|
||||
d.setAttribute('onload', `const self=this;${loaderIntro}if(self.once)return;self.once=true;self.remove();const GM=window['${gmId}'];delete window['${gmId}'];(` + function a () {
|
||||
d.setAttribute('onload', `if(this.once)return;this.once=true;this.remove();const GM=window['${gmId}'];delete window['${gmId}'];(` + function a () {
|
||||
/** script code here */
|
||||
|
||||
|
||||
|
@ -27288,8 +27289,8 @@ Please pipe the document into a Node stream.\
|
|||
setText(i18n('BTN_ERROR')());
|
||||
// ask user to send Discord message
|
||||
alert('❌Download Failed!\n\n' +
|
||||
'Send your URL to the #dataset-bugs channel \n ' +
|
||||
'in the LibreScore Community Discord server: ' + DISCORD_URL);
|
||||
'Send your URL to the #dataset-bugs channel ' +
|
||||
'in the LibreScore Community Discord server:\n' + DISCORD_URL);
|
||||
// open Discord on 'OK'
|
||||
const a = document.createElement('a');
|
||||
a.href = DISCORD_URL;
|
||||
|
@ -27513,6 +27514,6 @@ Please pipe the document into a Node stream.\
|
|||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
waitForSheetLoaded().then(main);
|
||||
|
||||
}.toString() + `)()${loaderOutro}//# sourceURL=${mockUrl}`)})
|
||||
}.toString() + ')()')})
|
||||
|
||||
}());
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.23.12",
|
||||
"version": "0.23.13",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.23.12",
|
||||
"version": "0.23.13",
|
||||
"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