v0.15.13
This commit is contained in:
parent
3aaf8cbd73
commit
d7e2a39775
3 changed files with 4 additions and 21 deletions
21
dist/main.js
vendored
21
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.15.12
|
// @version 0.15.13
|
||||||
// @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/*/*
|
||||||
|
@ -26536,23 +26536,6 @@ Please pipe the document into a Node stream.\
|
||||||
resolve(t);
|
resolve(t);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
const PACK_ID_REG = /\+(\{.*?"\})\[\w\]\+/;
|
|
||||||
const loadAllPacks = () => {
|
|
||||||
return webpackContext.then((ctx) => {
|
|
||||||
try {
|
|
||||||
const fn = ctx.e.toString();
|
|
||||||
const packsData = fn.match(PACK_ID_REG)[1];
|
|
||||||
// eslint-disable-next-line no-new-func, @typescript-eslint/no-implied-eval
|
|
||||||
const packs = Function(`return (${packsData})`)();
|
|
||||||
Object.keys(packs).forEach((id) => {
|
|
||||||
ctx.e(id);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
console.error(err);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
const OBF_FN_REG = /\w\(".{4}"\),(\w)=(\[".+?\]);\w=\1,\w=(\d+).+?\);var (\w=.+?,\w\})/;
|
const OBF_FN_REG = /\w\(".{4}"\),(\w)=(\[".+?\]);\w=\1,\w=(\d+).+?\);var (\w=.+?,\w\})/;
|
||||||
const OBFUSCATED_REG = /(\w)\((\d+),"(.{4})"\)/g;
|
const OBFUSCATED_REG = /(\w)\((\d+),"(.{4})"\)/g;
|
||||||
const getObfuscationCtx = (mod) => {
|
const getObfuscationCtx = (mod) => {
|
||||||
|
@ -26592,7 +26575,7 @@ Please pipe the document into a Node stream.\
|
||||||
*/
|
*/
|
||||||
const magicHookConstr = (type) => __awaiter(void 0, void 0, void 0, function* () {
|
const magicHookConstr = (type) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
// request pack
|
// request pack
|
||||||
yield loadAllPacks();
|
// await loadAllPacks()
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
onPackLoad((pack) => {
|
onPackLoad((pack) => {
|
||||||
Object.values(pack[1]).forEach((mod) => {
|
Object.values(pack[1]).forEach((mod) => {
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.15.12",
|
"version": "0.15.13",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.15.12",
|
"version": "0.15.13",
|
||||||
"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