Xmader / musescore-downloader

⚠️ This repo has moved to https://github.com/LibreScore/dl-librescore ⚠️ | Download sheet music (MSCZ, PDF, MusicXML, MIDI, MP3, download individual parts as PDF) from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱

Home Page:https://github.com/LibreScore/dl-librescore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download Button Not Showing

psycho-neon opened this issue · comments

Just want to report that download buttons are not showing anymore due to obfuscated HTML tags used by musescore.

Obfuscated Tags:
https://prnt.sc/vsvv0a

Console Error:
https://prnt.sc/vsvvta

Quick Workaround, since I do not have time yet to investigate and make a pull request.

What I did is to embed the buttons on the navigation section instead on the download section. Not as good as it looks, but better than nothing.

    const getBtnContainer = () => {
        const containers = [...document.querySelectorAll('header')];
        const btnParent = containers.find(c => {
            return c;
        });
        if (!btnParent)
            throw new Error('btn parent not found');
        return btnParent;
    };

Preview:
https://prnt.sc/vswi08

Suggestion:
To make the buttons attached to the body instead, probably below the header.