Skip to content

Commit 861af6d

Browse files
committed
v0.23.13
1 parent 30514e9 commit 861af6d

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

dist/main.js

+11-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// @supportURL https://github.com/Xmader/musescore-downloader/issues
66
// @updateURL https://msdl.librescore.org/install.user.js
77
// @downloadURL https://msdl.librescore.org/install.user.js
8-
// @version 0.23.12
8+
// @version 0.23.13
99
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
1010
// @author Xmader
1111
// @match https://musescore.com/*/*
@@ -54,22 +54,23 @@
5454

5555
// script loader
5656
new Promise(resolve => {
57-
const d = new Image()
58-
document.body.prepend(d)
59-
resolve(d)
60-
}).then(d => {
61-
const stackN = 10
57+
const id = '' + Math.random();
58+
w[id] = resolve;
59+
60+
const stackN = 9
6261
let loaderIntro = ''
6362
for (let i = 0; i < stackN; i++) {
6463
loaderIntro += `(function ${getRandL()}(){`
6564
}
6665
const loaderOutro = '})()'.repeat(stackN)
6766
const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js"
6867

68+
Function(`${loaderIntro}const d=new Image();window['${id}'](d);delete window['${id}'];document.body.prepend(d)${loaderOutro}//# sourceURL=${mockUrl}`)()
69+
}).then(d => {
6970
d.style.display = 'none';
7071
d.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
7172
d.once = false;
72-
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 () {
73+
d.setAttribute('onload', `if(this.once)return;this.once=true;this.remove();const GM=window['${gmId}'];delete window['${gmId}'];(` + function a () {
7374
/** script code here */
7475

7576

@@ -27288,8 +27289,8 @@ Please pipe the document into a Node stream.\
2728827289
setText(i18n('BTN_ERROR')());
2728927290
// ask user to send Discord message
2729027291
alert('❌Download Failed!\n\n' +
27291-
'Send your URL to the #dataset-bugs channel \n ' +
27292-
'in the LibreScore Community Discord server: ' + DISCORD_URL);
27292+
'Send your URL to the #dataset-bugs channel ' +
27293+
'in the LibreScore Community Discord server:\n' + DISCORD_URL);
2729327294
// open Discord on 'OK'
2729427295
const a = document.createElement('a');
2729527296
a.href = DISCORD_URL;
@@ -27513,6 +27514,6 @@ Please pipe the document into a Node stream.\
2751327514
// eslint-disable-next-line @typescript-eslint/no-floating-promises
2751427515
waitForSheetLoaded().then(main);
2751527516

27516-
}.toString() + `)()${loaderOutro}//# sourceURL=${mockUrl}`)})
27517+
}.toString() + ')()')})
2751727518

2751827519
}());

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "musescore-downloader",
3-
"version": "0.23.12",
3+
"version": "0.23.13",
44
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
55
"main": "dist/main.js",
66
"bin": "dist/cli.js",

0 commit comments

Comments
 (0)