From 28b6ff65b4cbb065b46859f0b4b3afbb5d4d8ffd Mon Sep 17 00:00:00 2001 From: Saksham Shekher <95137948+OshekharO@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:33:13 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/animepahe.ru.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/repo/animepahe.ru.js b/repo/animepahe.ru.js index 2355ead..1022f15 100644 --- a/repo/animepahe.ru.js +++ b/repo/animepahe.ru.js @@ -12,7 +12,7 @@ // ==/MiruExtension== export default class extends Extension { - async search(kw, page) { + async search(kw) { const res = await this.request(`/api?m=search&q=${kw}`); // console.log(res); return res.data.map((item) => ({ @@ -82,11 +82,11 @@ export default class extends Extension { } }) // console.log((/data-src="https:\/\/kwik.cx.+?"/g).exec(res)[parseInt(url_split[1])]); - console.log(res.match(/data-src="https:\/\/kwik.cx.+?"/g)) + // console.log(res.match(/data-src="https:\/\/kwik.cx.+?"/g)) const src_match = res.match(/data-src="https:\/\/kwik.cx.+?"/g)[parseInt(url_split[1])]; //480,720,1080 === [0],[1],[2] - console.log(src_match); + // console.log(src_match); const src = src_match.match(/data-src="(.+?)"/)[1]; - console.log(src); + // console.log(src); const hid_res = await this.request("",{ headers:{ "Miru-Url": src, @@ -96,7 +96,7 @@ export default class extends Extension { }) const hid_script = hid_res.match(/eval\(f.+?\}\)\)/g)[1]; const decode_script = eval(hid_script.match(/eval(.+)/)[1]); - //the obfuscated script look like eval(function(p,a,c,k,e,d){e=function(c){return(c