Universal-Bypass/html/crowd-bypassed.js
Tim Speckhals b1ecf6744d
8.0
2018-12-30 13:20:23 +01:00

15 lines
424 B
JavaScript

let params=new URLSearchParams(location.search)
if(params.has("target")&&params.has("back"))
{
let i=document.querySelector('[data-message="crowdBypassedInfo"]')
i.innerHTML=i.innerHTML.replace("%",'<a></a>')
let a=i.querySelector("a")
a.setAttribute("target","_blank")
a.href=a.textContent=params.get("target")
document.getElementById("ignore").href=params.get("back")+"#ignoreCrowdBypass"
}
else
{
history.back()
}