Skip to content

Commit

Permalink
MangaSY : defeat WP Manga Protector (#5611)
Browse files Browse the repository at this point in the history
* MangaSY : defeat WP Manga Protector

Fixes #5609

* Update MangaSY.mjs
  • Loading branch information
MikeZeDev authored Mar 25, 2023
1 parent 11bcc28 commit 772101a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/web/mjs/connectors/MangaSY.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@ export default class MangaSY extends WordPressMadara {

this.queryTitleForURI = 'meta[property="og:title"]';
}
}

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));
});
`;
return await Engine.Request.fetchUI(request, script);
}
}

0 comments on commit 772101a

Please sign in to comment.