safari-download icon indicating copy to clipboard operation
safari-download copied to clipboard

Replace next chapter hyperlink with relative path

Open chenditc opened this issue 8 years ago • 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.

chenditc avatar Dec 03 '16 14:12 chenditc

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

chenditc avatar Jan 18 '17 07:01 chenditc

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

federico22285 avatar Apr 19 '18 22:04 federico22285

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

kenkangk avatar Aug 21 '18 09:08 kenkangk

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.

mafischer avatar Aug 23 '18 05:08 mafischer

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

chenditc avatar Aug 25 '18 02:08 chenditc

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

chenditc avatar Aug 25 '18 02:08 chenditc