From 36e83b288691539d89cf4ba187ad3fb50bbf7dfe Mon Sep 17 00:00:00 2001 From: Xmader Date: Mon, 4 Nov 2019 01:32:16 -0500 Subject: [PATCH] =?UTF-8?q?v0.1.6=20-=20=E6=89=A9=E5=A4=A7=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BD=9C=E7=94=A8=20URL=20=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/main.js | 6 ++++-- package.json | 2 +- rollup.config.js | 1 + src/meta.js | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/main.js b/dist/main.js index ef84887..3973ec1 100644 --- a/dist/main.js +++ b/dist/main.js @@ -3,10 +3,10 @@ // @namespace https://www.xmader.com/ // @homepageURL https://github.com/Xmader/musescore-downloader/ // @supportURL https://github.com/Xmader/musescore-downloader/issues -// @version 0.1.5 +// @version 0.1.6 // @description 免登录、免 Musescore Pro,下载 musescore.com 上的曲谱 // @author Xmader -// @match https://musescore.com/*/scores/* +// @match https://musescore.com/*/* // @license MIT // @copyright Copyright (c) 2019 Xmader // @grant none @@ -15,6 +15,8 @@ (function () { 'use strict'; + if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return } + const getIndexPath = (id) => { const idStr = String(id); // 获取最后三位,倒序排列 diff --git a/package.json b/package.json index 467ec9a..d3b4a10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musescore-downloader", - "version": "0.1.5", + "version": "0.1.6", "description": "免登录、免 Musescore Pro,下载 musescore.com 上的曲谱", "main": "dist/main.js", "repository": { diff --git a/rollup.config.js b/rollup.config.js index 0051e95..81e78fd 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -16,6 +16,7 @@ export default { format: "iife", sourcemap: false, banner: getBannerText, + intro: "if (!window.UGAPP || !window.UGAPP.store || !window.UGAPP.store.jmuse_settings) { return }" }, plugins: [ typescript({ diff --git a/src/meta.js b/src/meta.js index 4712660..92c6dc4 100644 --- a/src/meta.js +++ b/src/meta.js @@ -6,7 +6,7 @@ // @version %VERSION% // @description 免登录、免 Musescore Pro,下载 musescore.com 上的曲谱 // @author Xmader -// @match https://musescore.com/*/scores/* +// @match https://musescore.com/*/* // @license MIT // @copyright Copyright (c) 2019 Xmader // @grant none