From 71b85a16c0472073e98151ca27b4d67957dd08db Mon Sep 17 00:00:00 2001 From: Xmader Date: Sun, 3 Nov 2019 15:24:58 -0500 Subject: [PATCH] =?UTF-8?q?v0.1.4=20-=20=E7=82=B9=E5=87=BB=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/main.js | 5 ++++- package.json | 2 +- src/main.ts | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/main.js b/dist/main.js index 3e5b16f..608540e 100644 --- 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 index bc1185f..9db6a74 100644 --- 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 index 22eacff..a543be9 100644 --- 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) => {