This commit is contained in:
Xmader 2020-10-30 15:08:27 -04:00
parent ba78222c03
commit 1bbc3a16f0
3 changed files with 14 additions and 4 deletions

14
dist/main.js vendored
View File

@ -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.10.1
// @version 0.10.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/*/*
@ -26456,7 +26456,7 @@ Please pipe the document into a Node stream.\
const _fn = target[method];
// This script can run before anything on the page,
// so setting this function to be non-configurable and non-writable is no use.
target[method] = function (i) {
const hookFn = function (i) {
const m = this.match(MAGIC_REG);
if (m) {
resolve(m[2]);
@ -26465,6 +26465,16 @@ Please pipe the document into a Node stream.\
}
return _fn.call(this, i);
};
target[method] = hookFn;
// make hooked methods "native"
const _toString = Function.prototype['toString'];
Function.prototype.toString = function s() {
if (this === hookFn || this === s) {
// "function () {\n [native code]\n}"
return _toString.call(parseInt);
}
return _toString.call(this);
};
});
const getFileUrl = (type, index = 0) => __awaiter(void 0, void 0, void 0, function* () {
const fileUrlModule = webpackHook(FILE_URL_MODULE_ID, {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "musescore-downloader",
"version": "0.10.1",
"version": "0.10.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "musescore-downloader",
"version": "0.10.1",
"version": "0.10.2",
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro免费下载 musescore.com 上的曲谱",
"main": "dist/main.js",
"repository": {