diff --git a/src/web/mjs/connectors/CrazyScans.mjs b/src/web/mjs/connectors/CrazyScans.mjs index d767b1c256b..2ace2509e79 100644 --- a/src/web/mjs/connectors/CrazyScans.mjs +++ b/src/web/mjs/connectors/CrazyScans.mjs @@ -9,4 +9,19 @@ export default class CrazyScans extends WordPressMadara { this.tags = [ 'webtoon', 'english' ]; this.url = 'https://mangacultivator.com'; } + + async _getPages(chapter) { + const url = new URL(chapter.id, this.url); + const request = new Request(url, this.requestOptions); + const script = ` + new Promise((resolve, reject) => { + var imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, wpmangaprotectornonce, { + format: CryptoJSAesJson + }).toString(CryptoJS.enc.Utf8)); + resolve(JSON.parse(imgdata)); + }); + `; + const data = await Engine.Request.fetchUI(request, script); + return data.map(picture => this.createConnectorURI({url : picture, referer : url})); + } } \ No newline at end of file