Greasy Fork is available in English.

小説家になろう book downloader

Add `download all chapter` button to syosetu.com (you need login to download chapters )

< 脚本小説家になろう book downloader的反馈

提问/评论

§
发表于:2021-01-12

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.

NateScarlet作者
§
发表于:2021-01-12

try v2021.01.12

§
发表于:2021-01-12

try v2021.01.12

thanks for updating
but it stops halfway again...

NateScarlet作者
§
发表于:2021-01-12

it's ok on my side

maybe network issue to download images in あらすじファンアート漫画

§
发表于:2021-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')

NateScarlet作者
§
发表于:2021-01-14

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.

NateScarlet作者
§
发表于:2021-01-14

Image download for chrome fixed in v2021.01.15

发表回复

登录以发表回复。