musescore-downloader

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

commit 36e83b288691539d89cf4ba187ad3fb50bbf7dfe
parent 9d4a8fedb1212b5f0a0adadb374500f72c2a0c16
Author: Xmader <xmader@outlook.com>
Date:   Mon,  4 Nov 2019 01:32:16 -0500

v0.1.6 - 扩大脚本作用 URL 范围

Diffstat:
Mdist/main.js | 6++++--
Mpackage.json | 2+-
Mrollup.config.js | 1+
Msrc/meta.js | 2+-
4 files changed, 7 insertions(+), 4 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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