v0.14.1
This commit is contained in:
parent
44774347a8
commit
3074ebb754
3 changed files with 6 additions and 8 deletions
10
dist/main.js
vendored
10
dist/main.js
vendored
|
@ -5,7 +5,7 @@
|
||||||
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
||||||
// @updateURL https://msdl.librescore.org/install.user.js
|
// @updateURL https://msdl.librescore.org/install.user.js
|
||||||
// @downloadURL https://msdl.librescore.org/install.user.js
|
// @downloadURL https://msdl.librescore.org/install.user.js
|
||||||
// @version 0.14.0
|
// @version 0.14.1
|
||||||
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
|
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
|
||||||
// @author Xmader
|
// @author Xmader
|
||||||
// @match https://musescore.com/*/*
|
// @match https://musescore.com/*/*
|
||||||
|
@ -26532,12 +26532,13 @@ Please pipe the document into a Node stream.\
|
||||||
|
|
||||||
/* eslint-disable no-extend-native */
|
/* eslint-disable no-extend-native */
|
||||||
const FILE_URL_MODULE_ID = 'iNJA';
|
const FILE_URL_MODULE_ID = 'iNJA';
|
||||||
const AUTH_MODULE_ID = 'FNf8';
|
const AUTH_MODULE_ID = 'F08J';
|
||||||
const MAGIC_ARG_INDEX = 3;
|
const MAGIC_ARG_INDEX = 3;
|
||||||
/**
|
/**
|
||||||
* I know this is super hacky.
|
* I know this is super hacky.
|
||||||
*/
|
*/
|
||||||
let magic = new Promise((resolve) => {
|
let magic = new Promise((resolve) => {
|
||||||
|
// todo: hook module by what it does, not what it is called
|
||||||
webpackGlobalOverride(AUTH_MODULE_ID, (_, r, t) => {
|
webpackGlobalOverride(AUTH_MODULE_ID, (_, r, t) => {
|
||||||
const fn = r.a;
|
const fn = r.a;
|
||||||
t.d(r, 'a', () => {
|
t.d(r, 'a', () => {
|
||||||
|
@ -26772,10 +26773,7 @@ Please pipe the document into a Node stream.\
|
||||||
}
|
}
|
||||||
add(options) {
|
add(options) {
|
||||||
const btn = this.getTemplateBtn().cloneNode(true);
|
const btn = this.getTemplateBtn().cloneNode(true);
|
||||||
const textNode = [...btn.childNodes].find((x) => {
|
const textNode = [...btn.children].find(x => x.nodeName === 'SPAN');
|
||||||
const txt = x.textContent;
|
|
||||||
return txt.includes('Download') || txt.includes('Print');
|
|
||||||
});
|
|
||||||
const setText = (str) => {
|
const setText = (str) => {
|
||||||
textNode.textContent = str;
|
textNode.textContent = str;
|
||||||
};
|
};
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.14.0",
|
"version": "0.14.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.14.0",
|
"version": "0.14.1",
|
||||||
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
|
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue