diff --git a/dist/main.js b/dist/main.js index b3c677e..c4051cf 100644 --- a/dist/main.js +++ b/dist/main.js @@ -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/*/* @@ -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); @@ -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; diff --git a/package-lock.json b/package-lock.json index e492fd4..9eaa652 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "musescore-downloader", - "version": "0.11.0", + "version": "0.11.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index aa1880c..13b607e 100644 --- a/package.json +++ b/package.json @@ -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": {