Skip to content

Commit

Permalink
Fix ShinigamiID: domain & break encryption
Browse files Browse the repository at this point in the history
custom WPmangaprotector, cute
  • Loading branch information
MikeZeDev authored Jan 9, 2024
1 parent e58ffa5 commit dc47ce3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/web/mjs/connectors/ReaperScansID.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@ export default class ReaperScansID extends WordPressMadara {
super.id = 'reaperscansid';
super.label = 'Shinigami ID';
this.tags = ['webtoon', 'indonesian', 'scanlation'];
this.url = 'https://shinigami.sh';
this.url = 'https://shinigamitoon.com';
this.queryChapters = 'div.chapter-link > a';
this.queryChaptersTitleBloat ='span.chapter-release-date';
this.queryPages = 'div.page-break source[data-src]';
this.links = {
login: 'https://shinigami.sh/#'
login: 'https://shinigamitoon.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) => {
const key = post_id + 'hJ1nA7qt0fMxGPfW3WlD5QuRy1HBTOnukhP9JE' + post_id + 'aBTSjD3cSKEJEKMI34mSxRUm98Xu4hXp71YTWJ5lUnP' + post_id;
const imgdata = JSON.parse(CryptoJS.AES.decrypt(chapter_data, key, {
format: CryptoJSAesJson
}).toString(CryptoJS.enc.Utf8));
resolve((imgdata));
});
`;
return await Engine.Request.fetchUI(request, script);
}
}

0 comments on commit dc47ce3

Please # to comment.