Created
July 15, 2023 15:36
-
-
Save ivellios/af5f5d6f75a5f3359cc91628855d4a1d to your computer and use it in GitHub Desktop.
D&D Beyond to PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is the Bookmarklet for printing D&D Beyond materials pages to PDF files, so you can read them whenever you want. | |
* It can be useful when you are reading books on your ebook reader. | |
* The exported PDFs will be presented in a two-column layout with all extra page elements removed. | |
* | |
* Remember not to share the books content with anyone. | |
* | |
* USE INSTRUCTIONS | |
* 1. Copy the code line below | |
* 2. Create a new bookmark in your browser and name it whatever you want | |
* 3. Under the address, paste the code line | |
* 4. Go to any chapter of the book in D&D Beyond you want to print | |
* 5. Click the bookmark | |
* 6. Check the preview of the print and adjust it if you need (5mm margins worked best for me on A4 paper) | |
* 7. Print to PDF file | |
* 8. Enjoy! | |
*/ | |
javascript:jQuery(".ddb-site-banner, .site-bar, header.main, #mega-menu-target, .ad-container, header.page-header, .secondary-content, .p-article-header, #footer").attr("style", "display: none");jQuery(".primary-content").attr("style", "column-count: 2");jQuery("body").attr("style", "background: none!important");window.print(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment