Manga OnlineViewer

Shows all pages at once in online view for these sites: Alandal, Asura Scans, Batoto, BilibiliComics, ComiCastle, Comick, Dynasty-Scans, INKR, InManga, KLManga, Leitor, LHTranslation, Local Files, LynxScans, MangaBuddy, MangaDemon, MangaDex, MangaFox, MangaHere, Mangago, MangaHosted, MangaHub, MangasIn, MangaKakalot, MangaNelo, MangaNato, MangaOni, MangaPark, Mangareader, MangaSee, Manga4life, MangaTigre, MangaToons, MangaTown, ManhuaScan, ManhwaWeb, MangaGeko.com, MangaGeko.cc, NaniScans, NineM

< Feedback on Manga OnlineViewer

Question/comment

§
Posted: 22-12-2014

[Feature request] Option to automatically download zip file

As said in title. Currently we do not have an option to automatically download the generated zip file. It would be awesome to have the feature implemented :)

Currently I've been using something like ::
// Patched generateZip()
function generateZip() {
if (cache.downloadFiles != cache.Data.quant) {
setTimeout(generateZip, 2000);
console.log('Waiting for Files to Downlaod ' + cache.downloadFiles + ' of ' + cache.Data.quant);
} else {
var blobLink = document.getElementById('blob');
try {
blobLink.download = 'MangaOnlineViewer.zip';
blobLink.href = window.URL.createObjectURL(cache.zip.generate({
type: 'blob'
}));
console.log('Download Ready');
//New JS
var clickEvent = document.createEvent('MouseEvents');
var firstZipFile = document.getElementById('blob');
clickEvent.initEvent('click', true, true);
firstZipFile.dispatchEvent(clickEvent);
console.log('Autodownloaded download');

to implement (part of) the feature.

Thanks,
btw, the Manga OnlineViewer is an awesome script !!!

TagoAuthor
§
Posted: 23-12-2014

It's a simple tweak to add, done it.

Post reply

Sign in to post a reply.