Skip to content

Commit

Permalink
CrazyScans: bypass WP Manga Protector
Browse files Browse the repository at this point in the history
stol- borrowed the code from the MangaSY (a48270b) connector.
Thanks to @MikeZeDev for the help.
  • Loading branch information
TristanWasTaken committed Aug 14, 2023
1 parent 3fec0c8 commit 628eebe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/web/mjs/connectors/CrazyScans.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
}
}

0 comments on commit 628eebe

Please sign in to comment.