v0.20.2
This commit is contained in:
parent
e142c7a3db
commit
7f12c76413
3 changed files with 38 additions and 26 deletions
18
dist/main.js
vendored
18
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.20.1
|
||||
// @version 0.20.2
|
||||
// @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/*/*
|
||||
|
@ -19,6 +19,8 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
const d =document.createElement('img');d.style.display='none';d.src='data:';d.once=false;d.setAttribute('onloadstart','if(this.once)return;this.once=true;this.remove();(' + function () {
|
||||
|
||||
function __awaiter(thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
|
@ -26506,9 +26508,12 @@ Please pipe the document into a Node stream.\
|
|||
*/
|
||||
const magicHookConstr = (() => {
|
||||
const l = {};
|
||||
hookNative(document.body, 'append', (fn) => {
|
||||
try {
|
||||
const p = Object.getPrototypeOf(document.body);
|
||||
Object.setPrototypeOf(document.body, null);
|
||||
hookNative(document.body, 'append', () => {
|
||||
return function (...nodes) {
|
||||
fn.call(this, ...nodes);
|
||||
p.append.call(this, ...nodes);
|
||||
if (nodes[0].nodeName === 'IFRAME') {
|
||||
const iframe = nodes[0];
|
||||
const w = iframe.contentWindow;
|
||||
|
@ -26530,6 +26535,11 @@ Please pipe the document into a Node stream.\
|
|||
}
|
||||
};
|
||||
});
|
||||
Object.setPrototypeOf(document.body, p);
|
||||
}
|
||||
catch (err) {
|
||||
console$1.error(err);
|
||||
}
|
||||
return (type) => __awaiter(void 0, void 0, void 0, function* () {
|
||||
return new Promise((resolve) => {
|
||||
l[type] = (token) => {
|
||||
|
@ -27255,4 +27265,6 @@ Please pipe the document into a Node stream.\
|
|||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
waitForDocumentLoaded().then(main);
|
||||
|
||||
}.toString() + ')()');document.body.prepend(d)
|
||||
|
||||
}());
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.20.1",
|
||||
"version": "0.20.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "musescore-downloader",
|
||||
"version": "0.20.1",
|
||||
"version": "0.20.2",
|
||||
"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