chenditc/safari-download

Replace next chapter hyperlink with relative path

Opened this issue · 6 comments

Currently, page downloaded is still using the original link for next page. Which means after reading, user needs to open next chapter from downloaded directory.

Ideally, before download, js script should change the hyperlink to a relative link points to next chapter or previous chapter.

Tested replacing html hyperlink with local file path, Chrome prohibit loading local file, hence this approach didn't work.

I was trying to do the same, any other idea(?)

I tried replace the html hyperlink with local file path and open using Word.. I am able to step through the chapters but each chapter is open as a new documents. As I don't know how to replace them using script. did it individually. Will be helpful if Di can help to automate the replacement

This is rather unfortunate. I wonder how difficult it would be to bundle this up into an electron app. I think that could potentially get over any chrome limitations. It would also provide a seamless user experience where you open one file, somewhat like a pdf.

@kenkangk Could you send me a file after your replacement? My chrome still don't allow me to open local file.

@mafischer Sounds like a valid approach, I haven't use electron before, let me take some time to learn it first.