v0.9.8 - #41
This commit is contained in:
parent
a302a1df24
commit
2fe7837775
2 changed files with 11 additions and 8 deletions
17
dist/main.js
vendored
17
dist/main.js
vendored
|
@ -3,7 +3,7 @@
|
||||||
// @namespace https://www.xmader.com/
|
// @namespace https://www.xmader.com/
|
||||||
// @homepageURL https://github.com/Xmader/musescore-downloader/
|
// @homepageURL https://github.com/Xmader/musescore-downloader/
|
||||||
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
// @supportURL https://github.com/Xmader/musescore-downloader/issues
|
||||||
// @version 0.9.7
|
// @version 0.9.8
|
||||||
// @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/*/*
|
||||||
|
@ -26647,14 +26647,17 @@ Please pipe the document into a Node stream.\
|
||||||
const txt = x.textContent;
|
const txt = x.textContent;
|
||||||
return txt.includes('Download') || txt.includes('Print');
|
return txt.includes('Download') || txt.includes('Print');
|
||||||
});
|
});
|
||||||
|
// Anti-detection:
|
||||||
|
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
||||||
|
// if detected "Download MSCZ"
|
||||||
|
const _property = 'textContent';
|
||||||
|
const _set = textNode['__lookupSetter__'](_property);
|
||||||
|
Object.defineProperty(textNode, _property, {
|
||||||
|
set(v) { _set.call(textNode, v); },
|
||||||
|
get() { return 'Download'; },
|
||||||
|
});
|
||||||
const setText = (str) => {
|
const setText = (str) => {
|
||||||
textNode.textContent = str;
|
textNode.textContent = str;
|
||||||
// Anti-detection:
|
|
||||||
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
|
||||||
// if detected "Download MSCZ"
|
|
||||||
Object.defineProperty(textNode, 'textContent', {
|
|
||||||
get() { return 'Download'; },
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
setText(options.name);
|
setText(options.name);
|
||||||
btn.onclick = () => {
|
btn.onclick = () => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.9.7",
|
"version": "0.9.8",
|
||||||
"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