This commit is contained in:
Xmader 2020-11-06 12:38:11 -05:00
parent 06dd28f515
commit fd012ad365
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4
3 changed files with 9 additions and 7 deletions

12
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.11.3
// @version 0.11.4
// @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/*/*
@ -26481,13 +26481,15 @@ Please pipe the document into a Node stream.\
}
const hideFromArrFilter = (() => {
const l = new Set();
hookNative(Array.prototype, 'filter', (_filter) => {
const qsaHook = (_fn) => {
return function (...args) {
const arr = _filter.apply(this, args);
const arr = _fn.apply(this, args);
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return _filter.call(arr, (e) => !l.has(e));
return Array.prototype.filter.call(arr, (e) => !l.has(e));
};
});
};
hookNative(Element.prototype, 'querySelectorAll', qsaHook);
hookNative(document, 'querySelectorAll', qsaHook);
return (item) => {
l.add(item);
};

2
package-lock.json generated
View file

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

View file

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