Universal-Bypass/html/crowd-bypassed.js

15 lines
424 B
JavaScript
Raw Normal View History

2018-12-05 09:04:17 +01:00
let params=new URLSearchParams(location.search)
if(params.has("target")&&params.has("back"))
2018-10-02 19:31:00 +02:00
{
let i=document.querySelector('[data-message="crowdBypassedInfo"]')
2018-12-30 12:25:26 +01:00
i.innerHTML=i.innerHTML.replace("%",'<a></a>')
2018-10-02 19:31:00 +02:00
let a=i.querySelector("a")
a.setAttribute("target","_blank")
2018-12-05 09:04:17 +01:00
a.href=a.textContent=params.get("target")
document.getElementById("ignore").href=params.get("back")+"#ignoreCrowdBypass"
2018-10-02 19:31:00 +02:00
}
2018-12-30 12:25:26 +01:00
else
{
history.back()
}