Adds buttons to download to Royal Road chapters
These are versions of this script where the code was updated. Show all versions.
Added icon
Fixed "Previous Chapter" button
Client seemed to not be detecting previous version
Fixed name
Downloading in the chapter page now gets the content from the current page instead of fetching it. Done in case the user wants to get the chapters current state instead of the updated one, or in case the chapter has been deleted. Due to the risk of deletion, the file naming code now checks if the index exists.
Adds link to original chapter in header
The fiction page is no longer fetched again to fill the select inputs and the current page is used instead. The chapter list is now also being checked to prevent the previous change from causing errors.
Better spoiler elements, and more careful whitespace removal
Updated code description, and added regex to remove whitespace from chapters
You can now select which chapters to download in the fiction page, and download a single chapter in the chapter page
Changed description slightly
Button now disables on click to better prevent multiple downloads, and has a better looking progress bar.
Cleaned up the code, added more comments, added a check for the "Slow down!" page, and made it work better in mobile.
Script is public now
Added description
Slight cleanup
Added previous/next buttons, fixed header links, zip is now compressed
Added replacement for spoilers
Added styling to outputed files + some cleanup