[webtoons] Use swebtoon-phinf.pstatic.net instead of webtoon-phinf.pstatic.net #2005
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We'll be using this chapter as an example:
https://www.webtoons.com/en/thriller/school-bus-graveyard/episode-18/viewer?title_no=2705&episode_no=18
This neat trick actually comes from Webtoon's RSS feeds, where a
Referer header is unrealistic. Here's the RSS feed:
https://www.webtoons.com/en/thriller/school-bus-graveyard/rss?title_no=2705
They use URLs like this:
https://swebtoon-phinf.pstatic.net/20210929_12/1632867976494qzHhY_JPEG/16328679717202705189.jpg
The image links Webtoon's online client use URLs like this:
https://webtoon-phinf.pstatic.net/20210929_12/1632867976494qzHhY_JPEG/16328679717202705189.jpg?type=q90
Look familiar?
Yes, you only need to change the domain of your URL from
webtoon-phinf.pstatic.net to swebtoon-phinf.pstatic.net, a difference
of one character, to be able to embed Webtoon images anywhere. This
isn't limited to just the two images an RSS feed item has. Here's
another image from the same chapter much further down the page:
https://webtoon-phinf.pstatic.net/20210929_153/1632867980912DmcGK_JPEG/16328679808882705182.jpg?type=q90
https://swebtoon-phinf.pstatic.net/20210929_153/1632867980912DmcGK_JPEG/16328679808882705182.jpg?type=q90
With this, the doors have been blown open.
If this ever changes, previous behavior can be easily restored using
git revert
due to this patch's small size.