Skip to content

Instantly share code, notes, and snippets.

@J2TEAM
J2TEAM / webtoons.com.js
Last active July 15, 2018 13:35
webtoons to IDM
/* Developed by Juno_okyo */
/* Example URL: http://www.webtoons.com/en/fantasy/unordinary/episode-77/viewer?title_no=679&episode_no=83 */
let imgs = [];
Array.from(document.querySelectorAll('#_imageList > img')).map(img => {
imgs.push(img.src);
});
copy(imgs.join('\n'));
(function () {
fetch('/level/1', {
credentials: 'same-origin'
}).then(function (response) {
return response.text();
}).then(function (response) {
$('#password').val(response.match(/Password:\s+([\d\-]+)/)[1]);
});
})();