Skip to content

Commit

Permalink
v0.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Nov 6, 2020
1 parent 06dd28f commit fd012ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/*/*
Expand Down Expand Up @@ -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);
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit fd012ad

Please sign in to comment.