musescore-downloader

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 71b85a16c0472073e98151ca27b4d67957dd08db
parent adad7867b760d893a2002633cae5a9911e9a4839
Author: Xmader <xmader@outlook.com>
Date:   Sun,  3 Nov 2019 15:24:58 -0500

v0.1.4 - 点击时不弹窗

Diffstat:
Mdist/main.js | 5++++-
Mpackage.json | 2+-
Msrc/main.ts | 2++
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dist/main.js b/dist/main.js @@ -3,7 +3,7 @@ // @namespace https://www.xmader.com/ // @homepageURL https://github.com/Xmader/musescore-downloader/ // @supportURL https://github.com/Xmader/musescore-downloader/issues -// @version 0.1.3 +// @version 0.1.4 // @description 免登录、免 Musescore Pro,下载 musescore.com 上的曲谱 // @author Xmader // @match https://musescore.com/user/*/scores/* @@ -51,6 +51,9 @@ if (btn.nodeName.toLowerCase() == "button") { btn.setAttribute("style", "width: 205px !important"); } + else { + btn.dataset.target = ""; + } const span = [...btn.childNodes].find((x) => { return x.textContent.includes("Download"); }); diff --git a/package.json b/package.json @@ -1,6 +1,6 @@ { "name": "musescore-downloader", - "version": "0.1.3", + "version": "0.1.4", "description": "免登录、免 Musescore Pro,下载 musescore.com 上的曲谱", "main": "dist/main.js", "repository": { diff --git a/src/main.ts b/src/main.ts @@ -37,6 +37,8 @@ const newDownloadBtns = Object.keys(downloadURLs).map((name) => { if (btn.nodeName.toLowerCase() == "button") { btn.setAttribute("style", "width: 205px !important") + } else { + btn.dataset.target = "" } const span = [...btn.childNodes].find((x) => {