This script enables downloading any sheet music from 8Notes as a PDF without the need for a paid subscription.
8Notes is an amazing community-supported repository of sheet music from various genres. Without a subscription, the user is limited to printing each page of the music one at a time by manually clicking through...and ain't nobody got time for that.
It is available as a JS bookmarklet or (eventually) a Chrome plugin.
To use this script from your browser's bookmarks:
- Copy the contents of
bookmarklet.js
to your clipboard - Create a new bookmark in your browser of choice
- Paste the bookmark code into the URL field of the new bookmark and name it something relevant (I suggest 8Notes Downloader, but I'm not your supervisor)
- Navigate to any page of sheet music in the 8Notes catalogue and click on your bookmark
- Within a few seconds you should be prompted to download the PDF of your song
The images are scraped manually from the sheet music page and converted into dataURLs by first drawing them to a element, then jsPDF is used under the hood to generate the document.
Dan's Javascript Minifier is used produce the minified bookmarklet.
These PDFs aren't quite as good as what you'd get from a paid subscription. This script compiles a PDF from the freely available images whereas the subscription PDF is an editable document, so I encourage everybody to support the service by subscribing if possible!
I've tested this out on the latest versions of Chrome, Firefox, and Safari as of October 2018. If something isn't working for you or you'd like to test this out on another browser, please get in touch or submit a PR.
Or if it is working for you, I'd also be happy to hear about that - I don't bite :)