v0.11.3
This commit is contained in:
parent
a48fa33ea2
commit
e00dcc36eb
3 changed files with 23 additions and 17 deletions
36
dist/main.js
vendored
36
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.11.2
|
// @version 0.11.3
|
||||||
// @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/*/*
|
||||||
|
@ -26455,12 +26455,12 @@ Please pipe the document into a Node stream.\
|
||||||
}
|
}
|
||||||
return _toString.call(this);
|
return _toString.call(this);
|
||||||
};
|
};
|
||||||
});
|
}, true);
|
||||||
return (fn) => {
|
return (fn) => {
|
||||||
l.add(fn);
|
l.add(fn);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
function hookNative(target, method, hook) {
|
function hookNative(target, method, hook, async = false) {
|
||||||
// reserve for future hook update
|
// reserve for future hook update
|
||||||
const _fn = target[method];
|
const _fn = target[method];
|
||||||
const detach = () => {
|
const detach = () => {
|
||||||
|
@ -26470,9 +26470,14 @@ Please pipe the document into a Node stream.\
|
||||||
// so setting this function to be non-configurable and non-writable is no use.
|
// so setting this function to be non-configurable and non-writable is no use.
|
||||||
const hookedFn = hook(_fn, detach);
|
const hookedFn = hook(_fn, detach);
|
||||||
target[method] = hookedFn;
|
target[method] = hookedFn;
|
||||||
setTimeout(() => {
|
if (!async) {
|
||||||
makeNative(hookedFn);
|
makeNative(hookedFn);
|
||||||
});
|
}
|
||||||
|
else {
|
||||||
|
setTimeout(() => {
|
||||||
|
makeNative(hookedFn);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const hideFromArrFilter = (() => {
|
const hideFromArrFilter = (() => {
|
||||||
const l = new Set();
|
const l = new Set();
|
||||||
|
@ -26780,16 +26785,17 @@ Please pipe the document into a Node stream.\
|
||||||
// Anti-detection:
|
// Anti-detection:
|
||||||
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
||||||
// if detected "Download MSCZ"
|
// if detected "Download MSCZ"
|
||||||
const _property = 'textContent';
|
['textContent', 'innerHTML'].forEach((_property) => {
|
||||||
const _set = textNode['__lookupSetter__'](_property);
|
const _set = textNode['__lookupSetter__'](_property);
|
||||||
Object.defineProperty(textNode, _property, {
|
Object.defineProperty(textNode, _property, {
|
||||||
set(v) { _set.call(textNode, v); },
|
set(v) { _set.call(textNode, v); },
|
||||||
get: () => {
|
get: () => {
|
||||||
// first time only
|
// first time only
|
||||||
const t = this.antiDetectionText;
|
const t = this.antiDetectionText;
|
||||||
this.antiDetectionText = ' ';
|
this.antiDetectionText = ' ';
|
||||||
return t;
|
return t;
|
||||||
},
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
// hide this button from Array.prototype.filter
|
// hide this button from Array.prototype.filter
|
||||||
this.hide(btn);
|
this.hide(btn);
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.11.2",
|
"version": "0.11.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.11.2",
|
"version": "0.11.3",
|
||||||
"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",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue