Universal-Bypass/content_script.js

603 lines
16 KiB
JavaScript
Raw Normal View History

2018-05-28 01:40:02 +02:00
let d=document;
if(d instanceof HTMLDocument)
2018-03-24 19:30:18 +01:00
{
2018-05-28 01:40:02 +02:00
let c=()=>{
2018-05-28 06:32:24 +02:00
let ODP=Object.defineProperty,n=(t)=>{if(t&&t!=location.href){window.onbeforeunload=null;location.href=t}},
2018-05-28 18:27:15 +02:00
bp=!1,db=(d,b)=>{if(!bp&&(location.hostname==d||location.hostname.substr(location.hostname.length-(d.length+1))=="."+d)){b();bp=!0}},hb=(h,b)=>{if(!bp&&h.test(location.href)){b();bp=!0}}
2018-05-28 01:40:02 +02:00
ODP(this,"ysmm",//Adf.ly
2018-03-26 10:37:43 +02:00
{
2018-05-28 01:40:02 +02:00
set:(r)=>{
let I=X="";
for(let m=0;m<r.length;m++)
if(m%2==0)I+=r.charAt(m);else X=r.charAt(m)+X
r=I+X
let U=r.split("")
for(m=0;m<U.length;m++)if(!isNaN(U[m]))for(let R=m+1;R<U.length;R++)
if(!isNaN(U[R])){let S=U[m]^U[R];if(S<10)U[m]=S;m=R;R=U.length}
r=U.join("")
r=atob(r)
r=r.substring(r.length-(r.length-16))
r=r.substring(0,r.length-16)
2018-05-28 06:32:24 +02:00
if(r&&(r.indexOf("http://")==0||r.indexOf("https://")==0))
n(r)
2018-03-26 10:37:43 +02:00
}
2018-05-28 06:32:24 +02:00
})
2018-06-06 05:55:27 +02:00
//LinkBucks
var actualInitLbjs;
ODP(this,"initLbjs",{
set:(_)=>actualInitLbjs=_,
get:()=>(a,p)=>{
2018-06-08 01:36:45 +02:00
p.Countdown--
2018-06-06 05:55:27 +02:00
actualInitLbjs(a,p)
}
})
2018-06-01 18:45:23 +02:00
//Safelink
let actual_safelink=forced_safelink={counter:0}
ODP(this,"safelink",
{
set:(_)=>{
ODP(window,"blurred",{
value:!1,
writable:!1
})
for(let k in _)
{
let v=_[k]
if(forced_safelink[k]===undefined)
actual_safelink[k]=v
}
},
get:()=>actual_safelink
})
for(let key in forced_safelink)
{
ODP(safelink,key,
{
writable:!1,
value:forced_safelink[key]
})
}
2018-05-28 01:40:02 +02:00
hb(/ur\.ly|urly\.mobi/,()=>{
if(location.pathname.length>2&&location.pathname.substr(0,6)!="/goii/")
n("/goii/"+location.pathname.substr(2)+"?ref="+location.hostname+location.pathname)
})
db("cshort.org",()=>{
ODP(this,"adblock",{
value:!1,
writable:!1
})
ODP(this,"i",{
value:0,
writable:!1
})
document.addEventListener("DOMContentLoaded",()=>
2018-03-26 10:37:43 +02:00
{
2018-05-28 01:40:02 +02:00
let lT=setInterval(()=>
{
if(document.querySelector(".next[href]"))
{
clearInterval(lT)
n(atob(atob(document.querySelector(".next[href]").getAttribute("href"))))
}
},100)
})
})
db("link.tl",()=>{
ODP(this,"countdown",{
value:0,
writable:!1
})
2018-05-30 19:44:25 +02:00
let lT=setInterval(()=>
{
if(document.querySelector(".skip > .btn"))
document.querySelector(".skip > .btn").click()
},100);
2018-05-28 01:40:02 +02:00
})
db("lucariomods.club",()=>{
let m=document.createElement("meta")
m.setAttribute("http-equiv","Content-Security-Policy")
m.setAttribute("content","upgrade-insecure-requests")
let hT=setInterval(function()
{
if(document.head)
{
clearInterval(hT)
document.head.appendChild(m)
}
},10)
document.addEventListener("DOMContentLoaded",()=>{
this.open=n
jQuery.prototype.click=(f)=>f({"preventDefault":()=>{}})
})
})
db("dl.ccbluex.net",()=>{
var s=location.search.replace("?","")
if(s.substr(0,7)=="target=")
n("http://dl.ccbluex.net/download/index.php?file="+s.substr(7))
})
2018-05-29 19:11:25 +02:00
db("onepiece-ex.com.br",()=>{
ODP(this,"seconds",{
value:1,
writable:!1
})
let lT=setInterval(()=>{
if(document.getElementById("continuar"))
{
2018-05-30 19:44:25 +02:00
clearInterval(lT)
2018-05-29 19:11:25 +02:00
n(document.getElementById("continuar").href)
}
},100)
})
2018-05-30 19:44:25 +02:00
db("akoam.net",()=>{
ODP(this,"timer",{
value:0,
writable:!1
})
let lT=setInterval(()=>{
if(document.querySelector(".download_button"))
{
clearInterval(lT)
n(document.querySelector(".download_button").href)
}
},100)
})
hb(/1v\.to\/t\/.*/,()=>{
location.pathname=location.pathname.split("/t/").join("/saliendo/")
})
2018-06-01 18:45:23 +02:00
db("share-online.biz",()=>{
ODP(this,"wait",{
value:2,
writable:!1
})
})
2018-06-06 05:55:27 +02:00
db("sfile.mobi",()=>{
ODP(this,"downloadButton",{
set:function(b)
{
if(b&&b.href)
n(b.href)
}
})
})
db("mylink.zone",()=>{
ODP(this,"seconde",{
value:-1,
writable:!1
})
})
2018-06-11 06:43:52 +02:00
db("sourceforge.net",()=>{
var b=document.createElement("button"),d=false
b.className="direct-download"
b.style.display="none"
document.documentElement.appendChild(b)
ODP(this,"log",{
value:(m)=>{
console.log(m)
if(m=="triggering downloader:start")
d=true
},
writable:!1
})
document.addEventListener("DOMContentLoaded",()=>{
let bT=setInterval(()=>{
if(d)
{
clearInterval(bT)
location.href="about:blank"
}
else b.click()
},100)
})
})
2018-05-28 08:47:14 +02:00
if(!bp)
document.addEventListener("DOMContentLoaded",()=>{
db("adfoc.us",()=>{
let b=document.querySelector(".skip")
if(b&&b.href)
n(b.href)
})
db("linkshrink.net",()=>{
let p=document.getElementById("pause"),s=document.getElementById("skip")
if(p)
p.style.display="none"
if(s)
s.style.display="block"
})
2018-05-29 19:11:25 +02:00
db("sub2unlock.com",()=>{
$(document).ready(()=>{
let steps=document.querySelectorAll(".uk.unlock-step-link.check")
if(steps.length)
{
for(let i in steps)
if(i!=0&&steps[i] instanceof HTMLElement&&steps[i].className.substr(0,3)=="uk ")
steps[i].className = steps[i].className.substr(3)
steps[0].removeAttribute("target")
steps[0].setAttribute("href","#")
steps[0].click()
document.getElementById("link").click()
}
})
})
2018-05-28 08:47:14 +02:00
db("srt.am",()=>{
if(document.querySelector(".skip-container"))
2018-05-28 01:40:02 +02:00
{
2018-05-28 08:47:14 +02:00
let f=document.createElement("form")
f.method="POST"
f.innerHTML='<input type="hidden" name="_image" value="Continue">'
f=document.body.appendChild(f)
f.submit()
}
})
db("cpmlink.net",()=>{
let b=document.getElementById("btn-main")
if(b&&b.href)
n(b.href)
})
db("admy.link",()=>{
let f=document.querySelector(".edit_link")
if(f)
f.submit()
})
db("ysear.ch",()=>{
let b=document.getElementById("NextVideo")
if(b&&b.href)
n(b.href)
})
2018-06-06 05:55:27 +02:00
db("1ink.cc",()=>{
if(typeof SkipAd=="function")
SkipAd()
})
2018-05-29 19:11:25 +02:00
db("v1.94lauin.com",()=>{
jQuery.prototype._attr=jQuery.prototype.attr
jQuery.prototype.attr=function(a,v)
{
if(!v&&this.selector==".count-timer"&&a=="data-timer")
return 1
return this._attr(a,v)
}
let lT=setInterval(()=>
{
if(document.querySelector(".link-content > a")&&document.querySelector(".link-content > a").getAttribute("href")!="#")
2018-05-28 01:40:02 +02:00
{
2018-05-29 19:11:25 +02:00
clearInterval(lT)
n(document.querySelector(".link-content > a").href)
}
},100)
})
db("losstor.com",()=>{
let b=document.getElementById("re_link")
if(b)
{
window.open=n
b.click()
}
})
db("bagisoft.net",()=>{
let b=document.getElementById("makingdifferenttimer")
if(b)
{
window.open=n
b.click()
}
else
2018-06-07 04:11:12 +02:00
jQuery.prototype.animateProgress=(p,f)=>f()
2018-05-28 08:47:14 +02:00
})
2018-05-29 19:11:25 +02:00
db("skinnycat.net",()=>{
let b=document.getElementById("dl")
if(b&&b.href)
n(b.href)
})
hb(/elsfile\.org|elsfile\.net/,()=>{
2018-05-28 08:47:14 +02:00
if(document.getElementById("pay_modes"))
{
let form = document.createElement("form");
form.method = "POST";
form.innerHTML = '<input type="hidden" name="op" value="download1"><input type="hidden" name="usr_login" value="C"><input type="hidden" name="id" value="'+location.pathname.toString().substr(1)+'"><input type="hidden" name="fname" value="'+document.querySelectorAll("div#container > div > div > table > tbody > tr > td")[2].textContent+'"><input type="hidden" name="referer" value="q"><input type="hidden" name="method_free" value="Free Download">';
form = document.body.appendChild(form);
form.submit();
}
else if(document.getElementById("btn_download"))
{
document.getElementById("btn_download").click();
}
})
db("fshare.vn",()=>{
2018-05-30 19:44:25 +02:00
if("$" in window)
{
let f=$("#form-download")
if(f.length)
{
$.ajax({
"url":f.attr("action"),
"type":"POST",
"data":f.serialize()
}).done((data)=>n(data.url))
}
}
})
db("extmatrix.com",()=>{
let b=document.getElementById("dlbutton")
if(b&&b.hasAttribute("disabled"))
2018-05-28 08:47:14 +02:00
{
2018-05-30 19:44:25 +02:00
b.removeAttribute("disabled")
b.click()
2018-05-28 08:47:14 +02:00
}
})
2018-05-30 19:44:25 +02:00
db("dwindly.io",()=>{
let b=document.getElementById("btd1")
if(b)
{
window.open=()=>{}
b.click()
}
else
{
b=document.getElementById("btd")
if(b)
{
window.open=n
eval("("+b.onclick.toString().split(";")[0]+"})()")
}
}
})
db("vpsat.net",()=>{
n(url)
})
2018-06-06 05:55:27 +02:00
db("bluemediafiles.com",()=>{
if(typeof FinishMessage=="string"&&FinishMessage.indexOf("<a href=")>-1)
{
document.write(FinishMessage)
document.querySelector("a").click()
}
})
2018-06-07 04:11:12 +02:00
db("complete2unlock.com",()=>{
let jT=setInterval(()=>{
if(typeof $=="function")
{
clearInterval(jT)
$(document).ready(()=>setTimeout(()=>{
window.open=(h)=>{return{location:{href:h}}}
window.setTimeout=(f)=>f()
let bs=document.querySelectorAll("[data-main-url]")
for(let i in bs)
{
let b=bs[i]
if(b instanceof HTMLElement)
b.click()
}
},100))
}
},100)
})
2018-06-09 21:06:12 +02:00
db("hidelink.club",()=>{
if(hash)
n(decodeURIComponent(atob(hash)).replace("%23", "#"))
})
2018-05-28 08:47:14 +02:00
if(bp)
return
2018-06-01 18:45:23 +02:00
//GemPixel Premium URL Shortener
if(typeof appurl!="undefined"&&typeof token!="undefined")
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let scripts=document.getElementsByTagName("script")
for(let i in scripts)
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let script=scripts[i];
if(script instanceof HTMLScriptElement)
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let cont=script.textContent
if(cont.indexOf('clearInterval(countdown);')>-1)
2018-05-28 06:32:24 +02:00
{
2018-06-01 18:45:23 +02:00
if(typeof countdown!="undefined")
clearInterval(countdown)
if(!document.querySelector("a.redirect"))
{
let a=document.createElement("a")
a.href="#"
a.className="redirect"
document.body.appendChild(a)
}
if(cont.indexOf("var count = ")>-1)
{
cont = cont.split(/var count = [0-9]*;/).join("let count=0;")
}
else
{
cont = "let count=0;" + cont
}
cont = cont.split("$(window).on('load', ").join("let r=(f)=>f();r(");
let sI=setInterval
this.setInterval=(f)=>f()
eval(cont)
this.setInterval=sI
n(document.querySelector("a.redirect").href)
return
2018-05-28 06:32:24 +02:00
}
2018-05-28 01:40:02 +02:00
}
}
2018-06-01 18:45:23 +02:00
//Ally Captcha
if(document.getElementById("messa")&&document.getElementById("html_element"))
{
document.getElementById("messa").className+=" hidden"
document.getElementById("html_element").className=document.getElementById("html_element").className.split("hidden").join("").trim();
}
2018-05-28 01:40:02 +02:00
}
2018-06-01 18:45:23 +02:00
//Soralink Plugin
if(document.querySelector(".sorasubmit"))
2018-05-29 19:11:25 +02:00
{
2018-06-01 18:45:23 +02:00
document.querySelector(".sorasubmit").click()
2018-05-29 19:11:25 +02:00
return
}
2018-06-01 18:45:23 +02:00
let rCL=()=>((document.querySelectorAll("img#pleasewait").length&&document.querySelector(".wait"))||document.getElementById("showlink")||document.getElementById("download")||document.getElementsByTagName("style='margin-top:").length)
if(typeof changeLink=="function")
{
2018-06-09 21:06:12 +02:00
if(rCL())
2018-05-29 19:11:25 +02:00
{
this.open=n
changeLink()
2018-06-01 18:45:23 +02:00
return
2018-05-29 19:11:25 +02:00
}
2018-06-01 18:45:23 +02:00
let cLT=setInterval(()=>{
if(rCL())
{
clearInterval(cLT);
this.open=n
changeLink()
}
},100)
}
if(document.querySelector("#lanjut > #goes"))
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let b=document.querySelector("#lanjut > #goes");
if(b&&b.href)
n(b.href)
}
if(document.getElementById("waktu")&&document.getElementById("goto"))
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
n(document.getElementById("goto").href)
2018-05-28 01:40:02 +02:00
}
2018-06-06 05:55:27 +02:00
//Other Templates
if(document.querySelector("form#skip")&&document.getElementById("btn-main")&&!document.querySelector(".g-recaptcha"))
document.querySelector("form#skip").submit()
2018-06-07 04:11:12 +02:00
if(document.getElementById("countdown")&&document.querySelector(".seconds"))
document.querySelector(".seconds").textContent="0"
2018-06-01 18:45:23 +02:00
//Shorte.st
if(typeof app!="undefined"&&"options"in app&&"intermediate"in app.options)
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
app.options.intermediate.timeToWait=3
let b=document.getElementById(app.options.intermediate.skipButtonId),
lT=setInterval(()=>
{
if(b.className.indexOf("show")>-1)
{
clearInterval(lT)
n(app.options.intermediate.destinationUrl)
}
},100)
2018-05-28 01:40:02 +02:00
return
}
2018-06-01 18:45:23 +02:00
//GetsURL.com
if(document.querySelector(".img-responsive[alt='Gets URL']")&&typeof x!="undefined")
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let b=document.getElementById("link")
if(b)
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
n(b.href+"&ab"+x)
2018-05-28 01:40:02 +02:00
return
}
}
2018-06-01 18:45:23 +02:00
//Linkvertise.net
if(document.querySelector(".logo > a[href='http://linkvertise.net'] > img[src='/assets/img/linkvertise.png']"))
2018-05-28 01:40:02 +02:00
{
2018-06-01 18:45:23 +02:00
let b=document.querySelector("[data-download]")
if(b)
{
n(b.getAttribute("data-download"))
return
}
2018-05-28 01:40:02 +02:00
}
2018-06-01 18:45:23 +02:00
//OpenLoad
if(document.querySelectorAll("img[src='/assets/img/logo.png'][alt='Openload']").length)
{
secondsdl=0
return
}
2018-06-13 07:08:21 +02:00
//SafelinkU
if(document.querySelector("b[style='color: #3e66b3']")&&document.querySelector("b[style='color: #3e66b3']").textContent=="SafelinkU")
{
let _sI=setInterval
setInterval=(f)=>_sI(f,10)
let lT=_sI(()=>{
if(document.querySelector("a.btn.btn-primary.btn-lg.get-link[href]")&&document.querySelector("a.btn.btn-primary.btn-lg.get-link[href]").getAttribute("href").substr(0,11)!="javascript:")
{
clearInterval(lT)
n(document.querySelector("a.btn.btn-primary.btn-lg.get-link[href]").href)
}
},100)
return
}
else if(document.querySelector("b[style='color : #3e66b3']")&&document.querySelector("b[style='color: #3e66b3']").textContent=="Shortener url?")
{
document.querySelector("button.btn.btn-success[type='submit']").click()
return
}
2018-06-01 18:45:23 +02:00
//KuroSafe
if(document.querySelector("a#mybutton.btn.btn-md.btn-primary[href^='https://www.kurosafe.online/']")||document.querySelector("a#mybutton.btn.btn-md.btn-primary[href^='https://kurosafe.online/']"))
{
n(document.getElementById("mybutton").href)
return
}
//SafeLinkReview.com
if(document.querySelector(".navbar-brand")&&document.querySelector(".navbar-brand").textContent.trim()=="Safe Link Review"&&document.querySelector(".button.green"))
{
this.open=n
document.querySelector(".button.green").click()
return
}
if(location.hostname=="decrypt2.safelinkconverter.com"&&document.querySelector(".redirect_url a"))
{
this.open=n
document.querySelector(".redirect_url a").click();
return
}
let t=document.querySelector("title")
if(t)
{
//Viid.su
if(t.textContent.trim()=="Viid.su")
{
let b=document.getElementById("link-success-button")
if(b&&b.getAttribute("data-url"))
{
n(b.getAttribute("data-url"))
return
}
}
}
setInterval(()=>{
//Shorte.st Embed
if(document.querySelectorAll(".lay-sh.active-sh").length)
{
let elm=document.querySelectorAll(".lay-sh.active-sh")[0]
elm.parentNode.removeChild(elm)
}
},500);
})
2018-05-28 01:40:02 +02:00
},//
i=(t)=>{
s=d.createElement("script")
s.innerHTML=t
s=d.documentElement.appendChild(s)
setTimeout(()=>{d.documentElement.removeChild(s)},10)
2018-03-31 21:38:23 +02:00
}
2018-05-28 01:40:02 +02:00
i("("+c+")()")
chrome.storage.local.get(["custom_bypasses"],(result)=>
2018-03-25 00:48:31 +01:00
{
2018-05-28 18:27:15 +02:00
let evalResult=(result)=>{
if(result.custom_bypasses)
2018-03-26 10:37:43 +02:00
{
2018-05-28 18:27:15 +02:00
let cB=JSON.parse(result.custom_bypasses)
for(let n in cB)
{
let b=cB[n],cs=b.content
if(b.domains=="*")
i(cs)
2018-05-28 01:40:02 +02:00
else
2018-03-26 13:12:41 +02:00
{
2018-05-28 01:40:02 +02:00
let ds=b.domains.split(",")
2018-05-28 18:27:15 +02:00
for(let di in ds)
2018-05-28 01:40:02 +02:00
{
2018-05-28 18:27:15 +02:00
let d=ds[di];
if(location.hostname==d||location.hostname.substr(location.hostname.length-(d.length+1))=="."+d)
i(cs)
2018-05-28 01:40:02 +02:00
}
2018-05-28 18:27:15 +02:00
}
2018-03-26 10:37:43 +02:00
}
}
2018-03-25 00:48:31 +01:00
}
2018-05-28 18:27:15 +02:00
if(["interactive","complete"].indexOf(document.readyState)>-1)
evalResult(result)
else
document.addEventListener("DOMContentLoaded",()=>evalResult(result))
})
2018-03-24 19:30:18 +01:00
}