v0.1.4 - 点击时不弹窗
This commit is contained in:
parent
adad7867b7
commit
71b85a16c0
3 changed files with 7 additions and 2 deletions
5
dist/main.js
vendored
5
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.1.3
|
// @version 0.1.4
|
||||||
// @description 免登录、免 Musescore Pro,下载 musescore.com 上的曲谱
|
// @description 免登录、免 Musescore Pro,下载 musescore.com 上的曲谱
|
||||||
// @author Xmader
|
// @author Xmader
|
||||||
// @match https://musescore.com/user/*/scores/*
|
// @match https://musescore.com/user/*/scores/*
|
||||||
|
@ -51,6 +51,9 @@
|
||||||
if (btn.nodeName.toLowerCase() == "button") {
|
if (btn.nodeName.toLowerCase() == "button") {
|
||||||
btn.setAttribute("style", "width: 205px !important");
|
btn.setAttribute("style", "width: 205px !important");
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
btn.dataset.target = "";
|
||||||
|
}
|
||||||
const span = [...btn.childNodes].find((x) => {
|
const span = [...btn.childNodes].find((x) => {
|
||||||
return x.textContent.includes("Download");
|
return x.textContent.includes("Download");
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "musescore-downloader",
|
"name": "musescore-downloader",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "免登录、免 Musescore Pro,下载 musescore.com 上的曲谱",
|
"description": "免登录、免 Musescore Pro,下载 musescore.com 上的曲谱",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -37,6 +37,8 @@ const newDownloadBtns = Object.keys(downloadURLs).map((name) => {
|
||||||
|
|
||||||
if (btn.nodeName.toLowerCase() == "button") {
|
if (btn.nodeName.toLowerCase() == "button") {
|
||||||
btn.setAttribute("style", "width: 205px !important")
|
btn.setAttribute("style", "width: 205px !important")
|
||||||
|
} else {
|
||||||
|
btn.dataset.target = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
const span = [...btn.childNodes].find((x) => {
|
const span = [...btn.childNodes].find((x) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue