Improve midiavip.com bypass (closes #1155)

This commit is contained in:
ikancupang 2020-04-18 00:11:20 +07:00 committed by GitHub
parent c17d24f530
commit 44a116ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")