Skip to content

Commit

Permalink
FIX MangaEffect : no more wpmangaprotector (#6699)
Browse files Browse the repository at this point in the history
Fixes #6698
  • Loading branch information
MikeZeDev authored Jan 23, 2024
1 parent 93f7054 commit cd6f10f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/web/mjs/connectors/MangaEffect.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,4 @@ export default class MangaEffect extends WordPressMadara {
_createMangaRequest(page) {
return new Request(new URL(`/manga/page/${page}/`, this.url), this.requestOptions);
}

async _getPages(chapter) {
const url = new URL(chapter.id, this.url);
const request = new Request(url, this.requestOptions);
const script = `
new Promise((resolve, reject) => {
setTimeout(() => {
var imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, wpmangaprotectornonce, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve(JSON.parse(imgdata));
},3000);
});
`;
const data = await Engine.Request.fetchUI(request, script);
return data.map(picture => this.createConnectorURI({url : picture, referer : url}));
}
}

0 comments on commit cd6f10f

Please sign in to comment.