ansonlai / musescore-printer Goto Github PK
View Code? Open in Web Editor NEWPrint and download sheet music from Musescore. No downloads, just run a one-line console command on your browser.
License: MIT License
Print and download sheet music from Musescore. No downloads, just run a one-line console command on your browser.
License: MIT License
When I paste in the javascript code to the console, it does work but the printed sheet in very zoomed in I could not fix it.
The code currently just outputs a white screen with a link
The class name has changed to "2KmA"
Also I think it would be more efficient to include printing inside the code (optionally).
New code:
var temporary_el = document.createElement("DIV"); var sheets = document.getElementsByClassName("_2KmA_"); for (i = 0; i < sheets.length; i++) { sheets[i].alt = ""; console.log(sheets[i]); temporary_el.appendChild(sheets[i].cloneNode(true)); }; var html = document.getElementsByTagName("html")[0]; html.innerHTML = ''; document.getElementsByTagName("body")[0].remove(); html.appendChild(temporary_el); window.print();
For example, on https://musescore.com/user/19710/scores/58553 , it only loads the first page to print. I have made sure to load every page, but that does not seem to work. I am using Brave, which is derived from Chromium.
Seems like musescore.com de-loads the score pages that aren't being displayed.
My workaround was to zoom out (to the minimum of 25%) so that all my pages are in view. Haven't tested this for scores longer than 5 pages, where a 25% zoom might not be low enough.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.