A small javascript widget makes it possible to make an .epub ebook print of a complete forum topic, including all images embedded. It should work in modern browsers and it provides several options, such as an option to select the pages to print (e.g. only page 3,4,5 of a topic).
To print a topic into an ebook, you can copy and paste the following javascript code into the browser console (F12).
(function(b,c,a,d){
a=b.createElement("script");a.async=1;a.src="https://psyreporter.com/epub/epub.js";b.head.appendChild(a);d=setInterval(function(){window.epubExport&&(clearInterval(d),c&&window.epubExport(c),console.info("ebook epub export widget ready",window.epubExport))},10)
})(document,{
/* options object */
});
{
"cover": "https://onlinephilosophyclub.com/forums/download/file.php?avatar=39661_1389361593.jpg",
"pages": [14,15,16],
"title": "A selection of forum posts to read..."
}
Options:
- pages: array An array of page indexes to export into the book, e.g. [4,5,6] for pages 4 to 6.
- cover: string Book cover image URL, e.g. "http://abc.com/book-cover.jpg"
- title: string
Title of the book - author: string | string[] (optional, default ['anonymous'])
Name of the author for the book, e.g. "Alice" or ["Alice", "Bob"] - publisher: string (optional, default anonymous)
Publisher name - description: string (optional)
Book description - proxy: string A CORS proxy to enable remote images to be included in the book.
- css: string (optional)
CSS string, to include in book, e.g: "body{background: #000}"
Download ebook: https://psyreporter.com/epub/on-the-abs ... ience.epub
Hopefully it is beneficial for someone. Happy reading!