Add `download all chapter` button to syosetu.com (you need login to download chapters )
< Feedback on 小説家になろう book downloader
try v2021.01.12
after trying HK TW SG USA ip to connect, but still failed on n0758fr.
but other novels successed, thank you very much.
________________
my friend put this before line 46, and it goes well.
img.setAttribute("crossOrigin",'Anonymous')
I was using firefox to test, now i can reproduce this issue with chrome.
image.crossOrigin
is default to anonymous
per mdn.
Seems chrome have more strict CORS policy than firefox, so it is ok on my side.
Set img.setAttribute("crossOrigin",'whatever')
just fail the image download request due to invalid value, and script fallback to use url link.
Image download for chrome fixed in v2021.01.15
want to download: https://novel18.syosetu.com/*/
add:
//@match *://novel18.syosetu.com/*
change:
async function downloadChapter(ncode, chapter) to novel18.syosetu.com
but it doesn't work. after pressing download all chapters, it stops at halfway 19/30.