Skip to content

Commit

Permalink
v0.11.1 - #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Nov 5, 2020
1 parent 9ba244b commit 67dc352
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 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.0
// @version 0.11.1
// @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 @@ -26732,6 +26732,7 @@ Please pipe the document into a Node stream.\
constructor(templateBtn) {
this.templateBtn = templateBtn;
this.list = [];
this.antiDetectionText = 'Download';
}
add(options) {
const btn = this.templateBtn.cloneNode(true);
Expand All @@ -26746,7 +26747,12 @@ Please pipe the document into a Node stream.\
const _set = textNode['__lookupSetter__'](_property);
Object.defineProperty(textNode, _property, {
set(v) { _set.call(textNode, v); },
get() { return 'Download'; },
get: () => {
// first time only
const t = this.antiDetectionText;
this.antiDetectionText = '';
return t;
},
});
const setText = (str) => {
textNode.textContent = str;
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.0",
"version": "0.11.1",
"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 67dc352

Please sign in to comment.