From 44a116ca6d949349d272851566e54bfd1d5db6c4 Mon Sep 17 00:00:00 2001 From: ikancupang <58947597+ikancupang@users.noreply.github.com> Date: Sat, 18 Apr 2020 00:11:20 +0700 Subject: [PATCH] Improve midiavip.com bypass (closes #1155) --- injection_script.js | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/injection_script.js b/injection_script.js index 7605db0..ef34837 100644 --- a/injection_script.js +++ b/injection_script.js @@ -1109,35 +1109,8 @@ ensureDomLoaded(()=>{ domainBypass(/bebasdownloadfilm\.com|dl\.(sharemydrive\.xyz|indexmovie\.biz)/,()=>ifElement("frame[src*='/iframe/top.php?']",f=>{ f.onload=()=>safelyNavigate(f.contentDocument.querySelector("p#skip a").href) })) - domainBypass("midvip.xyz",()=>ensureDomLoaded(()=>{ - if(typeof PathSet=="function") - { - PathSet() - } - })) - domainBypass("midiavip.com",()=>ifElement("a#link[disabled]",()=>{ - let u="/url2.php", - forms=document.querySelectorAll("form#formID") - const _post=(a,f)=>{ - fetch(u,{ - method:"POST", - headers:{"Content-Type":"application/x-www-form-urlencoded"}, - body:new URLSearchParams(new FormData(forms[a])).toString() - }).then(f) - } - document.querySelectorAll("input[name='urlopen']").forEach(i=>{ - i.value=location.origin+u - }) - _post(0,()=>_post(1,()=>_post(2,()=>{ - fetch(location.href).then(r=>r.text()).then(r=>{ - safelyNavigate(/&u=([^']+)/.exec(r)[1]) - }) - }))) - },()=>{ - let _open=window.open - window.open=u=>_open(u,"_self") - document.querySelector("a#link").onclick() - })) + domainBypass(/^((www\.)?(midvip\.xyz|midia\.vip))$/,()=>ifElement("button#makingdifferenttimer",b=>b.onclick())) + domainBypass("midiavip.com",()=>ifElement("button#blocklinkbtn",b=>safelyNavigate(b.dataset.blurl))) domainBypass("1ink.cc",()=>ifElement("a#countingbtn[href]",a=>safelyNavigate(a.href))) domainBypass("cuturl.cc",()=>{ if(typeof PushLink=="function")