Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Requirements:
- Firefox
- *nix Terminal (I recommend Cygwin for Windows)
- Notepad++
- Optionally Total Commander for bulk renaming of files.
- 1. Open Firefox
- 2. Open the comicviewer on comixology/readdcentertainment for the comic you want in Firefox.
- 3. Clear your cache in Firefox, otherwise you'll have a bad time trying to find the comic pages you want.
- 4. Refresh the comicviewer page _once_!
- 5. Goto the adress "about:cache?device=memory" in Firefox
- 6. You should now see a bunch of URLs at the top on the about:cache page that start with something along the lines of https://fastreader.***etcetera***.
- 7. Right-click and save all of those files (One per comic-page), if you screw up, delete those files you downloaded and clear your cache again.
- Make sure you do not download the same file twice, firefox will _not_ prompt you about it.
- 8. Optionally rename the file to something easy to remember, ex. 001.hex, 002.hex, 003.hex, etc.
- 9. In Notepad++ make a new file, paste this:
- if [[ $# -eq 0 ]] ; then
- echo 'Run script as ./hexconv ext'
- exit 0
- fi
- for file in *.$1
- do
- filename=$(basename $file)
- extension="${filename##*.}"
- filename="${filename%.*}"
- sed -n '/00000000:/,$p' $file | sed '1s/^.....//' | head -n -3 | awk '{print $2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" "$10" "$11" "$12" "$13" "$14" "$15" "$16" "$17}' | xxd -p -r > $filename.jpg
- done
- 10. Go to Edit->EOL-Converting->Convert to UNIX
- 11. Save the file as hexconv (no extension) in the folder where all your unprocessed files are.
- 12. Open your terminal and navigate to where you saved your *.hex/*.whatever files.
- 13. Enter the command ./hexconv and what your files extensions is, like this: ./hexconv hex/txt/whatever (ex ./hexconv txt)
- 14. You now have a folder with *.jpg files, these are your comic-pages, but probably not in order.
- 15. Return to your comicviewer page and compare your converted comic-pages with the ones in the comicviewer, rename accordingly.
- 15b. If you want, you can just rename the files to the order you want, then use Total Commanders Bulk-renamer tool to add the name of the comic and the page-numbering.
- 16. After renaming the *.jpg files to your pleasure, add the files to a zip-archive and rename the extension to .cbr.
- 17. You're done! Good Luck!
Add Comment
Please, Sign In to add comment